|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.netanel.swt.matrix.Grouping
public class Grouping
Manages collapse-able hierarchy of item groups. Parent nodes span across its children. There are toggle buttons to collapse/expand groups.
Nested Class Summary | |
---|---|
class |
Grouping.CellPainter
|
static class |
Grouping.Node
Represent a node in the grouping hierarchy. |
static class |
Grouping.NodeVisitor
Traverses the given node or array of nodes and all the related nodes at the lower levels. |
class |
Grouping.SeparatorPainter
|
Constructor Summary | |
---|---|
Grouping(Zone<java.lang.Integer,java.lang.Integer> zone,
int axisDirection,
Grouping.Node root)
Creates groups in the given zone that are spanning in the giving direction according to the given node hierarchy. |
Method Summary | |
---|---|
void |
dispose()
Disposes the grouping. |
Matrix<java.lang.Integer,java.lang.Integer> |
getMatrix()
Returns the matrix the grouping is created for. |
Grouping.Node |
getNodeByCellIndex(int indexX,
int indexY)
|
Grouping.Node |
getNodeByTreeIndex(int... index)
|
Grouping.Node |
getRoot()
Return the root of the grouping hierarchy. |
java.lang.String |
getText(java.lang.Integer indexX,
java.lang.Integer indexY)
Returns the text of the cell at the given indexes. |
void |
refresh()
|
void |
setToggleImages(Image collapseImage,
Image expandImage)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grouping(Zone<java.lang.Integer,java.lang.Integer> zone, int axisDirection, Grouping.Node root)
zone
- zone at which grouping should happenaxisDirection
- direction of grouping: SWT.HORIZONTAL or SWT.VERTICALroot
- root Node of the grouping hierarchyMethod Detail |
---|
public void dispose()
public java.lang.String getText(java.lang.Integer indexX, java.lang.Integer indexY)
indexX
- cell index on the horizontal axisindexY
- cell index on the vertical axis
public Grouping.Node getRoot()
public Matrix<java.lang.Integer,java.lang.Integer> getMatrix()
public Grouping.Node getNodeByCellIndex(int indexX, int indexY)
public Grouping.Node getNodeByTreeIndex(int... index)
public void setToggleImages(Image collapseImage, Image expandImage)
public void refresh()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |