| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Access | Constructor and Description |
|---|---|
| public |
| TaskProgressViewSkin | back to summary |
|---|---|
| public TaskProgressViewSkin(TaskProgressView<T> monitor) | |
| Modifier and Type | Field and Description |
|---|---|
| private BorderPane | |
| private Button | |
| private Label | |
| private ProgressBar | |
| private T | |
| private Label |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | updateIndex(int index)
Overrides javafx. Updates the index associated with this IndexedCell. |
| protected void | updateItem(T task, 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. |
| borderPane | back to summary |
|---|---|
| private BorderPane borderPane | |
| cancelButton | back to summary |
|---|---|
| private Button cancelButton | |
| messageText | back to summary |
|---|---|
| private Label messageText | |
| progressBar | back to summary |
|---|---|
| private ProgressBar progressBar | |
| task | back to summary |
|---|---|
| private T task | |
| titleText | back to summary |
|---|---|
| private Label titleText | |
| TaskCell | back to summary |
|---|---|
| public TaskCell() | |
| updateIndex | back to summary |
|---|---|
| public void updateIndex(int index) Overrides javafx. Doc from javafx. Updates the index associated with this IndexedCell. Note This function is intended to be used by experts, primarily by those implementing new Skins. It is not common for developers or designers to access this function directly.
| |
| updateItem | back to summary |
|---|---|
| protected void updateItem(T task, 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:
| |