de.rpgframework.jfx.cells.LevellingProfileCell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpgframework-javafx Show documentation
Show all versions of rpgframework-javafx Show documentation
JavaFX extensions for the RPGFramework
The newest version!
/**
*
*/
package de.rpgframework.jfx.cells;
import de.rpgframework.genericrpg.chargen.ai.LevellingProfile;
import javafx.scene.control.ListCell;
/**
* @author prelle
*
*/
public class LevellingProfileCell extends ListCell {
//-------------------------------------------------------------------
public LevellingProfileCell() {
// TODO Auto-generated constructor stub
}
//-------------------------------------------------------------------
/**
* @see javafx.scene.control.Cell#updateItem(java.lang.Object, boolean)
*/
@Override
public void updateItem(LevellingProfile item, boolean empty) {
super.updateItem(item, empty);
if (empty) {
setText(null);
setGraphic(null);
} else {
setText(item.getName());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy