|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - public interface ListEditor<T>
An editor for a list of entities. Implementations of this interface maintain a
list of editors, one for each entity contained in the editing list. A new entity
can be added to the list using the #addRow() method. The deleteRow()
method, instead, can be used to remove an entity from the editing list.
| Method Summary | |
|---|---|
T |
addRow(Object... param)
Create a new object (and a corresponding editor) at the end of the list. |
boolean |
canDeleteRow()
Check if the currently selected object can be deleted. |
T |
deleteRow()
Delete from the list the object (and the corresponding editor) currently selected. |
List<T> |
getEditingList()
Retrieve the list that is being edited by this editor. |
BeanEditor<T> |
getElementEditor(int index)
Retrieves the editor for the entity with the given index. |
Integer |
getSelectedIndex()
Retrieves the index of the currently selected object. |
T |
getSelectedObject()
Retrieves the currently selected object. |
boolean |
isEmptyRow()
|
void |
select(int idx)
Selected the object with the given index. |
void |
setEditingList(List<T> editingList)
Set the list that has to be edited by this editor. |
void |
setEmptyRow(boolean emptyRow)
Set the behavior of this editor when the editing list is empty. |
| Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface it.amattioli.applicate.selection.Selector |
|---|
addSelectionListener, removeSelectionListener |
| Method Detail |
|---|
void setEditingList(List<T> editingList)
editingList - the list that has to be edited by this editorList<T> getEditingList()
void setEmptyRow(boolean emptyRow)
emptyRow - boolean isEmptyRow()
void select(int idx)
idx - the index of the object to be selectedInteger getSelectedIndex()
T getSelectedObject()
getSelectedObject in interface Selector<T>BeanEditor<T> getElementEditor(int index)
index -
T addRow(Object... param)
param - a list of param that can be necessary for building a new entity instance
T deleteRow()
boolean canDeleteRow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||