public abstract class ActionPresenterProvider
extends java.lang.Object
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.
| Modifier | Constructor | Description |
|---|---|---|
protected |
ActionPresenterProvider() |
Subclass constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.awt.Component[] |
convertComponents(java.awt.Component comp) |
Used for implementation of
DynamicMenuContent. |
abstract javax.swing.JPopupMenu |
createEmptyPopup() |
Creates a default empty implementation of popup menu.
|
abstract javax.swing.JMenuItem |
createMenuPresenter(javax.swing.Action action) |
Creates a menu item that can present this action in a
JMenu. |
abstract javax.swing.JMenuItem |
createPopupPresenter(javax.swing.Action action) |
Get a menu item that can present this action in a
JPopupMenu. |
abstract java.awt.Component |
createToolbarPresenter(javax.swing.Action action) |
Get a component that can present this action in a
JToolBar. |
static ActionPresenterProvider |
getDefault() |
Gets the default implementation from lookup.
|
protected ActionPresenterProvider()
public static ActionPresenterProvider getDefault()
public abstract javax.swing.JPopupMenu createEmptyPopup()
public abstract javax.swing.JMenuItem createMenuPresenter(javax.swing.Action action)
JMenu.action - the action to representpublic abstract javax.swing.JMenuItem createPopupPresenter(javax.swing.Action action)
JPopupMenu.action - the action to representpublic abstract java.awt.Component createToolbarPresenter(javax.swing.Action action)
JToolBar.action - the action to representpublic abstract java.awt.Component[] convertComponents(java.awt.Component comp)
DynamicMenuContent.comp - a componentBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.