|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.Grid
public class Grid
A component used to lay out child components in a grid. Re-implemented for reduction of heap usage with flyweight pattern.
Nested Class Summary | |
---|---|
static class |
Grid.Cell
A container component representing a single cell of a grid. |
static class |
Grid.ExternalState
|
class |
Grid.GridCellOverlapException
An exception that is thrown when grid cells overlap (due to their column/row spans). |
Field Summary | |
---|---|
static java.lang.String |
BORDER_COLOR_CHANGED_PROPERTY
|
static java.lang.String |
BORDER_SIZE_CHANGED_PROPERTY
|
static java.lang.String |
CELL_LAYOUT_ORIENTATION_CHANGED_PROPERTY
|
static int |
CELL_LAYOUT_ORIENTATION_HORIZONTAL
A constant value for the CellLayoutOrientation property. |
static int |
CELL_LAYOUT_ORIENTATION_VERTICAL
A constant value for the CellLayoutOrientation property. |
static java.lang.String |
CELL_MARGIN_CHANGED_PROPERTY
|
static java.lang.String |
COLUMN_DELETED_PROPERTY
|
static java.lang.String |
COLUMN_INSERTED_PROPERTY
|
static java.lang.String |
COLUMN_WIDTH_CHANGED_PROPERTY
|
static java.lang.String |
COLUMNS_CHANGED_PROPERTY
|
static java.lang.String |
HEIGHT_CHANGED_PROPERTY
|
static java.lang.String |
HEIGHT_UNITS_CHANGED_PROPERTY
|
static int |
PERCENT_INDIVIDUAL_PIXEL_TOTAL_UNITS
A constant value for the WidthUnits and
HeightUnits properties. |
static int |
PERCENT_UNITS
A constant value for the WidthUnits and
HeightUnits properties. |
static int |
PIXEL_UNITS
A constant value for the WidthUnits and
HeightUnits properties. |
static java.lang.String |
ROW_DELETED_PROPERTY
|
static java.lang.String |
ROW_HEIGHT_CHANGED_PROPERTY
|
static java.lang.String |
ROW_INSERTED_PROPERTY
|
static java.lang.String |
ROWS_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_BORDER_COLOR
A style constant for the Border Color property. |
static java.lang.String |
STYLE_BORDER_SIZE
A style constant for the Border Size property. |
static java.lang.String |
STYLE_CELL_MARGIN
A style constant for the Cell Margin property. |
static java.lang.String |
STYLE_COLUMN_WIDTHS
A style constant for the setting column widths. |
static java.lang.String |
STYLE_HEIGHT
A style constant for the Height property. |
static java.lang.String |
STYLE_HEIGHT_UNITS
A style constant for the Height Units property. |
static java.lang.String |
STYLE_ROW_HEIGHTS
A style constant for the setting row heights. |
static java.lang.String |
STYLE_WIDTH
A style constant for the Width property. |
static java.lang.String |
STYLE_WIDTH_UNITS
A style constant for the Width Units property. |
static int |
UNKNOWN_SIZE
Deprecated. Use EchoConstants.UNDEFINED_SIZE. |
static java.lang.String |
WIDTH_CHANGED_PROPERTY
|
static java.lang.String |
WIDTH_UNITS_CHANGED_PROPERTY
|
Fields inherited from interface nextapp.echoservlet.ComponentPeer |
---|
IGNORE_PROPERTY_CHANGE |
Constructor Summary | |
---|---|
Grid()
Creates a new Grid. |
Method Summary | |
---|---|
void |
add(Component c)
Component implementation * |
void |
add(Component c,
int index)
Throws an UnsupportedOperationException if component is
not a cell. |
void |
add(Coordinate position,
Grid.Cell cell)
Adds a cell at a specific coordinate. |
Grid.Cell |
add(int column,
int row,
Component component)
Creates a new Cell containing only the given component and adds it at the specified position. |
void |
add(int column,
int row,
Grid.Cell cell)
Adds a cell at a specific coordinate. |
void |
addAncillaryService(Service service)
ComponentPeer implementation |
void |
addHierarchyListener(HierarchyListener l)
Adds a hierarchy listener to be notified when this component's state in the hierarchy changes. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener to this component. |
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
void |
deleteColumn(int column)
Remove a column from the grid. |
void |
deleteRow(int row)
Remove a row from the grid. |
void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
char oldValue,
char newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
double oldValue,
double newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
float oldValue,
float newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
long oldValue,
long newValue)
Reports a bound property change. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Reports a bound property change. |
Id |
generateId()
|
Grid.Cell |
get(Coordinate position)
Returns the Cell at the specified position |
Grid.Cell |
get(int column,
int row)
Returns the Cell at the specified position |
Color |
getBackground()
Returns the background color of the component. |
Color |
getBorderColor()
Returns the border color. |
int |
getBorderSize()
Returns the border size. |
Color |
getCalculatedBackground()
Returns the background color in which the component will be rendered. |
Font |
getCalculatedFont()
Returns the font in which the component will be rendered. |
Color |
getCalculatedForeground()
Returns the foreground color in which the component will be rendered. |
int |
getCellLayoutOrientation()
Returns the cell layout orientation. |
int |
getCellMargin()
Returns the cell margin. |
Coordinate |
getCellPosition(Grid.Cell cell)
Returns the position of a specific cell in the grid. |
java.lang.String |
getClientId()
Gets the reuseable Id, this is used to keep component peer id constant over show/hide cycles. |
int |
getColumns()
Returns the programmatically-defined allowed number of columns. |
int |
getColumnWidth(int column)
Returns the width of a grid column. |
Component |
getComponent()
Returns the component that is handled by this peer. |
Component |
getComponent(int n)
Gets the nth immediate child component. |
int |
getComponentCount()
Returns the number of immediate child components. |
Component[] |
getComponents()
Returns an array of all immediate child components. |
java.lang.String |
getCssClass()
|
EchoInstance |
getEchoInstance()
Returns the EchoInstance object to which this component belongs, or null if it is not bound to any instance. |
java.lang.String |
getFocusedElementId()
|
Font |
getFont()
Returns the font. |
Color |
getForeground()
Returns the foreground of the component. |
int |
getHeight()
Returns the overall height of the grid. |
int |
getHeightUnits()
Returns the units (pixel or percent) in which column heights and overall grid height are measured. |
Id |
getId()
Returns the Id by which this peer is identified on the
client. |
java.lang.Object |
getIdentifier()
Returns the identifier for this component. |
InstancePeer |
getInstancePeer()
Returns the InstancePeer |
EventListenerList |
getListenerList()
|
java.util.Locale |
getLocale()
Returns the locale of the component. |
Component |
getParent()
Returns the parent component. |
ComponentPeer |
getParentComponentPeer()
Returns the peer of the associated component's component. |
ComponentPeer |
getPeer(Component component)
Returns the peer of the specified component. |
int |
getRowHeight(int row)
Returns the height of a grid row. |
int |
getRows()
Returns the programmatically-defined allowed number of rows. |
Dimension |
getSize()
Returns the size of the grid. |
boolean |
getUseInternalBorders()
|
int |
getWidth()
Returns the overall width of the grid. |
int |
getWidthUnits()
Returns the units (pixel or percent) in which column widths and overall grid width are measured. |
int |
indexOf(Component c)
Returns the index of the specified component if it a child of this Component, or -1 if it is not. |
void |
init()
|
void |
insertColumn(int column)
Inserts a column into the grid. |
void |
insertRow(int row)
Inserts a row into the grid. |
void |
invalidate()
|
boolean |
isAncestorOf(Component c)
Determines if this component is an ancestor of the specified component. |
boolean |
isEnabled()
Returns true if the component is enabled. |
boolean |
isFocused()
Returns true if the component is focused. |
boolean |
isInitialized()
|
boolean |
isRecursivelyVisible()
|
boolean |
isRegistered()
Returns true if the component is registered to an application. |
boolean |
isSelectableForScriptRecorder()
|
boolean |
isShowing()
Returns true if the component is registered and all of its ancestors are visible. |
boolean |
isVisible()
Returns the component's visibility state. |
java.util.Iterator |
iterator()
Returns a sequential (column then row) iterator over all cells in the grid. |
void |
processHierarchyEvent(long changeFlags,
Component changed,
Component changedParent)
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
redraw()
Requests that the component be redrawn on the client. |
void |
registerAncillaryServices()
|
void |
registered()
Called when the component is registered. |
void |
remove(Component component)
Removes the specified Cell. |
Grid.Cell |
remove(Coordinate position)
Removes and returns the cell at the specified position. |
void |
remove(int n)
Removes the component at the given index. |
Grid.Cell |
remove(int column,
int row)
Removes and returns the cell at the specified position. |
void |
removeAll()
Removes all child Components. |
void |
removeAncillaryService(Service service)
Removes an ancillary service from this ComponentPeer . |
void |
removeHierarchyListener(HierarchyListener l)
Removes a hierarchy listener from being notified when this component's state in the hierarchy changes. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener from this component. |
void |
render(RenderingContext rc,
Element parent)
A method that should be overridden for the ComponentPeer to produce HTML output. |
void |
setBackground(Color newValue)
Sets the background color of the component. |
void |
setBorderColor(Color newValue)
Sets the border color of the grid. |
void |
setBorderSize(int newValue)
Sets the size of the grid's border. |
void |
setCellLayoutOrientation(int newValue)
Sets the cell layout orientation. |
void |
setCellMargin(int newValue)
Sets the cell interior margin. |
void |
setClientId(java.lang.String reusableId)
Sets the reuseable Id, this is used to keep component peer id constant over show/hide cycles. |
void |
setColumns(int newValue)
Sets the programmatically defined allowed number of columns. |
void |
setColumnWidth(int column,
int newValue)
Sets the width of a column of the grid. |
void |
setComponent(Component c)
|
void |
setCssClass(java.lang.String cssClass)
|
void |
setEnabled(boolean newValue)
Sets whether the component is enabled. |
void |
setFocused(boolean newValue)
Sets whether the component is focused. |
void |
setFont(Font font)
Sets the font of the component. |
void |
setForeground(Color newValue)
Sets the foreground color of the component. |
void |
setHeight(int newValue)
Sets the overall height of the grid. |
void |
setHeightUnits(int newValue)
Sets the units (pixel or percent) in which row heights and overall grid height are measured. |
void |
setId(Id generateId)
|
void |
setIdentifier(java.lang.Object newValue)
Sets the identifier for this component. |
void |
setInitialized(boolean initialized)
|
void |
setInstancePeer(InstancePeer instancePeer)
|
void |
setLocale(java.util.Locale newValue)
Sets the locale of the component. |
void |
setParent(Component parent)
|
void |
setRegistered(boolean b)
|
void |
setRowHeight(int row,
int newValue)
Sets the height of a row of the grid. |
void |
setRows(int newValue)
Sets the programmatically defined allowed number of rows. |
void |
setSelectableForScriptRecorder(boolean b)
|
void |
setUseInternalBorders(boolean borderCollapse)
|
void |
setVisible(boolean newValue)
Sets the component visible or invisible. |
void |
setWidth(int newValue)
Sets the overall width of the grid. |
void |
setWidthUnits(int newValue)
Sets the units (pixel or percent) in which column widths and overall grid width are measured. |
void |
superAdd(Component c,
int n)
|
void |
superApplyStyle(Style style)
|
void |
superRemove(Component c)
|
void |
unregisterAncillaryServices()
|
void |
unregistered()
Called when the component is unregistered. |
void |
update()
Forces the component to be re-rendered immediately. |
void |
validate()
Overrides Component.validate(), to ensure that no cells of the grid overlap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CELL_LAYOUT_ORIENTATION_HORIZONTAL
CellLayoutOrientation
property.
Specifies that cells should be layed out horizontally until all columns
are used and then vertically.
public static final int CELL_LAYOUT_ORIENTATION_VERTICAL
CellLayoutOrientation
property.
Specifies that cells should be layed out vertically until all rows are
used and then horizontally.
public static final int PIXEL_UNITS
WidthUnits
and
HeightUnits
properties. This value specifies that
pixel-based units are used in defining the individual column or row sizes
and the overall width and height of the grid.
public static final int PERCENT_INDIVIDUAL_PIXEL_TOTAL_UNITS
WidthUnits
and
HeightUnits
properties. This value specifies that
percent-based units are used in defining the individual column or row
sizes, but pixel based units are used in defining the overall width or
height of the grid.
public static final int PERCENT_UNITS
WidthUnits
and
HeightUnits
properties. This value specifies that
percent-based are used in defining both the individual column or row
sizes and the overall width or height of the grid.
public static final java.lang.String STYLE_BORDER_COLOR
public static final java.lang.String STYLE_BORDER_SIZE
public static final java.lang.String STYLE_CELL_MARGIN
public static final java.lang.String STYLE_COLUMN_WIDTHS
public static final java.lang.String STYLE_HEIGHT
public static final java.lang.String STYLE_HEIGHT_UNITS
public static final java.lang.String STYLE_ROW_HEIGHTS
public static final java.lang.String STYLE_WIDTH
public static final java.lang.String STYLE_WIDTH_UNITS
public static final int UNKNOWN_SIZE
public static final java.lang.String BORDER_COLOR_CHANGED_PROPERTY
public static final java.lang.String BORDER_SIZE_CHANGED_PROPERTY
public static final java.lang.String CELL_MARGIN_CHANGED_PROPERTY
public static final java.lang.String CELL_LAYOUT_ORIENTATION_CHANGED_PROPERTY
public static final java.lang.String COLUMN_DELETED_PROPERTY
public static final java.lang.String COLUMN_INSERTED_PROPERTY
public static final java.lang.String COLUMN_WIDTH_CHANGED_PROPERTY
public static final java.lang.String COLUMNS_CHANGED_PROPERTY
public static final java.lang.String HEIGHT_CHANGED_PROPERTY
public static final java.lang.String HEIGHT_UNITS_CHANGED_PROPERTY
public static final java.lang.String ROW_DELETED_PROPERTY
public static final java.lang.String ROW_HEIGHT_CHANGED_PROPERTY
public static final java.lang.String ROW_INSERTED_PROPERTY
public static final java.lang.String ROWS_CHANGED_PROPERTY
public static final java.lang.String WIDTH_CHANGED_PROPERTY
public static final java.lang.String WIDTH_UNITS_CHANGED_PROPERTY
Constructor Detail |
---|
public Grid()
Method Detail |
---|
public void add(Component c, int index)
UnsupportedOperationException
if component is
not a cell.
add
in interface Component
c
- The child component to add.index
- The index at which to add the child component, or -1 to add
the component at the end.Component.add(Component, int)
public void add(Coordinate position, Grid.Cell cell)
position
- The coordinate position of the cell.cell
- The cell to be added.public void add(int column, int row, Grid.Cell cell)
column
- The column at which to add the component.row
- The row at which to add the component.cell
- The cell to be added.public Grid.Cell add(int column, int row, Component component)
column
- The column at which to add the component.row
- The row at which to add the component.component
- The component to be added.
Cell
object that was added to the grid at the
specified coordinate, containing the specified component. This
value is useful if the application needs to set additional
properties on the cell.public void applyStyle(Style style)
Component
Style
object. The version of this method in Component
will set
foreground and background colors and the font from the style if they are
present. Components should override this method if they allow more
properties to be set from a style object, and should call
super.applyStyle() if necessary.
applyStyle
in interface Component
style
- The style object from which to retrieve properties for this
Component
.Component.applyStyle(Style)
public void deleteColumn(int column)
column
- The column to remove from the grid.public void deleteRow(int row)
row
- The row to remove from the grid.public Grid.Cell get(Coordinate position)
position
- The coordinate of the cell.
public Grid.Cell get(int column, int row)
column
- The column number of the cell to retrieve.row
- The row number of the cell to retrieve.
public Color getBorderColor()
public int getBorderSize()
public int getCellLayoutOrientation()
public int getCellMargin()
public Coordinate getCellPosition(Grid.Cell cell)
cell
- The cell whose position is to be returned.
public int getColumns()
public int getColumnWidth(int column)
EchoConstants.UNDEFINED_SIZE
is returned. The units for
this value may be pixels or percentiles, based on the value of the
"WidthUnits" property.
column
- The column index.
public int getHeight()
EchoConstants.UNDEFINED_SIZE
is returned.public int getHeightUnits()
PIXEL_UNITS
(the default)PERCENT_INDIVIDUAL_PIXEL_TOTAL_UNITS
PERCENT_UNITS
public int getRowHeight(int row)
EchoConstants.UNDEFINED_SIZE
is returned. The units for
this value may be pixels or percentiles, based on the value of the
"HeightUnits" property.
row
- The row index.
public Dimension getSize()
Dimension
.public int getRows()
public int getWidth()
EchoConstants.UNDEFINED_SIZE
is returned.public int getWidthUnits()
PIXEL_UNITS
(the default)PERCENT_INDIVIDUAL_PIXEL_TOTAL_UNITS
PERCENT_UNITS
public void insertColumn(int column)
column
- The index of the inserted column.public void insertRow(int row)
row
- The index of the inserted row.public void invalidate()
public java.util.Iterator iterator()
public void remove(Component component)
remove
in interface Component
component
- The cell to be removed.Component.remove(nextapp.echo.Component)
public Grid.Cell remove(Coordinate position)
position
- The coordinate position of the cell to remove.
public Grid.Cell remove(int column, int row)
column
- The column number of the cell to remove.row
- The row number of the cell to remove.
public void setBorderColor(Color newValue)
newValue
- The border color of the grid.public void setBorderSize(int newValue)
newValue
- The size of the grid's border, in pixels.public void setCellLayoutOrientation(int newValue)
newValue
- The new cell layout orientation, one of the following values:
public void setCellMargin(int newValue)
newValue
- The cell margin, in pixels.public void setColumns(int newValue)
newValue
- The allowed number of columns in the grid.public void setColumnWidth(int column, int newValue)
column
- The column number.newValue
- The new width of the specified column.public void setHeight(int newValue)
newValue
- The new height of the grid. To set the height to be undefined,
use the EchoConstants.UNDEFINED_SIZE
constant.public void setHeightUnits(int newValue)
newValue
- The new unit measurement, one of the following values:
PIXEL_UNITS
(the default)PERCENT_INDIVIDUAL_PIXEL_TOTAL_UNITS
PERCENT_UNITS
public void setRowHeight(int row, int newValue)
row
- The row number.newValue
- The new height of the specified row.public void setRows(int newValue)
newValue
- The allowed number of rows in the grid.public void setWidth(int newValue)
newValue
- The new width of the grid. To set the width to be undefined,
use the EchoConstants.UNDEFINED_SIZE
constant.public void setWidthUnits(int newValue)
newValue
- The new unit measurement, one of the following values:
PIXEL_UNITS
(the default)PERCENT_INDIVIDUAL_PIXEL_TOTAL_UNITS
PERCENT_UNITS
public void validate()
GridCellOverlapException
is thrown.
validate
in interface Component
public boolean getUseInternalBorders()
public void setUseInternalBorders(boolean borderCollapse)
public void add(Component c)
add
in interface Component
c
- The child component to add.public void superAdd(Component c, int n)
public void addHierarchyListener(HierarchyListener l)
Component
addHierarchyListener
in interface Component
l
- The HierarchyListener
to add.public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Component
addPropertyChangeListener
in interface Component
l
- The listener to add.public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Component
firePropertyChange
in interface Component
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.public void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
Component
firePropertyChange
in interface Component
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.public void firePropertyChange(java.lang.String propertyName, char oldValue, char newValue)
Component
firePropertyChange
in interface Component
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.public void firePropertyChange(java.lang.String propertyName, double oldValue, double newValue)
Component
firePropertyChange
in interface Component
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.public void firePropertyChange(java.lang.String propertyName, float oldValue, float newValue)
Component
firePropertyChange
in interface Component
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.public void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
Component
firePropertyChange
in interface Component
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.public void firePropertyChange(java.lang.String propertyName, long oldValue, long newValue)
Component
firePropertyChange
in interface Component
propertyName
- The name of the changed property.oldValue
- The previous value of the property.newValue
- The present value of the property.public java.lang.String getClientId()
Component
Gets the reuseable Id, this is used to keep component peer id constant over show/hide cycles.
getClientId
in interface Component
public Component getComponent(int n)
Component
getComponent
in interface Component
n
- The index of the component to retrieve.
public int getComponentCount()
Component
getComponentCount
in interface Component
public Component[] getComponents()
Component
getComponents
in interface Component
public EchoInstance getEchoInstance()
Component
getEchoInstance
in interface Component
public Font getFont()
Component
getFont
in interface Component
public java.lang.Object getIdentifier()
Component
getIdentifier
in interface Component
public EventListenerList getListenerList()
getListenerList
in interface Component
public java.util.Locale getLocale()
Component
getLocale
in interface Component
public Component getParent()
Component
getParent
in interface Component
public int indexOf(Component c)
Component
indexOf
in interface Component
c
- The component to determine the index of.
public void init()
init
in interface Component
public boolean isAncestorOf(Component c)
Component
isAncestorOf
in interface Component
c
- The component to test for ancestry.
public boolean isEnabled()
Component
isEnabled
in interface Component
public boolean isFocused()
Component
isFocused
in interface Component
public boolean isRecursivelyVisible()
isRecursivelyVisible
in interface Component
public boolean isRegistered()
Component
isRegistered
in interface Component
public boolean isShowing()
Component
isShowing
in interface Component
public boolean isVisible()
Component
isVisible
in interface Component
public void processHierarchyEvent(long changeFlags, Component changed, Component changedParent)
processHierarchyEvent
in interface Component
public boolean isInitialized()
public void setInitialized(boolean initialized)
public void removeHierarchyListener(HierarchyListener l)
Component
removeHierarchyListener
in interface Component
l
- The HierarchyListener
to remove.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Component
removePropertyChangeListener
in interface Component
l
- The listener to be removed.public Color getBackground()
Component
getBackground
in interface Component
public Color getForeground()
Component
getForeground
in interface Component
public void setBackground(Color newValue)
Component
setBackground
in interface Component
newValue
- The new background color of the component.public void setForeground(Color newValue)
Component
setForeground
in interface Component
newValue
- The new foreground color of the component.public void setClientId(java.lang.String reusableId)
Component
Sets the reuseable Id, this is used to keep component peer id constant over show/hide cycles. Do not call from your application code !
setClientId
in interface Component
public void setEnabled(boolean newValue)
Component
setEnabled
in interface Component
newValue
- True if the component is enabled.public void setFocused(boolean newValue)
Component
setFocused
in interface Component
newValue
- True if the component is to be focused.public void setFont(Font font)
Component
setFont
in interface Component
font
- The new font of the component.public void setIdentifier(java.lang.Object newValue)
Component
setIdentifier
in interface Component
newValue
- The new identifier for this component.public void setLocale(java.util.Locale newValue)
Component
setLocale
in interface Component
newValue
- The new locale for the component.public void setParent(Component parent)
setParent
in interface Component
public void setRegistered(boolean b)
setRegistered
in interface Component
public void setVisible(boolean newValue)
Component
setVisible
in interface Component
newValue
- The new visibility state of the component.public void update()
Component
update
in interface Component
public void superApplyStyle(Style style)
public void superRemove(Component c)
public void remove(int n)
Component
remove
in interface Component
n
- The index of the child component to remove.public void removeAll()
Component
removeAll
in interface Component
public InstancePeer getInstancePeer()
ComponentPeer
InstancePeer with which this peer is associated.
If the peer is unregistered, null will be returned.
- Specified by:
getInstancePeer
in interface ComponentPeer
- Returns:
- The
InstancePeer with which this peer is associated.
public void addAncillaryService(Service service)
addAncillaryService
in interface ComponentPeer
service
- The ancillary service to be added.public Id generateId()
generateId
in interface ComponentPeer
public Component getComponent()
ComponentPeer
getComponent
in interface ComponentPeer
public java.lang.String getFocusedElementId()
getFocusedElementId
in interface ComponentPeer
public Id getId()
ComponentPeer
Id
by which this peer is identified on the
client.
getId
in interface ComponentPeer
Id
by which this peer is identified on the
client.public ComponentPeer getPeer(Component component)
ComponentPeer
getPeer
in interface ComponentPeer
component
- The component whose peer is to be returned.
public void redraw()
ComponentPeer
redraw
in interface ComponentPeer
public void registerAncillaryServices()
registerAncillaryServices
in interface ComponentPeer
public void removeAncillaryService(Service service)
ComponentPeer
ComponentPeer
.
Ancillary services will be registered for the life of the
ComponentPeer
and automatically removed when it is
unregistered. An ancillary service should be used by ONLY one peer, as
the peer will register and unregister it from the
removeAncillaryService
in interface ComponentPeer
service
- The ancillary service to be removed.public void setComponent(Component c)
setComponent
in interface ComponentPeer
public void setId(Id generateId)
setId
in interface ComponentPeer
public void setInstancePeer(InstancePeer instancePeer)
setInstancePeer
in interface ComponentPeer
public void unregisterAncillaryServices()
unregisterAncillaryServices
in interface ComponentPeer
public ComponentPeer getParentComponentPeer()
ComponentPeer
getParentComponentPeer
in interface ComponentPeer
public Color getCalculatedBackground()
ComponentPeer
getCalculatedBackground
in interface ComponentPeer
public Font getCalculatedFont()
ComponentPeer
getCalculatedFont
in interface ComponentPeer
public Color getCalculatedForeground()
ComponentPeer
getCalculatedForeground
in interface ComponentPeer
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public void registered()
ComponentPeer
registered
in interface ComponentPeer
public void unregistered()
ComponentPeer
unregistered
in interface ComponentPeer
public void render(RenderingContext rc, Element parent)
ComponentPeer
render
in interface ComponentPeer
rc
- A rendering context provided by the Connection
.parent
- The element that will contain content rendered by this
ComponentPeer
.public boolean isSelectableForScriptRecorder()
isSelectableForScriptRecorder
in interface Component
public void setSelectableForScriptRecorder(boolean b)
setSelectableForScriptRecorder
in interface Component
public void setCssClass(java.lang.String cssClass)
public java.lang.String getCssClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |