addedItems: itemsOrderedCollection at: indicesOrderedCollection
Item(s) were added to the collection of root items at the specified position. The position is specified as an index in the collection of root items only. Refresh the list.
attributeName: aSymbolSpecifies a unary selector sent to an item to return its name/label.
collapseItem:
anItemCollapse the hierarchy rooted at
anItem.
deferRefreshWhile: aBlockMinimize the repainting done while
aBlock is being evaluated. This message may be safely nested. This message does not guarantee minimal repainting. Rather, it serves as a hint to the widget so that, where possible and appropriate, repainting can be deferred until the block has finished being evaluated.
deselectIndex: anIntegerDeselect and remove an item from the selected list by position.
deselectItem: itemDeselect and remove the specified item from the selected list.
editItem: anItemBegin editing the given item.
emphasisPolicy: anInteger
Specifies whether to draw the icon and label emphasis as one single rectangle or as two separate rectangles.
endEdit
Call the end edit events and proceed with an end to the edit if approved. Hide the edit widget only if the end was approved. Answer whether the end was approved.
expandItem:
anItemExpand the hierarchy rooted at
anItem.
hierarchyPolicy: hierarchyPolicy
Determines how the hierarchy is to be shown. This includes what the indentation level should be as well as whether to draw lines connecting the items and whether to show some kind of button beside items which have children. By default the hierarchyPolicy is an instance of EwHierarchyPolicy with lines set to true.
indexAtPoint: aPointAnswer the index of the item in the list which lies beneath the point given. If no item lies beneath the point or if the widget has not been drawn yet, then answer nil.
indexOfItem: itemAnswer the index of the item given in the list or 0 if the item is not present in the list.
innerMargin: anInteger
Specifies the margin width to be used between each item’s icon and its label.
isItemExpanded: anItemAnswer whether an item in the list is expanded to show its children.
itemAtPoint: aPointAnswer the item in the list which lies beneath the point given. If no item lies beneath the point, then answer nil.
itemChildrenAttributes: aDictionarySpecifies a collection of selectors (indexed by item class) sent to an item to return its children.
itemCountSpecifies the total number of items. This number might not match XmNitems, since this number is the size of the expanded hierarchy. Item count is automatically updated whenever an element is added to or deleted from the list.
itemHasChildrenAttributes: aDictionarySpecifies a collection of selectors (indexed by item class) sent to an item to return whether it has children.
itemHeight: anInteger
Specifies the height in pixels of items in the list. This includes the margin height on the top and bottom of the item as well as two pixels for emphasis.
itemIsVisible: itemCheck if a specified item is in the portion of the list that is currently visible. Answer true if it is even partially visible, false if it is not visible.
items: anOrderedCollection
An array of objects that are to be displayed as the list items.
itemsDo: aBlockEvaluate aBlock for each item in the receiver's list.
itemWidth: anIntegerSpecifies the width in pixels of items in the list. This includes the two pixels for emphasis.
parentOfItem: anItemAnswer the parent of the item given in the hierarchy or false if it is not in the expanded hierarchy. Answer nil if it is a root item.
refreshItems: aCollectionRefresh all of the items in the collection.
removedItems: itemsOrderedCollection at: indicesOrderedCollectionIdentifies what items were removed from the items attribute ordered collection and at what index. Only the items identified will be refreshed.
scrollableDown
Answers false if the list is all the way at the bottom item.
scrollableUp
Answers false if the list is all the way at the top item.
scrollUp
Scrolls the list box up one item.
selectedItems: anOrderedCollection
An OrderedCollection of Objects that represents the list items that are currently selected, either by the user or the application.
selectionIndices: anOrderedCollection
An OrderedCollection of Integers that represents the indices of the list items that are currently selected, either by the user or the application.
selectItem: anItemSelect an item in the list. This message selects and adds the specified item to the current selected list. The cursor moves to the newly selected item.
setBottomIndex: positionMake an item the last visible item in the list by position. This message makes the item at the specified position the last visible item in the list.
setBottomItem: itemMake the given item the last visible item in the list. The item can be any valid item in the list.
setTopIndex: positionMake an item the first visible item in the list by position. This message makes the item at the given position the first visible position in the list.
setTopItem: itemMake the given item the first visible item in the list. The item can be any valid item in the list.
showIcons: aBooleanSet whether icons should be displayed.
visibleItemCount
Specifies the number of items that can fit in the visible space of the list. Until the list is realized, this answers 0.
Item Expand
These events are triggered when an item is expanded.
Losing Focus
These events are triggered the part loses focus.
Resized
These events are triggered when the part is resized.
Scrolled
These events are triggered when the part is scrolled.
Copyright 2005, 2019 Instantiations, Inc. All rights reserved.