public abstract class PaletteActions extends Object
An interface implemented by palette clients to provide custom actions for popup menus and actions for import of new items.
Constructor and Description |
---|
PaletteActions() |
Modifier and Type | Method and Description |
---|---|
abstract Action[] |
getCustomCategoryActions(Lookup category) |
abstract Action[] |
getCustomItemActions(Lookup item) |
abstract Action[] |
getCustomPaletteActions() |
abstract Action[] |
getImportActions() |
abstract Action |
getPreferredAction(Lookup item) |
Action |
getRefreshAction()
An action that will be invoked as part of the palette refresh logic,
for example when user chooses "Refresh" in palette's popup menu.
|
Action |
getResetAction()
An action that resets the palette content to its default state.
|
public abstract Action[] getImportActions()
public abstract Action[] getCustomPaletteActions()
public abstract Action[] getCustomCategoryActions(Lookup category)
category
- Lookup representing palette's category.public abstract Action[] getCustomItemActions(Lookup item)
item
- Lookup representing palette's item.public abstract Action getPreferredAction(Lookup item)
item
- Lookup representing palette's item.public Action getRefreshAction()
public Action getResetAction()