|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.awt.Actions
Supporting class for manipulation with menu and toolbar presenters.
| Inner Class Summary | |
static class |
Actions.CheckboxMenuItem
CheckboxMenuItem extends the java.awt.CheckboxMenuItem and adds a connection to Corona boolean state actions. |
static class |
Actions.MenuItem
Actions.MenuItem extends the java.awt.MenuItem and adds a connection to Corona system actions. |
static class |
Actions.SubMenu
SubMenu provides easy way of displaying submenu items based on SubMenuModel. |
static interface |
Actions.SubMenuModel
Interface for the creating Actions.SubMenu. |
static class |
Actions.ToolbarButton
Component shown in toolbar, representing an action. |
static class |
Actions.ToolbarToggleButton
The Component for BooleeanState action that is to be shown in a toolbar. |
| Constructor Summary | |
Actions()
|
|
| Method Summary | |
static void |
connect(AbstractButton button,
BooleanStateAction action)
Connects buttons to action. |
static void |
connect(AbstractButton button,
SystemAction action)
Connects buttons to action. |
static void |
connect(JCheckBoxMenuItem item,
BooleanStateAction action,
boolean popup)
Attaches checkbox menu item to boolean state action. |
static void |
connect(JMenuItem item,
SystemAction action,
boolean popup)
Attaches menu item to an action. |
static String |
cutAmpersand(String text)
Replaces first occurence of '&?' by '?' or '(&??' by '' where ? is wildcard for any character. |
static String |
findKey(SystemAction action)
Method that finds the keydescription assigned to this action. |
static void |
setMenuText(AbstractButton item,
String text,
boolean useMnemonic)
Sets the text for the menu item or other subclass of AbstractButton. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Actions()
| Method Detail |
public static String findKey(SystemAction action)
action - action to find key for
public static void connect(JMenuItem item,
SystemAction action,
boolean popup)
item - menu itemaction - actionpopup - create popup or menu item
public static void connect(JCheckBoxMenuItem item,
BooleanStateAction action,
boolean popup)
item - menu itemaction - actionpopup - create popup or menu item
public static void connect(AbstractButton button,
SystemAction action)
button - the buttonaction - the action
public static void connect(AbstractButton button,
BooleanStateAction action)
button - the buttonaction - the action
public static void setMenuText(AbstractButton item,
String text,
boolean useMnemonic)
item - AbstractButtontext - new labeluseMnemonic - if true and '&' char found in new text, next char is used
as Mnemonic.public static String cutAmpersand(String text)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||