org.millstone.base.ui
Class Table

java.lang.Object
  |
  +--org.millstone.base.ui.AbstractComponent
        |
        +--org.millstone.base.ui.AbstractField
              |
              +--org.millstone.base.ui.Select
                    |
                    +--org.millstone.base.ui.Table
All Implemented Interfaces:
Action.Container, Buffered, BufferedValidatable, Component, Container, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.Viewer, java.util.EventListener, MethodEventSource, Paintable, Property, Property.Editor, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, Validatable, VariableOwner

public class Table
extends Select
implements Action.Container

Table component is used for representing data or components in pageable and selectable table.

Since:
3.0
Version:
3.0.3
Author:
IT Mill Ltd.

Nested Class Summary
 
Nested classes inherited from class org.millstone.base.ui.AbstractField
AbstractField.ReadOnlyStatusChangeEvent, AbstractField.ValueChangeEvent
 
Nested classes inherited from class org.millstone.base.data.Container
Container.Editor, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeEvent, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeEvent, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.Viewer
 
Nested classes inherited from class org.millstone.base.data.Buffered
Buffered.SourceException
 
Nested classes inherited from class org.millstone.base.data.Property
Property.ConversionException, Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeEvent, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer
 
Nested classes inherited from class org.millstone.base.ui.Component
Component.Event, Component.Listener
 
Nested classes inherited from class org.millstone.base.terminal.Paintable
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener
 
Field Summary
static java.lang.String ALIGN_CENTER
          Center column alignment.
static java.lang.String ALIGN_LEFT
          Left column alignment.
static java.lang.String ALIGN_RIGHT
          Right column alignment.
static int COLUMN_HEADER_MODE_EXPLICIT
          Column header mode: Column headers are explicitly specified with setColumnHeaders()
static int COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID
          Column header mode: Column headers are explicitly specified with setColumnHeaders()
static int COLUMN_HEADER_MODE_HIDDEN
          Column header mode: Column headers are hidden.
static int COLUMN_HEADER_MODE_ID
          Column header mode: Property ID:s are used as column headers.
static int ROW_HEADER_MODE_EXPLICIT
          Row caption mode: Item captions are explicitly specified.
static int ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID
          Row caption mode: Item captions are explicitly specified, but if the caption is missing, the item id objects toString() is used instead.
static int ROW_HEADER_MODE_HIDDEN
          Row caption mode: The row headers are hidden.
static int ROW_HEADER_MODE_ICON_ONLY
          Row caption mode: Only icons are shown, the captions are hidden.
static int ROW_HEADER_MODE_ID
          Row caption mode: Items Id-objects toString() is used as row caption.
static int ROW_HEADER_MODE_INDEX
          Row caption mode: Index of the item is used as item caption.
static int ROW_HEADER_MODE_ITEM
          Row caption mode: Item-objects toString() is used as row caption.
static int ROW_HEADER_MODE_PROPERTY
          Row caption mode: Item captions are read from property specified with setItemCaptionPropertyId.
 
Fields inherited from class org.millstone.base.ui.Select
ITEM_CAPTION_MODE_EXPLICIT, ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID, ITEM_CAPTION_MODE_ICON_ONLY, ITEM_CAPTION_MODE_ID, ITEM_CAPTION_MODE_INDEX, ITEM_CAPTION_MODE_ITEM, ITEM_CAPTION_MODE_PROPERTY, itemIdMapper, items
 
Fields inherited from interface org.millstone.base.data.Container
NULL_ITEM_ID
 
Constructor Summary
Table()
          Create new empty table
Table(java.lang.String caption)
          Create new empty table with caption.
Table(java.lang.String caption, Container dataSource)
          Create new table with caption and connect it to a Container.
 
Method Summary
 void addActionHandler(Action.Handler actionHandler)
          Registers a new action handler for this container
 boolean addContainerProperty(java.lang.Object propertyId, java.lang.Class type, java.lang.Object defaultValue)
          Adds a new property to the table and show it as a visible column.
 boolean addContainerProperty(java.lang.Object propertyId, java.lang.Class type, java.lang.Object defaultValue, java.lang.String columnHeader, Resource columnIcon, java.lang.String columnAlignment)
          Adds a new property to the table and show it as a visible column.
 java.lang.Object addItem(java.lang.Object[] cells, java.lang.Object itemId)
          Add new row to table and fill the visible cells with given values.
 void attach()
          Notifies the component that it is connected to an application.
 void changeVariables(java.lang.Object source, java.util.Map variables)
          Invoked when the value of a variable has changed.
 void containerItemSetChange(Container.ItemSetChangeEvent event)
          Container datasource item set change.
 void containerPropertySetChange(Container.PropertySetChangeEvent event)
          Container datasource property set change.
 void detach()
          Notifies the component that it is detached from the application.
 void focus()
          Focusing to this component is not supported.
 java.lang.String[] getColumnAlignments()
          Get array of column alignments.
 int getColumnHeaderMode()
          Getter for property columnHeaderMode.
 java.lang.String[] getColumnHeaders()
          Get the headers of the columns.
 Resource[] getColumnIcons()
          Get the icons of the columns.
 java.lang.Object getCurrentPageFirstItemId()
          Getter for property currentPageFirstItem.
 int getCurrentPageFirstItemIndex()
          Getter for property currentPageFirstItem.
 int getPageLength()
          Get the page length.
 int getRowHeaderMode()
          Get the row header mode.
 java.lang.String getTag()
          Get UIDL tag corresponding to component.
 java.lang.Object[] getVisibleColumns()
          Get the array of visible column property id:s.
 java.util.Collection getVisibleItemIds()
          Return list of items on the current page
 boolean isPageBufferingEnabled()
          Getter for property pageBuffering.
 boolean isSelectable()
          Getter for property selectable.
 void paintContent(PaintTarget target)
          Paint the content of this component.
 void refreshCurrentPage()
          Refresh the current page contents.
 void removeActionHandler(Action.Handler actionHandler)
          Remove a previously registered action handler for the contents of this container.
 boolean removeAllItems()
          Remove all items from the container.
 boolean removeContainerProperty(java.lang.Object propertyId)
          Remove property from all items.
 boolean removeItem(java.lang.Object itemId)
          Remove item identified by Id from the container.
 void setColumnAlignments(java.lang.String[] columnAlignments)
          Set the column alignments.
 void setColumnHeaderMode(int columnHeaderMode)
          Setter for property columnHeaderMode.
 void setColumnHeaders(java.lang.String[] columnHeaders)
          Set the headers of the columns.
 void setColumnIcons(Resource[] columnIcons)
          Set the icons of the columns.
 void setContainerDataSource(Container newDataSource)
          Set the container as data-source for viewing.
 void setCurrentPageFirstItemId(java.lang.Object currentPageFirstItemId)
          Setter for property currentPageFirstItem.
 void setCurrentPageFirstItemIndex(int currentPageFirstItemIndex)
          Setter for property currentPageFirstItem.
 void setNewItemsAllowed(boolean allowNewOptions)
          Adding new items is not supported.
 void setPageBufferingEnabled(boolean pageBuffering)
          Setter for property pageBuffering.
 void setPageLength(int pageLength)
          Set the page length.
 void setRowHeaderMode(int mode)
          Set the row header mode.
 void setSelectable(boolean selectable)
          Setter for property selectable.
 void setVisibleColumns(java.lang.Object[] visibleColumns)
          Set the array of visible column property id:s.
 void valueChange(Property.ValueChangeEvent event)
          This method listens to data source value changes and passes the changes forwards.
 
Methods inherited from class org.millstone.base.ui.Select
addItem, addItem, addListener, addListener, containsId, fireItemSetChange, firePropertySetChange, getContainerDataSource, getContainerProperty, getContainerPropertyIds, getItem, getItemCaption, getItemCaptionMode, getItemCaptionPropertyId, getItemIcon, getItemIconPropertyId, getItemIds, getNullSelectionItemId, getType, getType, getValue, isMultiSelect, isNewItemsAllowed, isSelected, removeListener, removeListener, select, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIcon, setItemIconPropertyId, setMultiSelect, setNullSelectionItemId, setValue, size, unselect
 
Methods inherited from class org.millstone.base.ui.AbstractField
addListener, addListener, addValidator, commit, constructField, discard, fireReadOnlyStatusChange, fireValueChange, getErrorMessage, getPropertyDataSource, getValidators, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isReadThrough, isValid, isWriteThrough, removeListener, removeListener, removeValidator, setInvalidAllowed, setInvalidCommitted, setPropertyDataSource, setReadOnly, setReadThrough, setWriteThrough, toString, validate
 
Methods inherited from class org.millstone.base.ui.AbstractComponent
addListener, addListener, addListener, addListener, childRequestedRepaint, dependsOn, fireComponentEvent, fireEvent, getApplication, getCaption, getComponentError, getDescription, getDirectDependencies, getIcon, getLocale, getParent, getStyle, getWindow, isEnabled, isImmediate, isVisible, paint, removeDirectDependency, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setDescription, setEnabled, setIcon, setImmediate, setLocale, setParent, setStyle, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALIGN_LEFT

public static final java.lang.String ALIGN_LEFT
Left column alignment. This is the default behaviour.

See Also:
Constant Field Values

ALIGN_CENTER

public static final java.lang.String ALIGN_CENTER
Center column alignment.

See Also:
Constant Field Values

ALIGN_RIGHT

public static final java.lang.String ALIGN_RIGHT
Right column alignment.

See Also:
Constant Field Values

COLUMN_HEADER_MODE_HIDDEN

public static final int COLUMN_HEADER_MODE_HIDDEN
Column header mode: Column headers are hidden. This is the default behaviour.

See Also:
Constant Field Values

COLUMN_HEADER_MODE_ID

public static final int COLUMN_HEADER_MODE_ID
Column header mode: Property ID:s are used as column headers.

See Also:
Constant Field Values

COLUMN_HEADER_MODE_EXPLICIT

public static final int COLUMN_HEADER_MODE_EXPLICIT
Column header mode: Column headers are explicitly specified with setColumnHeaders()

See Also:
Constant Field Values

COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID

public static final int COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID
Column header mode: Column headers are explicitly specified with setColumnHeaders()

See Also:
Constant Field Values

ROW_HEADER_MODE_HIDDEN

public static final int ROW_HEADER_MODE_HIDDEN
Row caption mode: The row headers are hidden. This is the default mode.

See Also:
Constant Field Values

ROW_HEADER_MODE_ID

public static final int ROW_HEADER_MODE_ID
Row caption mode: Items Id-objects toString() is used as row caption.

See Also:
Constant Field Values

ROW_HEADER_MODE_ITEM

public static final int ROW_HEADER_MODE_ITEM
Row caption mode: Item-objects toString() is used as row caption.

See Also:
Constant Field Values

ROW_HEADER_MODE_INDEX

public static final int ROW_HEADER_MODE_INDEX
Row caption mode: Index of the item is used as item caption. The index mode can only be used with the containers implementing Container.Indexed interface.

See Also:
Constant Field Values

ROW_HEADER_MODE_EXPLICIT

public static final int ROW_HEADER_MODE_EXPLICIT
Row caption mode: Item captions are explicitly specified.

See Also:
Constant Field Values

ROW_HEADER_MODE_PROPERTY

public static final int ROW_HEADER_MODE_PROPERTY
Row caption mode: Item captions are read from property specified with setItemCaptionPropertyId.

See Also:
Constant Field Values

ROW_HEADER_MODE_ICON_ONLY

public static final int ROW_HEADER_MODE_ICON_ONLY
Row caption mode: Only icons are shown, the captions are hidden.

See Also:
Constant Field Values

ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID

public static final int ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID
Row caption mode: Item captions are explicitly specified, but if the caption is missing, the item id objects toString() is used instead.

See Also:
Constant Field Values
Constructor Detail

Table

public Table()
Create new empty table


Table

public Table(java.lang.String caption)
Create new empty table with caption.


Table

public Table(java.lang.String caption,
             Container dataSource)
Create new table with caption and connect it to a Container.

Method Detail

getVisibleColumns

public java.lang.Object[] getVisibleColumns()
Get the array of visible column property id:s.

The columns are show in the order of their appearance in this array

Returns:
Value of property visibleColumns.

setVisibleColumns

public void setVisibleColumns(java.lang.Object[] visibleColumns)
Set the array of visible column property id:s.

The columns are show in the order of their appearance in this array

Parameters:
visibleColumns - Array of shown property id:s.

getColumnHeaders

public java.lang.String[] getColumnHeaders()
Get the headers of the columns.

The headers match the property id:s given my the set visible column headers. The table must be set in either ROW_HEADER_MODE_EXPLICIT or ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID mode to show the headers. In the defaults mode any nulls in the headers array are replaced with id.toString() outputs when rendering.

Returns:
Array of column headers.

setColumnHeaders

public void setColumnHeaders(java.lang.String[] columnHeaders)
Set the headers of the columns.

The headers match the property id:s given my the set visible column headers. The table must be set in either ROW_HEADER_MODE_EXPLICIT or ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID mode to show the headers. In the defaults mode any nulls in the headers array are replaced with id.toString() outputs when rendering.

Parameters:
columnHeaders - Array of column headers that match the getVisibleColumns().

getColumnIcons

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. The table must be set in either ROW_HEADER_MODE_EXPLICIT or ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID mode to show the headers with icons.

Returns:
Array of icons that match the getVisibleColumns().

setColumnIcons

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. The table must be set in either ROW_HEADER_MODE_EXPLICIT or ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID mode to show the headers with icons.

Parameters:
columnIcons - Array of icons that match the getVisibleColumns().

getColumnAlignments

public java.lang.String[] getColumnAlignments()
Get array of column alignments.

The items in the array must match the properties identified by getVisibleColumns(). The possible values for the alignments include:

The alignments default to ALIGN_LEFT: any null values are rendered as align lefts.

Returns:
Column alignments array.

setColumnAlignments

public void setColumnAlignments(java.lang.String[] columnAlignments)
Set the column alignments.

The items in the array must match the properties identified by getVisibleColumns(). The possible values for the alignments include:

The alignments default to ALIGN_LEFT

Parameters:
columnAlignments - Column alignments array.

getPageLength

public int getPageLength()
Get the page length.

Setting page length 0 disables paging.

Returns:
Lenght of one page.

setPageLength

public void setPageLength(int pageLength)
Set the page length.

Setting page length 0 disables paging. The page length defaults to 0 (no paging).


getCurrentPageFirstItemId

public java.lang.Object getCurrentPageFirstItemId()
Getter for property currentPageFirstItem.

Returns:
Value of property currentPageFirstItem.

setCurrentPageFirstItemId

public void setCurrentPageFirstItemId(java.lang.Object currentPageFirstItemId)
Setter for property currentPageFirstItem.


getCurrentPageFirstItemIndex

public int getCurrentPageFirstItemIndex()
Getter for property currentPageFirstItem.

Returns:
Value of property currentPageFirstItem.

setCurrentPageFirstItemIndex

public void setCurrentPageFirstItemIndex(int currentPageFirstItemIndex)
Setter for property currentPageFirstItem.


isPageBufferingEnabled

public boolean isPageBufferingEnabled()
Getter for property pageBuffering.

Returns:
Value of property pageBuffering.

setPageBufferingEnabled

public void setPageBufferingEnabled(boolean pageBuffering)
Setter for property pageBuffering.

Parameters:
pageBuffering - New value of property pageBuffering.

isSelectable

public boolean isSelectable()
Getter for property selectable.

The table is not selectable by default.

Returns:
Value of property selectable.

setSelectable

public void setSelectable(boolean selectable)
Setter for property selectable.

The table is not selectable by default.

Parameters:
selectable - New value of property selectable.

getColumnHeaderMode

public int getColumnHeaderMode()
Getter for property columnHeaderMode.

Returns:
Value of property columnHeaderMode.

setColumnHeaderMode

public void setColumnHeaderMode(int columnHeaderMode)
Setter for property columnHeaderMode.

Parameters:
columnHeaderMode - New value of property columnHeaderMode.

refreshCurrentPage

public void refreshCurrentPage()
Refresh the current page contents. If the page buffering is turned off, it is not necessary to call this explicitely.


setRowHeaderMode

public void setRowHeaderMode(int mode)
Set the row header mode.

The mode can be one of the following ones:

The default value is ROW_HEADER_MODE_HIDDEN

Parameters:
mode - One of the modes listed above.

getRowHeaderMode

public int getRowHeaderMode()
Get the row header mode.

Returns:
Row header mode.
See Also:
setRowHeaderMode(int)

addItem

public java.lang.Object addItem(java.lang.Object[] cells,
                                java.lang.Object itemId)
                         throws java.lang.UnsupportedOperationException
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 new row. The types must be settable to visible column property types.
itemId - Id the new row. If null, a new id is automatically assigned. If given, the table cant already have a item with given id.
Returns:
Returns item id for the new row. Returns null if operation fails.
java.lang.UnsupportedOperationException

setContainerDataSource

public void setContainerDataSource(Container newDataSource)
Description copied from class: Select
Set the container as data-source for viewing.

Specified by:
setContainerDataSource in interface Container.Viewer
Overrides:
setContainerDataSource in class Select
Parameters:
newDataSource - The new data source Item
See Also:
Container.Viewer.setContainerDataSource(Container)

changeVariables

public void changeVariables(java.lang.Object source,
                            java.util.Map variables)
Invoked when the value of a variable has changed.

Specified by:
changeVariables in interface VariableOwner
Overrides:
changeVariables in class Select

paintContent

public void paintContent(PaintTarget target)
                  throws PaintException
Paint the content of this component.

Overrides:
paintContent in class Select
Parameters:
target - Paint target.
Throws:
PaintException - The paint operation failed.

getTag

public java.lang.String getTag()
Get UIDL tag corresponding to component.

Overrides:
getTag in class Select
Returns:
UIDL tag as string.

addActionHandler

public void addActionHandler(Action.Handler actionHandler)
Description copied from interface: Action.Container
Registers a new action handler for this container

Specified by:
addActionHandler in interface Action.Container
Parameters:
actionHandler - the new handler to be added.
See Also:
Action.Container.addActionHandler(Action.Handler)

removeActionHandler

public void removeActionHandler(Action.Handler actionHandler)
Description copied from interface: Action.Container
Remove a previously registered action handler for the contents of this container.

Specified by:
removeActionHandler in interface Action.Container
Parameters:
actionHandler - the handler to be removed
See Also:
Action.Container.removeActionHandler(Action.Handler)

valueChange

public void valueChange(Property.ValueChangeEvent event)
Description copied from class: AbstractField
This method listens to data source value changes and passes the changes forwards.

Specified by:
valueChange in interface Property.ValueChangeListener
Overrides:
valueChange in class AbstractField
Parameters:
event - the value change event telling the data source contents have changed
See Also:
Property.ValueChangeListener.valueChange(Property.ValueChangeEvent)

attach

public void attach()
Description copied from interface: Component
Notifies the component that it is connected to an application. This method is always called before the component is first time painted and is suitable to be extended. The getApplication() and getWindow() functions might return null before this method is called.

The caller of this method is Component.setParent(Component) if the parent is already in the application. If the parent is not in the application, it must call the Component.attach() for all its children when it will be added to the application.

Specified by:
attach in interface Component
Overrides:
attach in class AbstractComponent
See Also:
Component.attach()

detach

public void detach()
Description copied from interface: Component
Notifies the component that it is detached from the application.

The Component.getApplication() and Component.getWindow() methods might return null after this method is called.

The caller of this method is Component.setParent(Component) if the parent is in the application. When the parent is detached from the application it is its response to call Component.detach() for all the children and to detach itself from the terminal.

Specified by:
detach in interface Component
Overrides:
detach in class AbstractComponent
See Also:
Component.attach()

removeAllItems

public boolean removeAllItems()
Description copied from class: Select
Remove all items from the container. This functionality is optional. If the function is unsupported, it always returns false.

Specified by:
removeAllItems in interface Container
Overrides:
removeAllItems in class Select
Returns:
True iff the operation succeeded.
See Also:
Container.removeAllItems()

removeItem

public boolean removeItem(java.lang.Object itemId)
Description copied from class: Select
Remove item identified by Id from the container. This functionality is optional. If the function is not implemented, the functions allways returns false.

Specified by:
removeItem in interface Container
Overrides:
removeItem in class Select
Returns:
True iff the operation succeeded.
See Also:
Container.removeItem(Object)

removeContainerProperty

public boolean removeContainerProperty(java.lang.Object propertyId)
                                throws java.lang.UnsupportedOperationException
Description copied from class: Select
Remove property from all items. Removes a property with given id from all the items in the container. This functionality is optional. If the function is unsupported, it always returns false.

Specified by:
removeContainerProperty in interface Container
Overrides:
removeContainerProperty in class Select
Returns:
True iff the operation succeeded.
java.lang.UnsupportedOperationException
See Also:
Container.removeContainerProperty(Object)

addContainerProperty

public boolean addContainerProperty(java.lang.Object propertyId,
                                    java.lang.Class type,
                                    java.lang.Object defaultValue)
                             throws java.lang.UnsupportedOperationException
Adds a new property to the table and show it as a visible column.

Specified by:
addContainerProperty in interface Container
Overrides:
addContainerProperty in class Select
Parameters:
propertyId - Id of the proprty
type - The class of the property
defaultValue - The default value given for all existing items
Returns:
True iff the operation succeeded.
java.lang.UnsupportedOperationException
See Also:
Container.addContainerProperty(Object, Class, Object)

addContainerProperty

public boolean addContainerProperty(java.lang.Object propertyId,
                                    java.lang.Class type,
                                    java.lang.Object defaultValue,
                                    java.lang.String columnHeader,
                                    Resource columnIcon,
                                    java.lang.String columnAlignment)
                             throws java.lang.UnsupportedOperationException
Adds a new property to the table and show it as a visible column.

Parameters:
propertyId - Id of the proprty
type - The class of the property
defaultValue - The default value given for all existing items
columnHeader - Explicit header of the column. If explicit header is not needed, this should be set null.
columnIcon - Icon of the column. If icon is not needed, this should be set null.
columnAlignment - Alignment of the column. Null implies align left.
java.lang.UnsupportedOperationException
See Also:
Container.addContainerProperty(Object, Class, Object)

getVisibleItemIds

public java.util.Collection getVisibleItemIds()
Return list of items on the current page

Overrides:
getVisibleItemIds in class Select
See Also:
Select.getVisibleItemIds()

containerItemSetChange

public void containerItemSetChange(Container.ItemSetChangeEvent event)
Container datasource item set change. Table must flush its buffers on change.

Specified by:
containerItemSetChange in interface Container.ItemSetChangeListener
Overrides:
containerItemSetChange in class Select
See Also:
Container.ItemSetChangeListener.containerItemSetChange(org.millstone.base.data.Container.ItemSetChangeEvent)

containerPropertySetChange

public void containerPropertySetChange(Container.PropertySetChangeEvent event)
Container datasource property set change. Table must flush its buffers on change.

Specified by:
containerPropertySetChange in interface Container.PropertySetChangeListener
Overrides:
containerPropertySetChange in class Select
See Also:
Container.PropertySetChangeListener.containerPropertySetChange(org.millstone.base.data.Container.PropertySetChangeEvent)

setNewItemsAllowed

public void setNewItemsAllowed(boolean allowNewOptions)
                        throws java.lang.UnsupportedOperationException
Adding new items is not supported.

Overrides:
setNewItemsAllowed in class Select
Parameters:
allowNewOptions - New value of property allowNewOptions.
Throws:
java.lang.UnsupportedOperationException - if set to true.
See Also:
Select.setNewItemsAllowed(boolean)

focus

public void focus()
           throws java.lang.UnsupportedOperationException
Focusing to this component is not supported.

Overrides:
focus in class AbstractField
Throws:
java.lang.UnsupportedOperationException - if invoked.
See Also:
AbstractField.focus()


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.