|
||||||||||
| 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.table.FieldTable<V,E>
V - Type of object for the viewE - Type of item in the tablepublic class FieldTable<V,E>
Table field descriptor.
| Constructor Summary | |
|---|---|
FieldTable()
|
|
| Method Summary | |
|---|---|
Field<V> |
createField(GUIView<V> view)
Creates a field. |
ColumnGenerator<V,E> |
getColumnGenerator()
Gets the column generator. |
CustomHeaderFactory<V,E> |
getCustomHeaderFactory()
|
GUIAction |
getDoubleClickAction()
Gets the action to execute when a row is double-clicked. |
GUITableHeaderFactory<V,E> |
getHeaderFactory()
|
ITableEventListFactory<E> |
getItemListFactory()
|
DataFactory<ca.odell.glazedlists.matchers.MatcherEditor<E>> |
getMatcherEditorFactory()
Returns the factory for the matcher editor used to filter the items in the table. |
TableSelectionMode |
getSelectionMode()
Gets the selection mode for the table rows |
String |
getSelectionPropertyPath()
Gets the path to the property that contains the selection of the table. |
List<GUIAction> |
getTableActions()
Gets the list of actions to register together with the table for the availability of their shortcuts. |
ActionPathList |
getTableMenu()
Gets the definition for the contextual menu of the table |
TableStyle |
getTableStyle()
Gets the style. |
ActionPathList |
getTableToolBar()
Gets the tool bar definition for the table-level tool bar. |
ActionPathList |
getViewToolBar()
Gets the tool bar definition for the view-level tool bar. |
ToolBar |
getWindowToolBar()
Gets the tool bar definition for the window-level tool bar. |
boolean |
isItemChanges()
Checks if the table must listen to changes in the row items. |
boolean |
isShowColumns()
Checks if the column headers are displayed. |
void |
setColumnGenerator(ColumnGenerator<V,E> columnGenerator)
Sets the generator for the columns of the tabler. |
void |
setCustomHeaderFactory(CustomHeaderFactory<V,E> customHeaderFactory)
|
void |
setDoubleClickAction(GUIAction doubleClickAction)
Sets the action to execute when a row is double-clicked. |
void |
setHeaderFactory(GUITableHeaderFactory<V,E> headerFactory)
|
void |
setItemChanges(boolean itemChanges)
Sets if the table must listen to changes in the row items. |
void |
setItemListFactory(ITableEventListFactory<E> itemListFactory)
|
void |
setMatcherEditorFactory(DataFactory<ca.odell.glazedlists.matchers.MatcherEditor<E>> matcherEditorFactory)
Sets the factory for the matcher editor used to filter the items in the table. |
void |
setSelectionMode(TableSelectionMode selectionMode)
Sets the selection mode for the table rows |
void |
setSelectionPropertyPath(String selectionPropertyPath)
Sets the path to the property that contains the selection of the table. |
void |
setShowColumns(boolean showColumns)
Sets if the column headers are displayed. |
void |
setTableActions(List<GUIAction> tableActions)
Sets the list of actions to register together with the table for the availability of their shortcuts. |
void |
setTableMenu(ActionPathList tableMenu)
Sets the definition for the contextual menu of the table |
void |
setTableStyle(TableStyle style)
Sets the default style to apply on the cells. |
void |
setTableToolBar(ActionPathList tableToolBar)
Sets the tool bar definition for the table-level tool bar. |
void |
setViewToolBar(ActionPathList viewToolBar)
Sets the tool bar definition for the view-level tool bar. |
void |
setWindowToolBar(ToolBar windowToolBar)
Sets the tool bar definition for the window-level tool bar. |
| 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 |
| Constructor Detail |
|---|
public FieldTable()
| Method Detail |
|---|
public Field<V> createField(GUIView<V> view)
view - the view
public ColumnGenerator<V,E> getColumnGenerator()
public CustomHeaderFactory<V,E> getCustomHeaderFactory()
public GUIAction getDoubleClickAction()
nullpublic GUITableHeaderFactory<V,E> getHeaderFactory()
public ITableEventListFactory<E> getItemListFactory()
public DataFactory<ca.odell.glazedlists.matchers.MatcherEditor<E>> getMatcherEditorFactory()
public TableSelectionMode getSelectionMode()
public String getSelectionPropertyPath()
List, else if must hold a <E> type.
public List<GUIAction> getTableActions()
public ActionPathList getTableMenu()
public TableStyle getTableStyle()
public ActionPathList getTableToolBar()
public ActionPathList getViewToolBar()
public ToolBar getWindowToolBar()
public boolean isItemChanges()
true if the table must listen to the changessetItemChanges(boolean)public boolean isShowColumns()
true if the column headers are displayed.public void setColumnGenerator(ColumnGenerator<V,E> columnGenerator)
columnGenerator - the new column generatorpublic void setCustomHeaderFactory(CustomHeaderFactory<V,E> customHeaderFactory)
customHeaderFactory - the customHeaderFactory to setpublic void setDoubleClickAction(GUIAction doubleClickAction)
doubleClickAction - Action or nullpublic void setHeaderFactory(GUITableHeaderFactory<V,E> headerFactory)
headerFactory - the headerFactory to setpublic void setItemChanges(boolean itemChanges)
true (it is set to false by default), each time
a bean is updated that belongs to the table rows, the corresponding row
will be updated.
itemChanges - true if the table must listen to the changespublic void setItemListFactory(ITableEventListFactory<E> itemListFactory)
public void setMatcherEditorFactory(DataFactory<ca.odell.glazedlists.matchers.MatcherEditor<E>> matcherEditorFactory)
matcherEditorFactory - Factory for the matcher editorpublic void setSelectionMode(TableSelectionMode selectionMode)
selectionMode - Selection modepublic void setSelectionPropertyPath(String selectionPropertyPath)
List, else if must hold a <E> type.
selectionPropertyPath - Path to the property or null if no selection is
to be savedpublic void setShowColumns(boolean showColumns)
showColumns - true if the column headers are displayed.public void setTableActions(List<GUIAction> tableActions)
tableActions - List of actionspublic void setTableMenu(ActionPathList tableMenu)
tableMenu - Menu definitionpublic void setTableStyle(TableStyle style)
style - the new stylepublic void setTableToolBar(ActionPathList tableToolBar)
tableToolBar - Tool bar definitionpublic void setViewToolBar(ActionPathList viewToolBar)
viewToolBar - Tool bar definitionpublic void setWindowToolBar(ToolBar windowToolBar)
windowToolBar - Tool bar definition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||