| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class | |
| private class | |
| private class | |
| public abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ListView | |
| private final ListView | |
| private final ListView | |
| private final ListView | |
| private final TimePicker |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| private void | |
| private int | |
| private int | |
| private boolean | |
| private void | |
| private void | |
| private void | |
| private void |
| hourListView | back to summary |
|---|---|
| private final ListView<Integer> hourListView | |
| millisecondListView | back to summary |
|---|---|
| private final ListView<Integer> millisecondListView | |
| minuteListView | back to summary |
|---|---|
| private final ListView<Integer> minuteListView | |
| secondListView | back to summary |
|---|---|
| private final ListView<Integer> secondListView | |
| timePicker | back to summary |
|---|---|
| private final TimePicker timePicker | |
| TimePickerPopup | back to summary |
|---|---|
| public TimePickerPopup(TimePicker timePicker) | |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| initializePopupView | back to summary |
|---|---|
| private void initializePopupView() | |
| millisecondToNano | back to summary |
|---|---|
| private int millisecondToNano(int millisecond) | |
| nanoToMillisecond | back to summary |
|---|---|
| private int nanoToMillisecond(int nano) | |
| shouldDisable | back to summary |
|---|---|
| private boolean shouldDisable(Integer hour, Integer minute, Integer second, Integer millisecond) | |
| updateLists | back to summary |
|---|---|
| private void updateLists() | |
| updateListViewSelection | back to summary |
|---|---|
| private void updateListViewSelection() | |
| updateSecondMillisecondView | back to summary |
|---|---|
| private void updateSecondMillisecondView(boolean secondVisible, boolean millisecondVisible) | |
| updateTimeUnit | back to summary |
|---|---|
| private void updateTimeUnit() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | updateItem(Integer item, boolean 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. |
| HourCell | back to summary |
|---|---|
| public HourCell() | |
| updateItem | back to summary |
|---|---|
| protected void updateItem(Integer 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:
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | updateItem(Integer item, boolean 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. |
| MillisecondCell | back to summary |
|---|---|
| public MillisecondCell() | |
| updateItem | back to summary |
|---|---|
| protected void updateItem(Integer 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:
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | updateItem(Integer item, boolean 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. |
| MinuteCell | back to summary |
|---|---|
| public MinuteCell() | |
| updateItem | back to summary |
|---|---|
| protected void updateItem(Integer 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:
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | updateItem(Integer item, boolean 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. |
| SecondCell | back to summary |
|---|---|
| public SecondCell() | |
| updateItem | back to summary |
|---|---|
| protected void updateItem(Integer 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:
| |
| Access | Constructor and Description |
|---|---|
| public |
| TimeCell | back to summary |
|---|---|
| public TimeCell() | |