|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.TableModel
ewe.ui.TreeTableModel
ewe.ui.TreeModelAdapter
| Nested Class Summary |
| Nested classes inherited from class ewe.ui.TableModel |
TableModel.CellControl, TableModel.ControlProxy |
| Field Summary | |
protected Vector |
objects
|
| Fields inherited from class ewe.ui.TreeTableModel |
CanExpand, closedFolder, cutNodes, DepthMask, dynamicCanExpand, expandingIcon, expandingNodes, expansionLevel, FlagMask, HasChildren, hasControls, HasMoreSiblings, hideRoot, IsExpanded, IsNode, matrix, noLines, openFolder, page, PatternMask, ranges, rootObject, selectedColor, selectedLine, selectedLines, selectExpanded, showWaitCursor |
| Fields inherited from interface ewe.ui.UIConstants |
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN |
| Fields inherited from interface ewe.ui.CellConstants |
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST |
| Fields inherited from interface ewe.ui.ControlConstants |
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown |
| Constructor Summary | |
TreeModelAdapter()
|
|
| Method Summary | |
protected void |
adjustFlags(Object parent,
long[] indexes,
byte[] flags)
Use this to change the flags for the child indexes of the specified parent. |
protected abstract Object |
createObjectFor(Object parent,
int childIndex)
Use this to create a new node object for a node which is about to be expanded. |
int |
doExpand(int whichLine)
|
protected int |
getChildCount(Object parent)
If you do not override getChildIndexes() you must implement this. |
protected long[] |
getChildIndexes(Object parent)
This is used to get an array of indexes for each of the children of the parent Object. |
Object |
getDataObjectAt(int whichLine)
This returns getTreeNodeAt(line). |
String |
getDisplayString(int forLine,
TreeNode node)
|
protected String |
getDisplayString(Object parentNode,
int childIndex)
Override this to get the display string for the child of the parent. |
byte |
getFlags(int forLine,
TreeNode node)
|
protected byte |
getFlags(Object parentNode,
int childIndex,
byte savedFlags)
This is only called if "dynamicCanExpand" is set true. |
IImage |
getIcon(int forLine,
TreeNode node)
|
protected IImage |
getIcon(Object parentNode,
int childIndex)
Override this to get the icon for the child of the parent. |
protected int |
getIndexFor(int whichLine)
|
protected Object |
getParentObject(int whichLine)
|
protected int |
newNodeObject(Object node)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
protected Vector objects
| Constructor Detail |
public TreeModelAdapter()
| Method Detail |
protected int newNodeObject(Object node)
protected Object getParentObject(int whichLine)
protected int getIndexFor(int whichLine)
public Object getDataObjectAt(int whichLine)
TreeTableModel
getDataObjectAt in class TreeTableModelpublic int doExpand(int whichLine)
doExpand in class TreeTableModel
protected abstract Object createObjectFor(Object parent,
int childIndex)
protected long[] getChildIndexes(Object parent)
These indexes are to be used by you to reference that child relative to the parent.
protected int getChildCount(Object parent)
protected void adjustFlags(Object parent,
long[] indexes,
byte[] flags)
public String getDisplayString(int forLine,
TreeNode node)
getDisplayString in class TreeTableModel
public IImage getIcon(int forLine,
TreeNode node)
getIcon in class TreeTableModel
public byte getFlags(int forLine,
TreeNode node)
getFlags in class TreeTableModel
protected String getDisplayString(Object parentNode,
int childIndex)
protected IImage getIcon(Object parentNode,
int childIndex)
protected byte getFlags(Object parentNode,
int childIndex,
byte savedFlags)
Override this to return the flags (IsNode and/or CanExpand) for the child of the parent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||