T - The list element's type.public abstract class ListViewEditor<T>
extends java.lang.Object
ListView elements.| Constructor and Description |
|---|
ListViewEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
getInput()
Called during add or apply action to retrieve the current input.
|
ListViewEditor<T> |
init(javafx.scene.control.ListView<T> listView)
Initialize the editor.
|
void |
onAddAction(javafx.event.ActionEvent evt)
Add action handler.
|
void |
onApplyAction(javafx.event.ActionEvent evt)
Apply action handler.
|
void |
onDeleteAction(javafx.event.ActionEvent evt)
Delete action handler.
|
void |
onMoveDownAction(javafx.event.ActionEvent evt)
Move down action handler.
|
void |
onMoveUpAction(javafx.event.ActionEvent evt)
Move up action handler.
|
ListViewEditor<T> |
setAddCommand(javafx.scene.control.Button cmdButton)
Set a add command button.
|
ListViewEditor<T> |
setApplyCommand(javafx.scene.control.Button cmdButton)
Set a apply command button.
|
ListViewEditor<T> |
setDeleteCommand(javafx.scene.control.Button cmdButton)
Set a delete command button.
|
protected abstract void |
setInput(T input)
Called on selection change to initialize the input data with the current selection.
|
ListViewEditor<T> |
setMoveDownCommand(javafx.scene.control.Button cmdButton)
Set a move down command button.
|
ListViewEditor<T> |
setMoveUpCommand(javafx.scene.control.Button cmdButton)
Set a move up command button.
|
public ListViewEditor<T> init(javafx.scene.control.ListView<T> listView)
listView - The ListView control to use for editing.public ListViewEditor<T> setAddCommand(javafx.scene.control.Button cmdButton)
cmdButton - The add command button to use.public ListViewEditor<T> setApplyCommand(javafx.scene.control.Button cmdButton)
cmdButton - The apply command button to use.public ListViewEditor<T> setDeleteCommand(javafx.scene.control.Button cmdButton)
cmdButton - The delete command button to use.public ListViewEditor<T> setMoveUpCommand(javafx.scene.control.Button cmdButton)
cmdButton - The move up command button to use.public ListViewEditor<T> setMoveDownCommand(javafx.scene.control.Button cmdButton)
cmdButton - The move down command button to use.protected abstract T getInput()
null if the current input is empty or not valid.protected abstract void setInput(T input)
input - The selected list element's data or null if nothing is selected.public void onAddAction(javafx.event.ActionEvent evt)
evt - The action event.public void onApplyAction(javafx.event.ActionEvent evt)
evt - The action event.public void onDeleteAction(javafx.event.ActionEvent evt)
evt - The action event.public void onMoveUpAction(javafx.event.ActionEvent evt)
evt - The action event.public void onMoveDownAction(javafx.event.ActionEvent evt)
evt - The action event.