|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.grid.RowHeights com.jidesoft.grid.HierarchicalRowHeights
public class HierarchicalRowHeights
A special row model for HierarchicalTable
. In addition to the row height information
that RowHeights keeps track of, it also maintains another SizeSequence of the actual row heights without
child components.
Field Summary |
---|
Fields inherited from class com.jidesoft.grid.RowHeights |
---|
_rowCount, _sizeSequence, listenerList |
Constructor Summary | |
---|---|
HierarchicalRowHeights()
|
|
HierarchicalRowHeights(int numEntries)
|
|
HierarchicalRowHeights(int[] heights)
|
|
HierarchicalRowHeights(int numEntries,
int value)
|
Method Summary | |
---|---|
int |
getActualRowHeight(int index)
Returns the actual row height of the specified row. |
int[] |
getActualRowHeights()
Returns the actual row height of all rows. |
void |
insertRows(int start,
int length,
int value)
Adds a contiguous group of row heights to this RowHeights . |
void |
removeRows(int start,
int length)
Removes a contiguous group of entries from this RowHeights . |
void |
setActualRowHeight(int index,
int height)
Sets the actual height of the specified row. |
void |
setActualRowHeights(int[] rowHeights)
Resets this HierarchicalRowHeights object,
using the data in the rowHeights argument. |
Methods inherited from class com.jidesoft.grid.RowHeights |
---|
addRowHeightChangeListener, fireRowHeightChanged, getRowHeight, getRowHeightChangeListeners, getRowHeights, getRowIndex, getRowPosition, removeRowHeightChangeListener, setRowHeight, setRowHeights |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HierarchicalRowHeights()
public HierarchicalRowHeights(int[] heights)
public HierarchicalRowHeights(int numEntries, int value)
public HierarchicalRowHeights(int numEntries)
Method Detail |
---|
public void setActualRowHeights(int[] rowHeights)
HierarchicalRowHeights
object,
using the data in the rowHeights
argument.
This method reinitializes this object so that it
contains as many rows as the rowHeights
array.
Each row height is initialized to the value of the
corresponding item in rowHeights
.
rowHeights
- the array of rowHeights to be contained in
this RowHeights
public void setActualRowHeight(int index, int height)
index
does not fall in the range:
(0 <= index < getActualRowHeights().length)
the behavior is unspecified.
index
- the index corresponding to the rowheight
- the actual height of the rowpublic int[] getActualRowHeights()
public int getActualRowHeight(int index)
index
is out of the range
(0 <= index < getActualRowHeights().length)
the behavior is unspecified.
index
- the index corresponding to the row
public void insertRows(int start, int length, int value)
RowHeights
RowHeights
. Note that the values of
start
and length
must satisfy the following conditions: (0 <= start <
getRowHeights().length) AND (length >= 0)
. If these conditions are not met, the behavior is unspecified
and an exception may be thrown.
insertRows
in class RowHeights
start
- the index to be assigned to the first row in the grouplength
- the number of rows in the groupvalue
- the size to be assigned to each new rowpublic void removeRows(int start, int length)
RowHeights
RowHeights
. Note that the values of
start
and length
must satisfy the following conditions: (0 <= start <
getRowHeights().length) AND (length >= 0)
. If these conditions are not met, the behavior is unspecified
and an exception may be thrown.
removeRows
in class RowHeights
start
- the index of the first row to be removedlength
- the number of rows to be removed
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |