|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.applicate.commands.NullListEditor<T>
public class NullListEditor<T>
| Constructor Summary | |
|---|---|
NullListEditor()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
T |
addRow(Object... param)
Create a new object (and a corresponding editor) at the end of the list. |
void |
addSelectionListener(SelectionListener listener)
Register a listener for the object selection. |
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 |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
removeSelectionListener(SelectionListener listener)
Remove a listener from the collection of the listeners that will be notified when an object is slected in this browser. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullListEditor()
| Method Detail |
|---|
public T addRow(Object... param)
ListEditor
addRow in interface ListEditor<T>param - a list of param that can be necessary for building a new entity instance
public T deleteRow()
ListEditor
deleteRow in interface ListEditor<T>public boolean canDeleteRow()
ListEditor
canDeleteRow in interface ListEditor<T>public List<T> getEditingList()
ListEditor
getEditingList in interface ListEditor<T>public BeanEditor<T> getElementEditor(int index)
ListEditor
getElementEditor in interface ListEditor<T>public Integer getSelectedIndex()
ListEditor
getSelectedIndex in interface ListEditor<T>public T getSelectedObject()
ListEditor
getSelectedObject in interface ListEditor<T>getSelectedObject in interface Selector<T>public boolean isEmptyRow()
isEmptyRow in interface ListEditor<T>public void select(int idx)
ListEditor
select in interface ListEditor<T>idx - the index of the object to be selectedpublic void setEditingList(List<T> editingList)
ListEditor
setEditingList in interface ListEditor<T>editingList - the list that has to be edited by this editorpublic void setEmptyRow(boolean emptyRow)
ListEditor
setEmptyRow in interface ListEditor<T>public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface it.amattioli.dominate.util.PropertyChangeEmitterpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface it.amattioli.dominate.util.PropertyChangeEmitterpublic void addSelectionListener(SelectionListener listener)
Selector
addSelectionListener in interface Selector<T>listener - the listener to be registeredpublic void removeSelectionListener(SelectionListener listener)
Selector
removeSelectionListener in interface Selector<T>listener - the listener to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||