|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.Component nextapp.echo.app.list.AbstractListComponent
public abstract class AbstractListComponent
Abstract base class for selection list components (i.e., SelectField
s and ListBox
es).
Constructor Summary | |
---|---|
AbstractListComponent()
Creates a new AbstractListComponent with default models. |
|
AbstractListComponent(ListModel model,
ListSelectionModel selectionModel)
Creates a new AbstractListComponent with the specified
models. |
Method Summary | |
---|---|
void |
addActionListener(ActionListener l)
Adds an ActionListener to the list component. |
java.lang.String |
getActionCommand()
Returns the action command which will be provided in ActionEvent s fired by this
AbstractListComponent . |
Border |
getBorder()
Returns the Border surrounding the list component. |
ListCellRenderer |
getCellRenderer()
Returns the ListCellRenderer used to render items. |
Color |
getDisabledBackground()
Returns the background color displayed when the component is disabled. |
Border |
getDisabledBorder()
Returns the border displayed when the component is disabled. |
Font |
getDisabledFont()
Returns the font displayed when the component is disabled. |
Color |
getDisabledForeground()
Returns the foreground color displayed when the component is disabled. |
Extent |
getHeight()
Returns the height. |
Insets |
getInsets()
Returns the inset margin around between the list components border and content. |
ListModel |
getModel()
Returns the model. |
Color |
getRolloverBackground()
Returns the rollover background. |
Font |
getRolloverFont()
Returns the rollover font. |
Color |
getRolloverForeground()
Returns the rollover foreground. |
ListSelectionModel |
getSelectionModel()
Returns the selection model. |
java.lang.String |
getToolTipText()
Returns the tool tip text (displayed when the mouse cursor is hovered over the component). |
Extent |
getWidth()
Returns the width. |
boolean |
hasActionListeners()
Determines the any ActionListener s are registered. |
boolean |
isRolloverEnabled()
Determines if rollover effects are enabled. |
boolean |
isValidChild(Component child)
This component does not support children. |
void |
processInput(java.lang.String inputName,
java.lang.Object inputValue)
Processes client input specific to the Component
received from the UpdateManager . |
void |
removeActionListener(ActionListener l)
Removes an ActionListener from the list component. |
void |
setActionCommand(java.lang.String newValue)
Sets the action command which will be provided in ActionEvent s fired by this
AbstractListComponent . |
void |
setBorder(Border newValue)
Sets the Border surrounding the list component. |
void |
setCellRenderer(ListCellRenderer newValue)
Sets the renderer for items. |
void |
setDisabledBackground(Color newValue)
Sets the background color displayed when the component is disabled. |
void |
setDisabledBorder(Border newValue)
Sets the border displayed when the component is disabled. |
void |
setDisabledFont(Font newValue)
Sets the font displayed when the component is disabled. |
void |
setDisabledForeground(Color newValue)
Sets the foreground color displayed when the component is disabled. |
void |
setHeight(Extent newValue)
Sets the height. |
void |
setInsets(Insets newValue)
Sets the inset margin around between the list components border and content. |
void |
setModel(ListModel newValue)
Sets the model. |
void |
setRolloverBackground(Color newValue)
Sets the rollover background. |
void |
setRolloverEnabled(boolean newValue)
Sets whether rollover effects are enabled. |
void |
setRolloverFont(Font newValue)
Sets the rollover font. |
void |
setRolloverForeground(Color newValue)
Sets the rollover foreground. |
void |
setSelectionModel(ListSelectionModel newValue)
Sets the selection model. |
void |
setToolTipText(java.lang.String newValue)
Sets the tool tip text (displayed when the mouse cursor is hovered over the component). |
void |
setWidth(Extent newValue)
Sets the width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INPUT_ACTION
public static final java.lang.String PROPERTY_ACTION_COMMAND
public static final java.lang.String ACTION_LISTENERS_CHANGED_PROPERTY
public static final java.lang.String LIST_DATA_CHANGED_PROPERTY
public static final java.lang.String LIST_MODEL_CHANGED_PROPERTY
public static final java.lang.String LIST_CELL_RENDERER_CHANGED_PROPERTY
public static final java.lang.String SELECTION_MODEL_CHANGED_PROPERTY
public static final java.lang.String SELECTION_CHANGED_PROPERTY
public static final java.lang.String PROPERTY_BORDER
public static final java.lang.String PROPERTY_DISABLED_BACKGROUND
public static final java.lang.String PROPERTY_DISABLED_BORDER
public static final java.lang.String PROPERTY_DISABLED_FONT
public static final java.lang.String PROPERTY_DISABLED_FOREGROUND
public static final java.lang.String PROPERTY_HEIGHT
public static final java.lang.String PROPERTY_INSETS
public static final java.lang.String PROPERTY_ROLLOVER_BACKGROUND
public static final java.lang.String PROPERTY_ROLLOVER_ENABLED
public static final java.lang.String PROPERTY_ROLLOVER_FONT
public static final java.lang.String PROPERTY_ROLLOVER_FOREGROUND
public static final java.lang.String PROPERTY_TOOL_TIP_TEXT
public static final java.lang.String PROPERTY_WIDTH
public static final DefaultListCellRenderer DEFAULT_LIST_CELL_RENDERER
Constructor Detail |
---|
public AbstractListComponent()
AbstractListComponent
with default models.
public AbstractListComponent(ListModel model, ListSelectionModel selectionModel)
AbstractListComponent
with the specified
models.
model
- the list data modelselectionModel
- the selection modelMethod Detail |
---|
public void addActionListener(ActionListener l)
ActionListener
to the list component.
The ActionListener
will be invoked when the user
selects an item.
l
- the ActionListener
to addpublic java.lang.String getActionCommand()
ActionEvent
s fired by this
AbstractListComponent
.
public Border getBorder()
Border
surrounding the list component.
public ListCellRenderer getCellRenderer()
ListCellRenderer
used to render items.
public Color getDisabledBackground()
public Border getDisabledBorder()
public Font getDisabledFont()
public Color getDisabledForeground()
public Extent getHeight()
Extent
s with
fixed (i.e., not percent) units.
public Insets getInsets()
public ListModel getModel()
public Color getRolloverBackground()
public Font getRolloverFont()
public Color getRolloverForeground()
public ListSelectionModel getSelectionModel()
public java.lang.String getToolTipText()
public Extent getWidth()
Extent
s with
fixed or percentile units.
public boolean hasActionListeners()
ActionListener
s are registered.
public boolean isRolloverEnabled()
public boolean isValidChild(Component child)
isValidChild
in class Component
child
- the Component
to evaluate as a child
Component
is a valid childComponent.isValidChild(nextapp.echo.app.Component)
public void processInput(java.lang.String inputName, java.lang.Object inputValue)
Component
Component
received from the UpdateManager
.
Derivative implementations should take care to invoke
super.processInput()
.
Security note: Because input to this method is
likely from a remote client, it should be treated as potentially hostile.
All input to this method should be carefully verified.
For example, directly invoking set()
method with the
provided input would constitute a security hole.
processInput
in class Component
inputName
- the name of the inputinputValue
- the value of the inputComponent.processInput(java.lang.String, java.lang.Object)
public void removeActionListener(ActionListener l)
ActionListener
from the list component.
l
- the ActionListener
to removepublic void setActionCommand(java.lang.String newValue)
ActionEvent
s fired by this
AbstractListComponent
.
newValue
- the new action commandpublic void setBorder(Border newValue)
Border
surrounding the list component.
newValue
- the new Border
public void setCellRenderer(ListCellRenderer newValue)
DEFAULT_LIST_CELL_RENDERER
for default behavior).
newValue
- the new rendererpublic void setDisabledBackground(Color newValue)
newValue
- the new Color
public void setDisabledBorder(Border newValue)
newValue
- the new borderpublic void setDisabledFont(Font newValue)
newValue
- the new Font
public void setDisabledForeground(Color newValue)
newValue
- the new Color
public void setHeight(Extent newValue)
Extent
s with
fixed (i.e., not percent) units.
newValue
- the new heightpublic void setInsets(Insets newValue)
newValue
- the new inset marginpublic void setModel(ListModel newValue)
newValue
- the new modelpublic void setRolloverBackground(Color newValue)
newValue
- the new rollover backgroundpublic void setRolloverEnabled(boolean newValue)
newValue
- the new rollover enabled statepublic void setRolloverFont(Font newValue)
newValue
- the new rollover fontpublic void setRolloverForeground(Color newValue)
newValue
- the new rollover foregroundpublic void setSelectionModel(ListSelectionModel newValue)
newValue
- the new selection modelpublic void setToolTipText(java.lang.String newValue)
newValue
- the new tool tip textpublic void setWidth(Extent newValue)
Extent
s with
fixed or percentile units.
newValue
- the new width
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |