Package docking.actions.dialog
Class ActionsModel
java.lang.Object
javax.swing.AbstractListModel<SearchListEntry<DockingActionIf>>
docking.widgets.searchlist.DefaultSearchListModel<DockingActionIf>
docking.actions.dialog.ActionsModel
- All Implemented Interfaces:
SearchListModel<DockingActionIf>,Serializable,ListModel<SearchListEntry<DockingActionIf>>
Model for the SearchList used by the
ActionChooserDialog. This model is constructed
with two sets of actions; local and global. The local actions are actions that are specific to
the currently focused ComponentProvider or DialogComponentProvider. Global
actions are actions that are added at the tool level and are not specific to a ComponentProvider
or DialogComponentProvider.
The model supports the concept of a ActionDisplayLevel. The display level determines
which combination of local and global actions to display and takes into account if they are
valid for the current context, are enabled for the current context and, for popups, the value of
the "addToPopup" value. Each higher display level is less restrictive and adds more actions in
the displayed list. See the ActionDisplayLevel for a description of which actions are
displayed for each level
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Clean up any resources held by the modelReturns the currentActionDisplayLevelof the dialog.booleanvoidSets the display level for the actions dialog.Methods inherited from class docking.widgets.searchlist.DefaultSearchListModel
add, clearData, fireDataChanged, getAllItems, getCategories, getDisplayedItems, getElementAt, getSize, setFilterMethods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Method Details
-
setDisplayLevel
Sets the display level for the actions dialog. Each higher level includes more actions in the displayed list of actions.- Parameters:
level- theActionDisplayLevel
-
getActionDisplayLevel
Returns the currentActionDisplayLevelof the dialog.- Returns:
- the current display level of the dialog
-
dispose
public void dispose()Description copied from interface:SearchListModelClean up any resources held by the model- Specified by:
disposein interfaceSearchListModel<DockingActionIf>- Overrides:
disposein classDefaultSearchListModel<DockingActionIf>
-
isDisposed
public boolean isDisposed()
-