Method Summary |
|
public void | addActionHandler(Action.Handler actionHandler) |
public boolean | addContainerProperty(Object propertyId, Class type, Object defaultValue) Adds a new property to the table and show it as a visible column. |
public boolean | addContainerProperty(Object propertyId, Class type, Object defaultValue, String columnHeader, Resource columnIcon, String columnAlignment) Adds a new property to the table and show it as a visible column.
See Also: org.millstone.base.data.Container.addContainerProperty(ObjectClassObject) Parameters: propertyId - Id of the proprty Parameters: type - The class of the property Parameters: defaultValue - The default value given for all existing items Parameters: columnHeader - Explicit header of the column. |
public Object | addItem(Object[] cells, Object itemId) Add new row to table and fill the visible cells with given values.
Parameters: cells - Object array that is used for filling the visible cells newrow. |
public Object | addItemAfter(Object previousItemId) |
public Item | addItemAfter(Object previousItemId, Object newItemId) |
public void | attach() |
public void | changeVariables(Object source, Map variables) Invoked when the value of a variable has changed. |
public void | containerItemSetChange(Container.ItemSetChangeEvent event) Container datasource item set change. |
public void | containerPropertySetChange(Container.PropertySetChangeEvent event) Container datasource property set change. |
public void | detach() |
public Object | firstItemId() |
public void | focus() Focusing to this component is not supported. |
protected String | formatPropertyValue(Object rowId, Object colId, Property property) Formats table cell property values. |
public String | getColumnAlignment(Object propertyId) Gets the specified column's alignment.
Parameters: propertyId - the propertyID identifying the column. |
public String[] | getColumnAlignments() Get array of column alignments.
The items in the array must match the properties identified by
getVisibleColumns() . |
public String | getColumnHeader(Object propertyId) Gets the header for the specified column.
Parameters: propertyId - the propertyId indentifying the column. |
public int | getColumnHeaderMode() Getter for property columnHeaderMode. |
public String[] | getColumnHeaders() Get the headers of the columns.
The headers match the property id:s given my the set visible column
headers. |
public Resource | getColumnIcon(Object propertyId) Gets the icon Resource for the specified column.
Parameters: propertyId - the propertyId indentifying the column. |
public Resource[] | getColumnIcons() Get the icons of the columns.
The icons in headers match the property id:s given my the set visible
column headers. |
public Object | getCurrentPageFirstItemId() Getter for property currentPageFirstItem. |
public int | getCurrentPageFirstItemIndex() Getter for property currentPageFirstItem. |
public FieldFactory | getFieldFactory() Get the FieldFactory that is used to create editor for table cells. |
public int | getPageLength() Get the page length. |
protected Object | getPropertyValue(Object rowId, Object colId, Property property) Get value of property.
By default if the table is editable the fieldFactory is used to create
editors for table cells. |
public int | getRowHeaderMode() Get the row header mode. |
public Object | getSortContainerPropertyId() Get the currently sorted column property ID. |
public Collection | getSortableContainerPropertyIds() |
public String | getTag() Get UIDL tag corresponding to component. |
public Object[] | getVisibleColumns() Get the array of visible column property id:s. |
public Collection | getVisibleItemIds() |
public boolean | isColumnCollapsed(Object propertyId) Checks if the specified column is collapsed.
Parameters: propertyId - the propertyID identifying the column. |
public boolean | isColumnCollapsingAllowed() Check if column collapsing is allowed. |
public boolean | isColumnReorderingAllowed() Check if column reordering is allowed. |
public boolean | isEditable() Is table editable.
If table is editable a editor of type Field is created for each table
cell. |
public boolean | isFirstId(Object itemId) |
public boolean | isLastId(Object itemId) |
public boolean | isPageBufferingEnabled() Getter for property pageBuffering. |
public boolean | isSelectable() Getter for property selectable. |
public boolean | isSortAscending() Is the table currently sorted in ascending order. |
public boolean | isSortDisabled() Is sorting disabled alltogether. |
public Object | lastItemId() |
public Object | nextItemId(Object itemId) |
public void | paintContent(PaintTarget target) Paint the content of this component. |
public Object | prevItemId(Object itemId) |
public void | refreshCurrentPage() Refresh the current page contents. |
public void | removeActionHandler(Action.Handler actionHandler) |
public boolean | removeAllItems() |
public boolean | removeContainerProperty(Object propertyId) |
public boolean | removeItem(Object itemId) |
public void | setColumnAlignment(Object propertyId, String alignment) Sets the specified column's alignment. |
public void | setColumnAlignments(String[] columnAlignments) Set the column alignments.
The items in the array must match the properties identified by
getVisibleColumns() . |
public void | setColumnCollapsed(Object propertyId, boolean collapsed) Sets whether the specified column is collapsed or not. |
public void | setColumnCollapsingAllowed(boolean collapsingAllowed) Sets whether column collapsing is allowed or not. |
public void | setColumnHeader(Object propertyId, String header) |
public void | setColumnHeaderMode(int columnHeaderMode) Setter for property columnHeaderMode. |
public void | setColumnHeaders(String[] columnHeaders) Set the headers of the columns.
The headers match the property id:s given my the set visible column
headers. |
public void | setColumnIcon(Object propertyId, Resource icon) Sets the icon Resource for the specified column. |
public void | setColumnIcons(Resource[] columnIcons) Set the icons of the columns.
The icons in headers match the property id:s given my the set visible
column headers. |
public void | setColumnReorderingAllowed(boolean reorderingAllowed) Sets whether column reordering is allowed or not. |
public void | setContainerDataSource(Container newDataSource) |
public void | setCurrentPageFirstItemId(Object currentPageFirstItemId) Setter for property currentPageFirstItem. |
public void | setCurrentPageFirstItemIndex(int newIndex) Setter for property currentPageFirstItem. |
public void | setEditable(boolean editable) Set the editable property.
If table is editable a editor of type Field is created for each table
cell. |
public void | setFieldFactory(FieldFactory fieldFactory) Set the FieldFactory that is used to create editor for table cells.
The FieldFactory is only used if the Table is editable. |
public void | setNewItemsAllowed(boolean allowNewOptions) Adding new items is not supported. |
public void | setPageBufferingEnabled(boolean pageBuffering) Setter for property pageBuffering. |
public void | setPageLength(int pageLength) Set the page length.
Setting page length 0 disables paging. |
public void | setRowHeaderMode(int mode) Set the row header mode.
The mode can be one of the following ones:
ROW_HEADER_MODE_HIDDEN : The row captions are hidden.
ROW_HEADER_MODE_ID : Items Id-objects
toString() is used as row caption.
ROW_HEADER_MODE_ITEM : Item-objects
toString() is used as row caption.
ROW_HEADER_MODE_PROPERTY : Property set with
setItemCaptionPropertyId() is used as row header.
ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID : Items
Id-objects toString() is used as row header. |
public void | setSelectable(boolean selectable) Setter for property selectable. |
public void | setSortAscending(boolean ascending) Set the table in ascending order. |
public void | setSortContainerPropertyId(Object propertyId) Set the currently sorted column property id. |
public void | setSortDisabled(boolean sortDisabled) Disable sorting alltogether.
To disable sorting alltogether, set to true. |
public void | setVisibleColumns(Object[] visibleColumns) Set the array of visible column property id:s. |
public void | sort(Object[] propertyId, boolean[] ascending) Sort table. |
public void | sort() Sort table by currently selected sorting column. |
public void | valueChange(Property.ValueChangeEvent event) |