public abstract class TreeModelAdapter extends TreeTableModel
TreeTableModel.Column
TableModel.CellControl, TableModel.ControlProxy
Modifier and Type | Field and Description |
---|---|
protected Vector |
objects |
CanExpand, closedFolder, closedFolderIcon, cutNodes, DepthMask, dontAdjustColumns, dynamicCanExpand, expandControlIcons, expandingIcon, expandingIconIcon, expandingNodes, expansionLevel, FlagMask, HasChildren, hasControls, HasMoreSiblings, hideRoot, IsExpanded, IsNode, matrix, multiSelectOneMustBeSelected, NODE_SCREEN_STATUS_DRAW_AFTER_TEXT_ONLY, NODE_SCREEN_STATUS_EXPANDING, NODE_SCREEN_STATUS_MOUSE_OVER, NODE_SCREEN_STATUS_SELECTED, noLines, openFolder, openFolderIcon, page, pageIcon, PatternMask, ranges, rootObject, selectedColor, selectedLine, selectedLines, selectExpanded, selectHighlightEntireLine, showWaitCursor, slowExpansionWaitTime, treeColumnHeader, treeWidth
activeCellControl, allColumnsSameSize, allRowsSameSize, canHScroll, canMoveColumnHeaders, canVScroll, cellInsets, charHeight, charWidth, clipData, colAdjustments, controlProxy, cursorSize, fillToEqualHeights, fillToEqualWidths, gap, hasColumnHeaders, hasPreferredSize, hasRowHeaders, hasSpanningColumns, hasSpanningRows, horizontalScrollUnit, keepSIP, mouseIsOverCell, numCols, numRows, preferredCols, preferredRows, selectRowWhenEditing, shadeAlternateRows, shadeColor, table, verticalScrollUnit
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_ABUT_ANY, BF_ABUT_BOTTOM, BF_ABUT_LEFT, BF_ABUT_RIGHT, BF_ABUT_TOP, 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
ALWAYS_STRETCHABLE, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_HIDDEN, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TAG_BACKGROUND_IMAGE, TAG_BUSY_DISPLAY, TAG_COLORS, TAG_CONTROL_PAINTER, TAG_EXPOSE_GROUP, TAG_FIXEDSIZE, TAG_GRAY_BACKGROUND, TAG_HIDE_CONTROL_OBJECT, TAG_HIDE_PARENT, TAG_INNER_TEXT_INSETS, TAG_INPUT_STACK_PARENT, TAG_INSETS, TAG_MAKE_VISIBLE, TAG_MAXIMUMSIZE, TAG_MINIMUMSIZE, TAG_PAINT_CONTROL_LIST, TAG_PREFERRED_TEXT_SIZE, TAG_PREFERRED_TEXT_SIZE_HEIGHT, TAG_PREFERRED_TEXT_SIZE_WIDTH, TAG_PREFERREDSIZE, TAG_RECT, TAG_SHADOW_INSETS, TAG_SPAN, TAG_SWIPER, TAG_TEMPORARY_ERROR, TAG_TEXT_INSETS, TAG_TEXTSIZE, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, ContainerDontPaintChildren, Disabled, DisablePopupMenu, DisplayOnly, DontBuffer, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, ModifiersInheritedFromWindow, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpUIEvents, ShowSIP, ShrinkToNothing, SmallControl, TakeChildUIEvents, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown
Constructor and Description |
---|
TreeModelAdapter() |
Modifier and Type | Method and Description |
---|---|
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) |
Object |
getObjectAtAddress(int[] address) |
protected Object |
getParentObject(int whichLine) |
Object |
getRoot()
This calls and returns createObject(null,0).
|
protected int |
newNodeObject(Object node) |
addExtraColumn, addressOf, addressOf, calculateColWidth, calculateExtraColWidth, calculateRowHeight, calculateSizes, canDoCollapse, canDoExpand, canScreenScroll, clicked, collapse, collapseMatrix, collapsing, columnOf, countChildren, countSelectedLines, countTotalChildNodes, delete, deleted, doCollapse, doExpand, doubleClicked, doubleClicked, drawNodeData, drawNodeLine, expand, expanding, expandMatrix, expandSlowNode, expandTo, expandTo, expandToLevel, findChild, findNextSibling, findParent, findParentOrPreviousSibling, findPreviousSibling, fireSelection, flagsAt, freeReusedIcon, fullExpandCollapse, getColumnCount, getColumns, getDataToDragAndDrop, getDataToTransfer, getDataWidth, getDepthOf, getDisplayStatus, getDrawOptions, getExtraColumnHeader, getFontColor, getHeightOfObject, getMenuFor, getNodeBackgroundColor, getNodeToCollapse, getNodeToExpand, getReusedIcon, getRootObject, getSelectedLines, getSelectedRanges, getTextRect, getToolTip, getToolTip, getTreeColumnHeader, getTreeModelHandler, getTreeNodeAt, indexOf, indexOf, init, insert, inserted, isCut, isSelected, made, modify, mouseOverChanged, objectAt, paintColumnHeader, paintColumnHeaders, paintEntireColumnHeaders, paintLine, paintLine, paintTableCell, paintTableCell, pressed, pressed, reExpandNode, reExpandSelectedNode, released, removeEntries, scrolled, scrollTo, select, select, select, selectAll, selectOnly, setRootObject, setSelectedLines, shrunk, toFlags, toReference, update, updateFlags
acceptColumnMoved, calculatePreferredColWidth, calculatePreferredRowHeight, calculatePreferredSize, calculateTextCharsInColumn, calculateTextLinesInRow, canSelect, checkControlFor, clearCellAdjustments, clearColumnWidthAdjustments, clearSelectionOnClick, closeActiveControl, columnMoved, deferPaintTableCell, doHotKey, editNow, editNow, endEditing, findCellsInArea, fixBorder, freezeUpdate, getCellAttributes, getCellControlFor, getCellData, getCellInsets, getCellPreferredSize, getCellRect, getCellText, getCellText, getColWidth, getColXPointInTable, getControlFor, getLock, getMaxColWidth, getMaxRowHeight, getMenuFor, getMenuOutsideCells, getMinColWidth, getMinRowHeight, getPreferredSize, getRowHeight, getRowYPointInTable, getTable, handleEvent, hasActiveControls, hasCellControlFor, inset, isActiveCellControl, makeActiveControlVisible, mouseMoving, notifyDataChange, onEvent, onKeyEvent, paintTableCellData, paintTableCellText, penClicked, penPressed, popupMenuEvent, positionCellControl, remapColumns, resized, restoreColumnWidthAdjustments, saveColumnWidthAdjustments, select, setColAdjust, setColWidth, show, showingMenuFor, sizeColumnToFitData, startedEditing, updateControls
protected Vector objects
protected int newNodeObject(Object node)
protected Object getParentObject(int whichLine)
protected int getIndexFor(int whichLine)
public Object getDataObjectAt(int whichLine)
TreeTableModel
getDataObjectAt
in class TreeTableModel
public int doExpand(int whichLine)
doExpand
in class TreeTableModel
public Object getRoot()
public Object getObjectAtAddress(int[] address)
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.