| |
|
| java.lang.Object nextapp.echo2.app.Component nextapp.echo2.app.Grid
All known Subclasses: nextapp.echo2.testapp.interactive.TestGrid,
Grid | public class Grid extends Component (Code) | | A layout Component which renders its contents in a grid. Each
component is contained within a "cell" of the grid.
GridLayoutData layout data objects may used to cause cells to
expand to fill multiple columns or rows.
Child LayoutData: Children of this component may provide layout
information using the nextapp.echo2.app.layout.GridLayoutData
layout data object.
See Also: nextapp.echo2.app.layout.GridLayoutData |
Constructor Summary | |
public | Grid() Creates a new horizontally-oriented Grid with the
default size (2). | public | Grid(int size) Creates a new hoirzontally-oriented Grid with the
specified size. |
Method Summary | |
public Border | getBorder() Returns the Border . | public Extent | getColumnWidth(int columnIndex) Returns the width of the specified column. | public Extent | getHeight() Returns the overall height. | public Insets | getInsets() Returns the default cell insets. | public int | getOrientation() Returns the orientation of the grid (either horizontal or vertical). | public Extent | getRowHeight(int rowIndex) Returns the height of the specified row. | public int | getSize() Returns the number of columns or rows in the Grid . | public Extent | getWidth() Returns the overall width of the grid. | public void | setBorder(Border newValue) Sets the Border . | public void | setColumnWidth(int columnIndex, Extent newValue) Sets the width of the specified column. | public void | setHeight(Extent newValue) Sets the overall height of the grid. | public void | setInsets(Insets newValue) Sets the default cell insets. | public void | setOrientation(int newValue) Sets the orientation of the grid (either horizontal or vertical). | public void | setRowHeight(int rowIndex, Extent newValue) Sets the height of the specified row. | public void | setSize(int newValue) Sets the number of columns or rows in the grid. | public void | setWidth(Extent newValue) Sets the overall width of the grid. |
DEFAULT_SIZE | final public static int DEFAULT_SIZE(Code) | | |
ORIENTATION_HORIZONTAL | final public static int ORIENTATION_HORIZONTAL(Code) | | Constant value for orientation property indicating cells
should be laid out horizontally and then vertically.
ORIENTATION_HORIZONTAL is the default orientation setting.
|
ORIENTATION_VERTICAL | final public static int ORIENTATION_VERTICAL(Code) | | Constant value for orientation property indicating cells
should be laid out vertically and then horizontally.
|
PROPERTY_BORDER | final public static String PROPERTY_BORDER(Code) | | |
PROPERTY_COLUMN_WIDTH | final public static String PROPERTY_COLUMN_WIDTH(Code) | | |
PROPERTY_HEIGHT | final public static String PROPERTY_HEIGHT(Code) | | |
PROPERTY_INSETS | final public static String PROPERTY_INSETS(Code) | | |
PROPERTY_ORIENTATION | final public static String PROPERTY_ORIENTATION(Code) | | |
PROPERTY_ROW_HEIGHT | final public static String PROPERTY_ROW_HEIGHT(Code) | | |
PROPERTY_WIDTH | final public static String PROPERTY_WIDTH(Code) | | |
Grid | public Grid()(Code) | | Creates a new horizontally-oriented Grid with the
default size (2).
|
Grid | public Grid(int size)(Code) | | Creates a new hoirzontally-oriented Grid with the
specified size.
Parameters: size - the number of columns See Also: Grid.getSize() |
getBorder | public Border getBorder()(Code) | | Returns the Border .
the border |
getColumnWidth | public Extent getColumnWidth(int columnIndex)(Code) | | Returns the width of the specified column.
This property supports Extent s with
fixed or percentile units.
Parameters: columnIndex - the column index the width |
getHeight | public Extent getHeight()(Code) | | Returns the overall height.
This property only supports Extent s with
fixed (i.e., not percent) units.
the height |
getInsets | public Insets getInsets()(Code) | | Returns the default cell insets. The default cell insets will be used for
individual child cells that do not provide an Insets value
in their GridLayoutData .
the default cell insets |
getOrientation | public int getOrientation()(Code) | | Returns the orientation of the grid (either horizontal or vertical).
The orientation describes the direction in which cells are laid out.
An orientation of ORIENTATION_HORIZONTAL (the default)
specifies that cells should be laid out in horizontal rows
with the size property specifying the number of columns
per row.
An orientation of ORIENTATION_VERTICAL
specifies that cells should be laid out in vertical columns
with the size property specifying the number of rows
per column.
the orientation, one of the following values:ORIENTATION_HORIZONTAL (the default)ORIENTATION_VERTICAL
See Also: Grid.setOrientation |
getRowHeight | public Extent getRowHeight(int rowIndex)(Code) | | Returns the height of the specified row.
This property only supports Extent s with
fixed (i.e., not percent) units.
Parameters: rowIndex - the row index the height |
getSize | public int getSize()(Code) | | Returns the number of columns or rows in the Grid .
If the orientation property is set to
ORIENTATION_HORIZONTAL , this property represents the
number of columns in the Grid .
If the orientation property is set to
ORIENTATION_VERTICAL , this property represents the
number of rows in the Grid .
the number of columns or rows |
getWidth | public Extent getWidth()(Code) | | Returns the overall width of the grid.
This property supports Extent s with
fixed or percentile units.
the width |
setBorder | public void setBorder(Border newValue)(Code) | | Sets the Border .
Parameters: newValue - the new border |
setColumnWidth | public void setColumnWidth(int columnIndex, Extent newValue)(Code) | | Sets the width of the specified column.
This property supports Extent s with
fixed or percentile units.
Parameters: columnIndex - the column index Parameters: newValue - the new width |
setHeight | public void setHeight(Extent newValue)(Code) | | Sets the overall height of the grid.
This property only supports Extent s with
fixed (i.e., not percent) units.
Parameters: newValue - the new height |
setInsets | public void setInsets(Insets newValue)(Code) | | Sets the default cell insets. The default cell insets will be used for
individual child cells that do not provide an Insets value
in their GridLayoutData .
Parameters: newValue - the new default cell insets |
setOrientation | public void setOrientation(int newValue)(Code) | | Sets the orientation of the grid (either horizontal or vertical).
The orientation describes the direction in which cells are laid out.
An orientation of ORIENTATION_HORIZONTAL (the default)
specifies that cells should be laid out in horizontal rows
with the size property specifying the number of columns
per row.
An orientation of ORIENTATION_VERTICAL
specifies that cells should be laid out in vertical columns
with the size property specifying the number of rows
per column.
Parameters: newValue - the new orientation, one of the following values:ORIENTATION_HORIZONTAL (the default)ORIENTATION_VERTICAL
|
setRowHeight | public void setRowHeight(int rowIndex, Extent newValue)(Code) | | Sets the height of the specified row.
This property only supports Extent s with
fixed (i.e., not percent) units.
Parameters: rowIndex - the row index Parameters: newValue - the new height |
setSize | public void setSize(int newValue)(Code) | | Sets the number of columns or rows in the grid.
If the orientation property is set to
ORIENTATION_HORIZONTAL , this property represents the
number of columns in the Grid .
If the orientation property is set to
ORIENTATION_VERTICAL , this property represents the
number of rows in the Grid .
Parameters: newValue - the number of columns or rows See Also: Grid.getSize() |
setWidth | public void setWidth(Extent newValue)(Code) | | Sets the overall width of the grid.
This property supports Extent s with
fixed or percentile units.
Parameters: newValue - the new width |
Methods inherited from nextapp.echo2.app.Component | public void add(Component c)(Code)(Java Doc) public void add(Component c, int n) throws IllegalChildException(Code)(Java Doc) public void addPropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc) void assignRenderId(String renderId)(Code)(Java Doc) public void dispose()(Code)(Java Doc) void doDispose()(Code)(Java Doc) void doInit()(Code)(Java Doc) protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) public ApplicationInstance getApplicationInstance()(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) final public Component getComponent(int n)(Code)(Java Doc) final public Component getComponent(String id)(Code)(Java Doc) final public int getComponentCount()(Code)(Java Doc) final public Component[] getComponents()(Code)(Java Doc) protected EventListenerList getEventListenerList()(Code)(Java Doc) final public int getFocusTraversalIndex()(Code)(Java Doc) public Font getFont()(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public String getId()(Code)(Java Doc) final public Object getIndexedProperty(String propertyName, int propertyIndex)(Code)(Java Doc) public LayoutData getLayoutData()(Code)(Java Doc) public LayoutDirection getLayoutDirection()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) final public Component getParent()(Code)(Java Doc) final public Object getProperty(String propertyName)(Code)(Java Doc) public String getRenderId()(Code)(Java Doc) final public Object getRenderIndexedProperty(String propertyName, int propertyIndex)(Code)(Java Doc) final public Object getRenderIndexedProperty(String propertyName, int propertyIndex, Object defaultValue)(Code)(Java Doc) final public LayoutDirection getRenderLayoutDirection()(Code)(Java Doc) final public Locale getRenderLocale()(Code)(Java Doc) final public Object getRenderProperty(String propertyName)(Code)(Java Doc) final public Object getRenderProperty(String propertyName, Object defaultValue)(Code)(Java Doc) final public Style getStyle()(Code)(Java Doc) final public String getStyleName()(Code)(Java Doc) final public Component getVisibleComponent(int n)(Code)(Java Doc) final public int getVisibleComponentCount()(Code)(Java Doc) final public Component[] getVisibleComponents()(Code)(Java Doc) protected boolean hasEventListenerList()(Code)(Java Doc) final public int indexOf(Component c)(Code)(Java Doc) public void init()(Code)(Java Doc) final public boolean isAncestorOf(Component c)(Code)(Java Doc) final public boolean isEnabled()(Code)(Java Doc) public boolean isFocusTraversalParticipant()(Code)(Java Doc) final public boolean isRegistered()(Code)(Java Doc) final public boolean isRenderEnabled()(Code)(Java Doc) final public boolean isRenderVisible()(Code)(Java Doc) public boolean isValidChild(Component child)(Code)(Java Doc) public boolean isValidParent(Component parent)(Code)(Java Doc) final public boolean isVisible()(Code)(Java Doc) public void processInput(String inputName, Object inputValue)(Code)(Java Doc) void register(ApplicationInstance newValue)(Code)(Java Doc) public void remove(Component c)(Code)(Java Doc) public void remove(int n)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public void removePropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc) public void setBackground(Color newValue)(Code)(Java Doc) public void setEnabled(boolean newValue)(Code)(Java Doc) public void setFocusTraversalIndex(int newValue)(Code)(Java Doc) public void setFocusTraversalParticipant(boolean newValue)(Code)(Java Doc) public void setFont(Font newValue)(Code)(Java Doc) public void setForeground(Color newValue)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public void setIndexedProperty(String propertyName, int propertyIndex, Object newValue)(Code)(Java Doc) public void setLayoutData(LayoutData newValue)(Code)(Java Doc) public void setLayoutDirection(LayoutDirection newValue)(Code)(Java Doc) public void setLocale(Locale newValue)(Code)(Java Doc) public void setProperty(String propertyName, Object newValue)(Code)(Java Doc) public void setRenderId(String renderId)(Code)(Java Doc) public void setStyle(Style newValue)(Code)(Java Doc) public void setStyleName(String newValue)(Code)(Java Doc) public void setVisible(boolean newValue)(Code)(Java Doc) public void validate()(Code)(Java Doc) public boolean verifyInput(String inputName, Object inputValue)(Code)(Java Doc) final public int visibleIndexOf(Component c)(Code)(Java Doc)
|
|
|
|