|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface TableGroupNodeRealizer.Row
A Row
is a horizontal stripe of a given
height
within a node represented by a
TableGroupNodeRealizer
.
A row can be created using the addRow
methods of a
RowContainer
.
Client code should not hold onto instances of rows that have been removed from their container.
TableGroupNodeRealizer.RowContainer.addRow()
,
TableGroupNodeRealizer.RowContainer.addRow(int)
Method Summary | |
---|---|
java.awt.geom.Rectangle2D |
calculateBounds()
Calculates the bounding box of the row. |
double |
getHeight()
Returns the height of the row. |
int |
getIndex()
Returns the position of the row in its container. |
YInsets |
getInsets()
Returns the insets of the row. |
double |
getMinimumHeight()
Returns the minimum height of the row. |
NodeList |
getNodes()
Returns a cursor over all nodes that lie inside the row. |
TableGroupNodeRealizer.RowContainer |
getParent()
Returns the container that holds the row. |
boolean |
isSelected()
Returns whether or not the row is selected. |
void |
remove()
Removes the row from its container. |
void |
setHeight(double height)
Specifies the height for the row. |
void |
setIndex(int index)
Move the row to the specified position in its container. |
void |
setInsets(YInsets insets)
Sets the insets for the row. |
void |
setMinimumHeight(double minimumHeight)
Specifies the minimum height for the row. |
void |
setParent(TableGroupNodeRealizer.RowContainer container)
Moves the row from its current container to the specified container. |
void |
setSelected(boolean selected)
Sets the selected state of the row. |
Methods inherited from interface y.view.tabular.TableGroupNodeRealizer.RowContainer |
---|
addRow, addRow, getRow, getRows, rowCount |
Method Detail |
---|
TableGroupNodeRealizer.RowContainer getParent()
setParent(y.view.tabular.TableGroupNodeRealizer.RowContainer)
void setParent(TableGroupNodeRealizer.RowContainer container)
container
- the new container for the row.
java.lang.IllegalStateException
- if the row has already been removed from
its container.
java.lang.IllegalArgumentException
- if the specified container is
null
, the row is an ancestor of the specified container,
or if the specified container does belong to different
TableGroupNodeRealizer
instance.getParent()
int getIndex()
-1
is
returned.
setIndex(int)
void setIndex(int index)
index
- the new position of the row.
java.lang.IllegalStateException
- if the row does not belong to any
container.getIndex()
void remove()
java.lang.IllegalStateException
- if the row does not belong to any
container or if it is the sole row of the table.NodeList getNodes()
boolean isSelected()
setSelected(boolean)
void setSelected(boolean selected)
selected
- the new selected state.isSelected()
void setMinimumHeight(double minimumHeight)
minimumHeight
- the new minimum height for the row.getMinimumHeight()
double getMinimumHeight()
setMinimumHeight(double)
void setHeight(double height)
height
- the new height for the row.getHeight()
double getHeight()
setHeight(double)
java.awt.geom.Rectangle2D calculateBounds()
java.lang.IllegalStateException
- if the row has been removed from its
parent container.void setInsets(YInsets insets)
null
, a zero insets
object, i.e. an instance with top
, left
,
bottom
, and right
all being 0
will be used instead.
Specified insets should never contain negative values; if they do
the row behavior is undefined.
insets
- the new row insets.getInsets()
YInsets getInsets()
setInsets(y.geom.YInsets)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |