| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final DoubleInputField | |
| private final Label | |
| private final ComboBox | |
| private final Label |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private static Label | |
| protected void | layoutChildren(double
the x position contentX, double the y position contentY, double the width contentWidth, double the height contentHeight)Overrides javafx. Called during the layout pass of the scenegraph. |
| private void |
| editor | back to summary |
|---|---|
| private final DoubleInputField editor | |
| editorDisabled | back to summary |
|---|---|
| private final Label editorDisabled | |
| switcher | back to summary |
|---|---|
| private final ComboBox<Unit<Q>> switcher | |
| switcherDisabled | back to summary |
|---|---|
| private final Label switcherDisabled | |
| QuantityInputFieldSkin | back to summary |
|---|---|
| public QuantityInputFieldSkin(QuantityInputField<Q> control) | |
| convertUnitToString | back to summary |
|---|---|
| private String convertUnitToString(Unit<Q> unit) | |
| decorateUnitLabel | back to summary |
|---|---|
| private static Label decorateUnitLabel(Labeled unitLabel, BooleanProperty iconVisibleProperty) | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| updateChildren | back to summary |
|---|---|
| private void updateChildren() | |
| Modifier and Type | Field and Description |
|---|---|
| private final Label | |
| private final BooleanProperty |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | updateItem(Unit<Q>
The new item for the cell. item, boolean whether or not this cell represents data from the list. If it
is empty, then it does not represent any domain data, but is a cell
being used to render an "empty" row. empty)Overrides javafx. The updateItem method should not be called by developers, but it is the best method for developers to override to allow for them to customise the visuals of the cell. |
| icon | back to summary |
|---|---|
| private final Label icon | |
| itemNoBaseUnit | back to summary |
|---|---|
| private final BooleanProperty itemNoBaseUnit | |
| UnitListCell | back to summary |
|---|---|
| pack-priv UnitListCell() | |
| updateItem | back to summary |
|---|---|
| protected void updateItem(Unit<Q> item, boolean empty) Overrides javafx. Doc from javafx. The updateItem method should not be called by developers, but it is the
best method for developers to override to allow for them to customise the
visuals of the cell. To clarify, developers should never call this method
in their code (they should leave it up to the UI control, such as the
It is very important that subclasses of Cell override the updateItem method properly, as failure to do so will lead to issues such as blank cells or cells with unexpected content appearing within them. Here is an example of how to properly override the updateItem method:
protected void updateItem(T item, boolean empty) {
super.updateItem(item, empty);
if (empty || item == null) {
setText(null);
setGraphic(null);
} else {
setText(item.toString());
}
}
Note in this code sample two important points:
| |