| java.lang.Object org.netbeans.spi.palette.PaletteActions
All known Subclasses: org.netbeans.spi.palette.DummyActions,
PaletteActions | abstract public class PaletteActions (Code) | | An interface implemented by palette clients to provide custom actions
for popup menus and actions for import of new items.
author: S. Aubrecht. |
getCustomCategoryActions | abstract public Action[] getCustomCategoryActions(Lookup category)(Code) | | Parameters: category - Lookup representing palette's category. Custom actions to be added to the top of default popup menu for the given category. |
getCustomItemActions | abstract public Action[] getCustomItemActions(Lookup item)(Code) | | Parameters: item - Lookup representing palette's item. Custom actions to be added to the top of the default popup menu for the given palette item. |
getCustomPaletteActions | abstract public Action[] getCustomPaletteActions()(Code) | | Custom actions to be added to the top of palette's default popup menu. |
getImportActions | abstract public Action[] getImportActions()(Code) | | An array of action that will be used to construct buttons for importof new palette item in palette manager window. |
getPreferredAction | abstract public Action getPreferredAction(Lookup item)(Code) | | Parameters: item - Lookup representing palette's item. An action to be invoked when user double-clicks the item in thepalette (e.g. insert item at editor's default location).Return null to disable preferred action for this item. |
getRefreshAction | public Action getRefreshAction()(Code) | | An action that will be invoked as part of the palette refresh logic,
for example when user chooses "Refresh" in palette's popup menu. Can be null.
The action properties (label, icon) are not displayed to the user, the Palette module
will provide its own.
Custom refresh action or null. since: 1.9 |
getResetAction | public Action getResetAction()(Code) | | An action that resets the palette content to its default state. The action can be
invoked by the user from palette's popup menu for from the Palette Manager window.
The action properties (label, icon) are not displayed to the user, the Palette module
provides its own.
Custom reset action or null to use the default one that removes all user's modifications to the XML layer files. since: 1.11 |
|
|