public class TreeListWidget extends TreeWidgetBase implements TreeList
BaseEntity.CharsPixels
Modifier and Type | Field and Description |
---|---|
protected java.util.List<TreeListConfig.Column> |
columns
List of columns.
|
protected boolean |
pendingPushColumns
Flag marking columns or column position changes are pending
|
private static integer |
WHITE
Convenience constant for white color value
|
buildingTree, LOG
comData
ALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHT
group
config, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccess
name, nextSibling, prevSibling
instProc
Constructor and Description |
---|
TreeListWidget()
Default constructor.
|
TreeListWidget(boolean dynamic)
Default constructor.
|
TreeListWidget(boolean dynamic,
TreeListConfig config)
Custom constructor to simplify subclassing.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addColumn(TreeListConfig.Column column)
Append a newly-created column to the end of
column list.
|
void |
afterConfigUpdate(TreeConfig beforeUpdate)
The method is called after the configuration associated with
the implementor changes.
|
protected boolean |
allowDuplicateKeys()
Test if this tree allows duplicate node key values.
|
void |
clearAll()
This methods calls super, then clear all columns.
|
private void |
columnUpdate(int index,
TreeListConfig.Column column)
Update a column at the given index.
|
integer |
createCellImage(character path)
Creates an image that can be later used in
setCellIcon(NumberType, NumberType, NumberType) |
integer |
createColumn(character caption,
NumberType dataType,
NumberType width,
NumberType align,
NumberType bgColor,
NumberType fgColor)
Create a new column and append to the tree-list columns.
|
protected TreeListNodeResource |
createNode(java.lang.String key,
java.lang.String text,
TreeNodeResource parent)
Creates new node.
|
void |
ensureNodeVisible(character nodeKey)
Assure the supplied node is visible in the tree viewport
|
private TreeListConfig.Column |
findColumn(int colIndex)
Finds column configuration entry from column index.
|
private TreeListConfig.Column |
findColumn(NumberType colIndex)
Finds column configuration entry from column index.
|
void |
fixColumnsLeft(NumberType colIndex)
Fixes the columns to the left starting at the provided column index.
|
integer |
getCellBgColor(NumberType nodeId,
NumberType colIndex)
Returns background color of the supplied cell.
|
integer |
getCellFgColor(NumberType nodeId,
NumberType colIndex)
Returns foreground color of the supplied cell.
|
void |
getCellString(NumberType nodeId,
NumberType colIndex,
character outValue)
Retrieve cell value as a string.
|
private <T> T |
getCellValue(NumberType nodeId,
NumberType colIndex,
java.util.function.Function<TreeNodeResource,java.util.List<T>> getValues)
Helper method to set indexed field values, like cell colors and values.
|
integer |
getColumnPosition(NumberType index)
Returns column position, based on the column index.
|
integer |
getColumnWidth(NumberType index)
Returns column width of a specified column.
|
character |
getDateSeparator()
Getter for the DATE-SEPARATOR attribute.
|
character |
getDecimalSeparator()
Getter for the DECIMAL-SEPARATOR attribute.
|
integer |
getNodeBgColor(NumberType nodeId)
Returns background color of the supplied node.
|
integer |
getNodeFgColor(NumberType nodeId)
Returns foreground color of the supplied node.
|
character |
getShortDateFormat()
Getter for the SHORT-DATE-FORMAT attribute.
|
integer |
getSortedColumnCount()
Getter for the SORTED-COLUMN-COUNT attribute.
|
integer |
getSortedColumns()
Getter for the SORTED-COLUMNS attribute.
|
character |
getThousandSeparator()
Getter for the THOUSAND-SEPARATOR attribute.
|
integer |
getTriggerColumn()
Getter for TRIGGER-COLUMN attribute.
|
logical |
isAsteriskActive()
Getter for the ASTERISK-ACTIVE attribute.
|
logical |
isColumnVisible(NumberType index)
IS-COLUMN-VISIBLE method.
|
logical |
isEventsActive()
Getter for the EVENTS-ACTIVE attribute.
|
logical |
isShowHeader()
Getter for the SHOW-HEADER attribute.
|
void |
moveDownInParent()
This should move the currently selected node after its next sibling.
|
void |
moveUpInParent()
This should move the currently selected node before its previous sibling.
|
void |
resort()
Resorts the list according to current settings.
|
void |
setAsteriskActive(logical value)
Setter for the ASTERISK-ACTIVE attribute.
|
void |
setBuildingTree(logical value)
Setter for the BUILDING-TREE attribute.
|
void |
setCellBgColor(NumberType nodeId,
NumberType colIndex,
NumberType color)
Sets background color for the supplied cell.
|
void |
setCellFgColor(NumberType nodeId,
NumberType colIndex,
NumberType color)
Sets foreground color for the supplied cell.
|
void |
setCellIcon(NumberType nodeId,
NumberType colIndex,
NumberType imgId)
SET-CELL-ICON-VALUE method.
|
void |
setCellString(NumberType nodeId,
NumberType colIndex,
character value)
Sets string value to a specified cell.
|
private void |
setCellValue(int nodeId,
int colIndex,
java.util.function.Function<TreeNodeResource,java.util.List> getValues,
java.lang.Object newValue)
Helper method to set indexed field values, like cell colors and values.
|
void |
setColumnCaption(NumberType index,
character caption)
Sets column caption.
|
void |
setColumnVisible(NumberType colIndex,
logical visible)
SET-COLUMN-VISIBLE method.
|
void |
setColumnWidth(NumberType colIndex,
NumberType width)
Sets column width of a specified column.
|
void |
setDateSeparator(character value)
Setter for the DATE-SEPARATOR attribute.
|
void |
setDecimalSeparator(character value)
Setter for the DECIMAL-SEPARATOR attribute.
|
void |
setEventsActive(logical value)
Setter for the EVENTS-ACTIVE attribute.
|
void |
setNodeBgColor(NumberType nodeId,
NumberType bgrValue)
Sets background color for the supplied node.
|
void |
setNodeFgColor(NumberType nodeId,
NumberType fgrValue)
Sets foreground color for the supplied node.
|
void |
setShortDateFormat(character value)
Setter for the SHORT-DATE-FORMAT attribute.
|
void |
setShowHeader(logical value)
Setter for the SHOW-HEADER attribute.
|
void |
setSortedColumns(NumberType colIndex)
Setter for the SORTED-COLUMNS attribute.
|
void |
setThousandSeparator(character value)
Setter for the THOUSAND-SEPARATOR attribute.
|
private void |
swapNodes(java.util.function.Function<TreeNodeResource,handle> getOtherNode)
If a node is selected in the tree, try to swap it with the given node.
|
private TreeListConfig |
treeListConfig()
Get widget config casted to the real type.
|
_getSelectedNode, _setSelectedNode, _setSelectedNode, addNode, assertKnown, clearNodesImageList, collapseAll, collapseAllExcept, collapseNode, createImage, createMergedImage, createSubNode, delete, deleteChildNodes, doWithNode, doWithNode, doWithNode, doWithNode, doWithNodeImpl, ensureNodeVisible, ensureNodeVisible, expandAll, expandNode, findNode, findNode, findNode, findNode, getDraggedNode, getDraggedOverNode, getDropHighlight, getDropHighlightNodeId, getFirstChildNode, getFirstNode, getFirstVisibleNode, getFocusedAndSelectedNode, getFocusedAndSelectedNodeKey, getFocusedNode, getFocusedNodeKey, getImageList, getIndentation, getLineStyle, getNewNodeLabel, getNextNode, getNextNodeId, getNextSiblingNode, getNodeAt, getNodeBold, getNodeHasChildren, getNodeHeight, getNodeLevel, getNodes, getNodeText, getNodeVisibleInViewPort, getParentNode, getPrevSiblingNode, getPrivateData, getRemoveNodeOnCollapse, getRootNode, getRowHeight, getScreenValue, getScreenValue, getScrollNodeCount, getScrollWheelLines, getSelectedNode, getSelectedNodeColors, getSelectedNodeId, getSelectedNodeKey, getStyle, getTopVisibleNodeId, getTreeNodeByIndex, getTreeNodeIndex, getTriggerNode, getVisibleNodeCount, hitTest, hitTestFwd, isBuildingTree, isCheckBoxes, isDblClickExpanding, isDragDrop, isDragDropOtherTree, isExpandOnEnter, isExpandOnSingleClick, isMultiSelect, isNodeExpanded, isShowButtons, isTextEdit, nodeKeyToId, pushNodes, pushWidgetAttr, pushWidgetAttr, removeNode, removeNode, requestNodeExpand, scrollNodeToTop, scrollVertical, selectSetFirstVisibleNode, setCheckBoxes, setDblClickExpanding, setDragDrop, setDragDropOtherTree, setDropHighlight, setExpandOnEnter, setExpandOnSingleClick, setImageList, setImageList, setIndentation, setLineStyle, setMultiSelect, setNewNodeLabel, setNodeBold, setNodeHasChildren, setNodeHeight, setNodeText, setPrivateData, setRemoveNodeOnCollapse, setRowHeight, setScrollWheelLines, setSelectedNode, setSelectedNodeColors, setSelectedNodeKey, setShowButtons, setStyle, setTextEdit, setTreeNodeIcons, startLabelEdit, updateNode
getAllowedEffects, getComData, getDataFormat, getEffect, getMouseButton, getMouseIcon, getMousePointerNum, getMouseShift, getMouseX, getMouseY, getOleDragMode, getOleDropMode, getOleX, getOleY, getState, isDefaultCursors, isEnabled, oleDrag, refreshUI, setAllowedEffects, setAllowedEffects, setComData, setDataFormat, setDataFormat, setDefaultCursors, setDefaultCursors, setEffect, setEffect, setEnabled, setEnabled, setMouseIcon, setMouseIcon, setMousePointerNum, setMousePointerNum, setOleDragMode, setOleDragMode, setOleDropMode, setOleDropMode, setOleX, setOleX, setOleY, setOleY, setState, setState
changeFontWorker, firstChild, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getPreviousTabItem, getPrevSibling, getSideLabelHandleWorker, getSizeAttrs, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, lastChild, processSideLabel, resetAutoResize, setAttrSpace, setAutoResize, setAutoResize, setColumnLabel, setColumnLabel, setDataType, setDataType, setDropTarget, setForceLabel, setForceLabel, setHeightCharsWorker, setHeightPixelsWorker, setIndex, setIndex, setModified, setModified, setNoAttrSpace, setNoLabels, setSideLabelHandleWorker, setTitle, setTitle, setTo, setTo, setWidthCharsWorker, setWidthPixelsWorker, validateFields
_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFont, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderline, setGroup, setHeightChars, setHeightChars, setHeightImpl, setHeightPixels, setHeightPixels, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setSystemParent, setTabStop, setTabStop, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthImpl, setWidthPixels, setWidthPixels, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow
_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _setDynamic, _setVisible, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, canPushWidgetAttr, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, editUndo, enable, finishConfigProcessing, finishSetup, flushWidgetAttrs, genAssignUnknownWarning, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDbName, getFormat, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getQuery, getRetainShape, getSideLabelHandle, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWidth, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, pushScreenDefinition, readOnlyError, readOnlyError, realize, refresh, resourceDelete, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrs, setAutoCompletion, setAutoCompletion, setAutoReturn, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, setDbname, setDeblank, setDisableAutoZap, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValueInt, setScreenValueNoErrorHandling, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, setWidth, truncatePixelSize, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateLabelAssignment, view, warningAlreadyRealized, widgetName
firstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName
doDelete, getResourceType, id, id, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, setInstantiatingProcedure, toString, type, unableToAssignUnknown, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
id, id, unknown, valid
clearNodesImageList, collapseAll, collapseAllExcept, collapseNode, createImage, createMergedImage, createSubNode, createSubNode, deleteChildNodes, expandAll, expandNode, findNode, findNode, getDraggedNode, getDraggedOverNode, getDropHighlight, getFirstChildNode, getFirstNode, getFirstVisibleNode, getFocusedAndSelectedNode, getFocusedAndSelectedNodeKey, getFocusedNode, getFocusedNodeKey, getHWND, getImageList, getIndentation, getLineStyle, getMousePointerNum, getNewNodeLabel, getNextNode, getNextSiblingNode, getNodeAt, getNodeBold, getNodeHasChildren, getNodeHeight, getNodeLevel, getNodeText, getNodeVisibleInViewPort, getParentNode, getPrevSiblingNode, getPrivateData, getRemoveNodeOnCollapse, getRowHeight, getScrollNodeCount, getScrollWheelLines, getSelectedNode, getSelectedNodeColors, getSelectedNodeId, getSelectedNodeKey, getStyle, getTopVisibleNodeId, getTriggerNode, getVisibleNodeCount, hitTest, hitTestFwd, isBuildingTree, isCheckBoxes, isDblClickExpanding, isDragDrop, isDragDropOtherTree, isExpandOnEnter, isExpandOnSingleClick, isMultiSelect, isNodeExpanded, isShowButtons, isTextEdit, nodeKeyToId, scrollNodeToTop, scrollVertical, selectSetFirstVisibleNode, setCheckBoxes, setDblClickExpanding, setDragDrop, setDragDropOtherTree, setDropHighlight, setExpandOnEnter, setExpandOnSingleClick, setImageList, setImageList, setIndentation, setLineStyle, setMousePointerNum, setMultiSelect, setNewNodeLabel, setNodeBold, setNodeHasChildren, setNodeHeight, setNodeText, setPrivateData, setRemoveNodeOnCollapse, setRowHeight, setScrollWheelLines, setSelectedNode, setSelectedNodeColors, setSelectedNodeKey, setShowButtons, setStyle, setTextEdit, setTreeNodeIcons, startLabelEdit
removeNode
getFontInfo, getFontName, getFontSize, isFontBold, isFontItalic, isFontUnderline, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderline
getAllowedEffects, getDataFormat, getEffect, getOleDragMode, getOleDropMode, getOleX, getOleY, getState, isDefaultCursors, oleDrag, setAllowedEffects, setDataFormat, setDefaultCursors, setEffect, setOleDragMode, setOleDropMode, setOleX, setOleY, setState
isVisible, setVisible, setVisible
endFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTarget
getIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValue
getPrivateData, setPrivateData, setPrivateData
getResourceType
setDisableRedraw
protected final java.util.List<TreeListConfig.Column> columns
WHen BUILDING-TREE mode of off, this list contains same entries as config.columns
protected boolean pendingPushColumns
private static final integer WHITE
public TreeListWidget()
public TreeListWidget(boolean dynamic)
dynamic
- Flag indicating if this is a static or dynamic resource.public TreeListWidget(boolean dynamic, TreeListConfig config)
dynamic
- Flag indicating if this is a static or dynamic resource.config
- The config to use to create widget.public void afterConfigUpdate(TreeConfig beforeUpdate)
afterConfigUpdate
in interface ConfigOwner<TreeConfig>
afterConfigUpdate
in class TreeWidgetBase
beforeUpdate
- Config reference capturing the config state before
the owner's config was modified.public void clearAll()
clearAll
in interface TreeFace
clearAll
in class TreeWidgetBase
public integer createCellImage(character path)
setCellIcon(NumberType, NumberType, NumberType)
createCellImage
in interface TreeList
path
- The image file path. Can be an absolute name or relative. When relative the Propath entries
will be searched.public integer createColumn(character caption, NumberType dataType, NumberType width, NumberType align, NumberType bgColor, NumberType fgColor)
createColumn
in interface TreeList
caption
- Column caption.dataType
- Data type, where:
0... character,
1... decimal,
2... date/datetime (TODO),
3... integer,
4... icon (TODO)width
- Pixel width of the column.align
- Horizontal value alignment, where:
0... TODO,
1... right,
2... middle,
3... leftbgColor
- Background color. The value is binary compatible with the result of RGB-VALUE
function.fgColor
- Foreground color. The value is binary compatible with the result of RGB-VALUE
function.
TODO: is this parameter really foreground color?public void ensureNodeVisible(character nodeKey)
ensureNodeVisible
in interface TreeFace
nodeKey
- the node to make visiblepublic void fixColumnsLeft(NumberType colIndex)
fixColumnsLeft
in interface TreeList
colIndex
- Column index. Set negative value or unknown to unfix all columns.public integer getCellBgColor(NumberType nodeId, NumberType colIndex)
getCellBgColor
in interface TreeList
nodeId
- A valid node id.colIndex
- Column index.public integer getCellFgColor(NumberType nodeId, NumberType colIndex)
getCellFgColor
in interface TreeList
nodeId
- A valid node id.colIndex
- Column index.public void getCellString(NumberType nodeId, NumberType colIndex, character outValue)
getCellString
in interface TreeList
nodeId
- Node id.colIndex
- 0-based column indexoutValue
- If the method succeeds, it will assign the cell string value.public integer getColumnPosition(NumberType index)
getColumnPosition
in interface TreeList
index
- Column index.public integer getColumnWidth(NumberType index)
getColumnWidth
in interface TreeList
index
- Column index.public character getDateSeparator()
getDateSeparator
in interface TreeList
public character getDecimalSeparator()
getDecimalSeparator
in interface TreeList
public integer getNodeBgColor(NumberType nodeId)
getNodeBgColor
in interface TreeFace
nodeId
- a valid node idpublic integer getNodeFgColor(NumberType nodeId)
getNodeFgColor
in interface TreeFace
getNodeFgColor
in class TreeWidgetBase
nodeId
- a valid node idpublic character getShortDateFormat()
getShortDateFormat
in interface TreeList
public integer getSortedColumnCount()
getSortedColumnCount
in interface TreeList
public integer getSortedColumns()
getSortedColumns
in interface TreeList
public character getThousandSeparator()
getThousandSeparator
in interface TreeList
public integer getTriggerColumn()
getTriggerColumn
in interface TreeList
public logical isAsteriskActive()
isAsteriskActive
in interface TreeList
public logical isColumnVisible(NumberType index)
isColumnVisible
in interface TreeList
index
- 0-based column indexpublic logical isEventsActive()
isEventsActive
in interface TreeList
public logical isShowHeader()
isShowHeader
in interface TreeList
public void moveDownInParent()
moveDownInParent
in interface TreeList
public void moveUpInParent()
moveUpInParent
in interface TreeList
public void resort()
public void setAsteriskActive(logical value)
setAsteriskActive
in interface TreeList
value
- the attribute valuepublic void setBuildingTree(logical value)
true
any model changes (columns added, nodes added or removed) won't
be reflected until the attribute is set back to false
.setBuildingTree
in interface TreeFace
setBuildingTree
in class TreeWidgetBase
value
- the attribute valuepublic void setCellBgColor(NumberType nodeId, NumberType colIndex, NumberType color)
setCellBgColor
in interface TreeList
nodeId
- A valid node id.colIndex
- Column index.color
- The new color.public void setCellFgColor(NumberType nodeId, NumberType colIndex, NumberType color)
setCellFgColor
in interface TreeList
nodeId
- A valid node id.colIndex
- Column index.color
- The color value.public void setCellIcon(NumberType nodeId, NumberType colIndex, NumberType imgId)
setCellIcon
in interface TreeList
nodeId
- Node id.colIndex
- 0-based column indeximgId
- Id of the image to assign. The image must be first created with
TreeFace.createImage(character)
.public void setCellString(NumberType nodeId, NumberType colIndex, character value)
setCellString
in interface TreeList
nodeId
- Node id.colIndex
- 0-based column indexvalue
- New string value.public void setColumnCaption(NumberType index, character caption)
setColumnCaption
in interface TreeList
index
- Column index.caption
- The new caption.public void setColumnVisible(NumberType colIndex, logical visible)
setColumnVisible
in interface TreeList
colIndex
- 0-based column indexvisible
- New visibility state.public void setColumnWidth(NumberType colIndex, NumberType width)
setColumnWidth
in interface TreeList
colIndex
- Column index.width
- The new width.public void setDateSeparator(character value)
setDateSeparator
in interface TreeList
value
- the attribute valuepublic void setDecimalSeparator(character value)
setDecimalSeparator
in interface TreeList
value
- the attribute valuepublic void setEventsActive(logical value)
setEventsActive
in interface TreeList
value
- the attribute valuepublic void setNodeBgColor(NumberType nodeId, NumberType bgrValue)
setNodeBgColor
in interface TreeFace
nodeId
- a valid node idbgrValue
- the new colorpublic void setNodeFgColor(NumberType nodeId, NumberType fgrValue)
setNodeFgColor
in interface TreeFace
nodeId
- a valid node idfgrValue
- the new colorpublic void setShortDateFormat(character value)
setShortDateFormat
in interface TreeList
value
- the attribute valuepublic void setShowHeader(logical value)
true
columns header
will be shown at the top of the list.setShowHeader
in interface TreeList
value
- the attribute valuepublic void setSortedColumns(NumberType colIndex)
setSortedColumns
in interface TreeList
colIndex
- The index of the column to sort ascending by or a negative value to disable sorting.public void setThousandSeparator(character value)
setThousandSeparator
in interface TreeList
value
- the attribute valueprotected final void addColumn(TreeListConfig.Column column)
column
- the column to appendprotected boolean allowDuplicateKeys()
allowDuplicateKeys
in class TreeWidgetBase
protected TreeListNodeResource createNode(java.lang.String key, java.lang.String text, TreeNodeResource parent)
createNode
in class TreeWidgetBase
key
- Node key.text
- Node text.parent
- Node parent.private void columnUpdate(int index, TreeListConfig.Column column)
index
- valid column indexcolumn
- the new columnprivate TreeListConfig.Column findColumn(int colIndex)
colIndex
- A valid column index.null
if the index doesn't refer to a valid column.private TreeListConfig.Column findColumn(NumberType colIndex)
colIndex
- A valid column index.null
if the index doesn't refer to a valid column.private final <T> T getCellValue(NumberType nodeId, NumberType colIndex, java.util.function.Function<TreeNodeResource,java.util.List<T>> getValues)
T
- the value typenodeId
- the node IDcolIndex
- the cell indexgetValues
- the procedure to retrieve the value array from the nodeprivate final void setCellValue(int nodeId, int colIndex, java.util.function.Function<TreeNodeResource,java.util.List> getValues, java.lang.Object newValue)
nodeId
- the node IDcolIndex
- the cell indexgetValues
- the procedure to retrieve the value array from the nodenewValue
- the new valueprivate final void swapNodes(java.util.function.Function<TreeNodeResource,handle> getOtherNode)
null
, then do nothing.getOtherNode
- the function to obtain the other node, may return null
.
the function must guarantee its return value always differs from the
selected node.private final TreeListConfig treeListConfig()