|
org.openide.util 8.15.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.util.actions.ActionPresenterProvider
public abstract class ActionPresenterProvider
Provider of action presentations. Based on type of the action should be able to derive its menu, popup menu and toolbar presenter.
In order to provide greater flexibility this is made as a pluggable component to allow other parts of the system to provide more enhanced visualizations.
Constructor Summary | |
---|---|
protected |
ActionPresenterProvider()
Subclass constructor. |
Method Summary | |
---|---|
abstract Component[] |
convertComponents(Component comp)
Used for implementation of DynamicMenuContent . |
abstract JPopupMenu |
createEmptyPopup()
Creates a default empty implementation of popup menu. |
abstract JMenuItem |
createMenuPresenter(Action action)
Creates a menu item that can present this action in a JMenu . |
abstract JMenuItem |
createPopupPresenter(Action action)
Get a menu item that can present this action in a JPopupMenu . |
abstract Component |
createToolbarPresenter(Action action)
Get a component that can present this action in a JToolBar . |
static ActionPresenterProvider |
getDefault()
Gets the default implementation from lookup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ActionPresenterProvider()
Method Detail |
---|
public static ActionPresenterProvider getDefault()
public abstract JPopupMenu createEmptyPopup()
public abstract JMenuItem createMenuPresenter(Action action)
JMenu
.
action
- the action to represent
public abstract JMenuItem createPopupPresenter(Action action)
JPopupMenu
.
action
- the action to represent
public abstract Component createToolbarPresenter(Action action)
JToolBar
.
action
- the action to represent
public abstract Component[] convertComponents(Component comp)
DynamicMenuContent
.
comp
- a component
|
org.openide.util 8.15.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |