|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.applicate.commands.ListEditorImpl<T>
public class ListEditorImpl<T>
| Field Summary | |
|---|---|
static String |
EDITING_LIST
|
| Constructor Summary | |
|---|---|
ListEditorImpl()
|
|
ListEditorImpl(EditingListManager<T> editingListManager)
|
|
ListEditorImpl(List<T> editingList,
Class<T> entityClass)
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
T |
addRow(Object... param)
Create a new object (and a corresponding editor) at the end of the list. |
protected void |
addRowIfEmpty()
|
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. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
|
List<T> |
getEditingList()
Retrieve the list that is being edited by this editor. |
protected EditingListManager<T> |
getEditingListManager()
|
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 |
setEditingListManager(EditingListManager<T> editingListManager)
|
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 |
| Field Detail |
|---|
public static final String EDITING_LIST
| Constructor Detail |
|---|
public ListEditorImpl()
public ListEditorImpl(EditingListManager<T> editingListManager)
public ListEditorImpl(List<T> editingList,
Class<T> entityClass)
| Method Detail |
|---|
public void setEditingListManager(EditingListManager<T> editingListManager)
protected EditingListManager<T> getEditingListManager()
public void setEditingList(List<T> editingList)
ListEditor
setEditingList in interface ListEditor<T>editingList - the list that has to be edited by this editorpublic List<T> getEditingList()
ListEditor
getEditingList in interface ListEditor<T>public boolean isEmptyRow()
isEmptyRow in interface ListEditor<T>public void setEmptyRow(boolean emptyRow)
ListEditor
setEmptyRow in interface ListEditor<T>protected void addRowIfEmpty()
public void select(int idx)
ListEditor
select in interface ListEditor<T>idx - the index of the object to be selectedpublic Integer getSelectedIndex()
ListEditor
getSelectedIndex in interface ListEditor<T>public T getSelectedObject()
ListEditor
getSelectedObject in interface ListEditor<T>getSelectedObject in interface Selector<T>public BeanEditor<T> getElementEditor(int index)
ListEditor
getElementEditor in interface ListEditor<T>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 boolean canDeleteRow()
ListEditor
canDeleteRow in interface ListEditor<T>public T deleteRow()
ListEditor
deleteRow in interface ListEditor<T>
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
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 | |||||||||