org.jdesktop.swingx.plaf
Class ContextMenuSource
java.lang.Object
org.jdesktop.swingx.plaf.ContextMenuSource
- Direct Known Subclasses:
- ScrollBarContextMenuSource, TextContextMenuSource
public abstract class ContextMenuSource
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextMenuSource
public ContextMenuSource()
getKeys
public abstract String[] getKeys()
getName
public String getName(String actionKey)
updateActionEnabled
public abstract void updateActionEnabled(JComponent component,
ActionMap map)
createActionMap
public ActionMap createActionMap(JComponent component)
- returns an ActionMap for usage in default context menus.
- Parameters:
component
-
- Returns:
- an
ActionMap
for usage in default context menus
getNames
protected Map<String,String> getNames()
getValue
protected String getValue(String key,
String defaultValue)
initNames
protected abstract void initNames(Map<String,String> names)
getResourcePrefix
protected abstract String getResourcePrefix()
createDelegateAction
protected Action createDelegateAction(JComponent component,
String actionKey)