swingx
Version 2005-08-19

org.jdesktop.swingx.plaf
Class ContextMenuSource

java.lang.Object
  extended by org.jdesktop.swingx.plaf.ContextMenuSource
Direct Known Subclasses:
ScrollBarContextMenuSource, TextContextMenuSource

public abstract class ContextMenuSource
extends Object


Nested Class Summary
static class ContextMenuSource.DelegateAction
           
 
Constructor Summary
ContextMenuSource()
           
 
Method Summary
 ActionMap createActionMap(JComponent component)
          returns an ActionMap for usage in default context menus.
protected  Action createDelegateAction(JComponent component, String actionKey)
           
abstract  String[] getKeys()
           
 String getName(String actionKey)
           
protected  Map<String,String> getNames()
           
protected abstract  String getResourcePrefix()
           
protected  String getValue(String key, String defaultValue)
           
protected abstract  void initNames(Map<String,String> names)
           
abstract  void updateActionEnabled(JComponent component, ActionMap map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextMenuSource

public ContextMenuSource()
Method Detail

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)

swingx
Version 2005-08-19