|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.bean.Bean
net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor<V>
net.sf.doolin.gui.field.list.AbstractListPropertyFieldDescriptor<V,E>
V - Type of object for the viewE - Type of object for the listpublic abstract class AbstractListPropertyFieldDescriptor<V,E>
Abstract field descriptor for fields that are based on a list of objects.
| Constructor Summary | |
|---|---|
AbstractListPropertyFieldDescriptor()
|
|
| Method Summary | |
|---|---|
protected ca.odell.glazedlists.CompositeList<E> |
createListWithNull(ca.odell.glazedlists.EventList<E> sourceList)
Creates the list with null. |
protected ListCellRenderer |
getActualCellRenderer()
Gets the actual cell renderer to use. |
protected ca.odell.glazedlists.EventList<E> |
getInitialListValueModel(GUIView<V> view)
Gets the initial list value model. |
DataFactory<ca.odell.glazedlists.EventList<E>> |
getItemListFactory()
Gets the item list factory. |
LabelInfoProvider |
getLabelInfoProvider()
Gets the LabelInfoProvider used to render the cell. |
protected ca.odell.glazedlists.EventList<E> |
getListModel(GUIView<V> view)
Gets the list model. |
ListCellRenderer |
getRenderer()
Gets the cell renderer for the list |
boolean |
isItemListAddNull()
Checks if a null entry is added at the beginning of the
list. |
void |
setItemListAddNull(boolean itemListAddNull)
Sets if a null entry is added at the beginning of the list |
void |
setItemListFactory(DataFactory<ca.odell.glazedlists.EventList<E>> itemListFactory)
Sets the item list factory. |
void |
setLabelInfoProvider(LabelInfoProvider labelInfoProvider)
Sets the LabelInfoProvider used to render the cell. |
void |
setRenderer(ListCellRenderer renderer)
Sets the cell renderer for the list |
| Methods inherited from class net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor |
|---|
getAdapter, getProperty, getPropertyPath, setAdapter, setProperty, setPropertyPath, subscribe, subscribe |
| Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor |
|---|
getActionFactory, getConstraint, getDisplayStateHandler, getIconService, getName, getStyle, getTransferHandler, onInit, onShow, setActionFactory, setConstraint, setDisplayState, setDisplayStateHandler, setIconService, setName, setStyle, setTransferHandler |
| Methods inherited from class net.sf.doolin.bus.bean.Bean |
|---|
getBeanNotificationSupport, getParentBean, notify, setParentBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.gui.field.FieldDescriptor |
|---|
createField |
| Constructor Detail |
|---|
public AbstractListPropertyFieldDescriptor()
| Method Detail |
|---|
protected ca.odell.glazedlists.EventList<E> getListModel(GUIView<V> view)
view - the view
protected ca.odell.glazedlists.EventList<E> getInitialListValueModel(GUIView<V> view)
view - the view
protected ca.odell.glazedlists.CompositeList<E> createListWithNull(ca.odell.glazedlists.EventList<E> sourceList)
sourceList - the source list
public boolean isItemListAddNull()
null entry is added at the beginning of the
list.
true if a null entry is added at the
beginning of the listpublic void setItemListAddNull(boolean itemListAddNull)
null entry is added at the beginning of the list
itemListAddNull - true if a null entry is added at the
beginning of the listpublic DataFactory<ca.odell.glazedlists.EventList<E>> getItemListFactory()
public void setItemListFactory(DataFactory<ca.odell.glazedlists.EventList<E>> itemListFactory)
itemListFactory - the new item list factorypublic ListCellRenderer getRenderer()
public void setRenderer(ListCellRenderer renderer)
renderer - Rendererpublic LabelInfoProvider getLabelInfoProvider()
LabelInfoProvider used to render the cell. If the
renderer is defined, this property is ignored
public void setLabelInfoProvider(LabelInfoProvider labelInfoProvider)
LabelInfoProvider used to render the cell. It is set by
default to DefaultLabelInfoProvider.
labelInfoProvider - Label info providergetLabelInfoProvider()protected ListCellRenderer getActualCellRenderer()
If the renderer is set, it is used.
If the labelInfoProvider is set, a
LabelInfoListCellRenderer is created and used.
Otherwise, a DefaultListCellRenderer is used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||