Package io.guise.framework.model
Interface ListSelectEditor<V>
-
- Type Parameters:
V
- The type of values contained in the model.
- All Known Implementing Classes:
AbstractListSelectEditor
,DefaultListSelectEditor
public interface ListSelectEditor<V>
An object for editing values in a list model. Prototypes are provided for common edit functionality.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
editValue()
Edits the currently selected value in the list.ActionPrototype
getEditActionPrototype()
ActionPrototype
getInsertActionPrototype()
ListSelectModel<V>
getListSelectModel()
ActionPrototype
getLowerActionPrototype()
ActionPrototype
getRaiseActionPrototype()
ActionPrototype
getRemoveActionPrototype()
void
insertValue()
Creates and allows the user to edit a new value.void
removeValue()
Removes the currently selected value in the list.
-
-
-
Method Detail
-
getListSelectModel
ListSelectModel<V> getListSelectModel()
- Returns:
- The list select model being edited.
-
getInsertActionPrototype
ActionPrototype getInsertActionPrototype()
- Returns:
- The prototype for inserting a value into the list.
-
getEditActionPrototype
ActionPrototype getEditActionPrototype()
- Returns:
- The prototype for editing a value in the list.
-
getRemoveActionPrototype
ActionPrototype getRemoveActionPrototype()
- Returns:
- The prototype for removing a value from the list.
-
getLowerActionPrototype
ActionPrototype getLowerActionPrototype()
- Returns:
- The prototype for lowering a value from the list to a lesser index.
-
getRaiseActionPrototype
ActionPrototype getRaiseActionPrototype()
- Returns:
- The prototype for raising a value from the list to a higher index.
-
insertValue
void insertValue()
Creates and allows the user to edit a new value. If the user accepts the changes, the value is inserted before the currently selected value in the list, or at the end of the list if no value is selected.
-
editValue
void editValue()
Edits the currently selected value in the list. If no value is selected in the list, no action occurs.
-
removeValue
void removeValue()
Removes the currently selected value in the list. If no value is selected in the list, no action occurs.
-
-