Class JMenuItemHpr<T extends JMenuItem>
java.lang.Object
com.inductiveautomation.snap.ui.UIHelper<T>
com.inductiveautomation.snap.swing.SwingHelper<T>
com.inductiveautomation.snap.swing.helpers.JComponentHpr<T>
com.inductiveautomation.snap.swing.helpers.JMenuItemHpr<T>
- Direct Known Subclasses:
JMenuHpr
A helper implementation for JMenuItem (with specific support for subclasses: JCheckBoxMenuItem,JRadioButtonMenuItem).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JMenuItemcreateMenuItem(String aName, String theText, String aKey) Creates a JMenuItem for name and text and key accelerator description.intgetChildCount(T anObj) Override to suppress children.static KeyStrokegetKeyStroke(String aString) This utility method tries to get a keystroke from a string and tries to be more forgiving than KeyStroke.getKeyStroke().static StringgetKeyText(KeyStroke aKeyStroke) This utility method returns key text for a key stroke and tries to make it more conforming.getPropertyNameMapped(T anObj, String aName) Returns a mapped property name.voidOverride to enable Action event.Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpr
addBinding, createEventAdapter, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, getChild, getConstraints, getEventAdapter, getName, getOwner, getParent, getPropertyNamesImpl, getSendActionOnFocusLost, getSendActionOnFocusLostDefault, isEnabled, removeBinding, setConstraints, setEnabled, setOwner, setSendActionOnFocusLostMethods inherited from class com.inductiveautomation.snap.swing.SwingHelper
getHelper, getSwingHelper, getSwingHelperMethods inherited from class com.inductiveautomation.snap.ui.UIHelper
enableEvents, getAction, getBinding, getChild, getItemDisplayKey, getItems, getKeyValue, getPropertyNames, getSelectedIndex, getSelectedIndexes, getSelectedIndexs, getSelectedItem, getText, getValue, initUIDeep, isEnabled, isPropertyName, isValueAdjusting, removeBinding, setAction, setEnabled, setItemDisplayKey, setItems, setItems, setKeyValue, setSelectedIndex, setSelectedIndexes, setSelectedItem, setText, setValue
-
Constructor Details
-
JMenuItemHpr
public JMenuItemHpr()
-
-
Method Details
-
getChildCount
Override to suppress children.- Overrides:
getChildCountin classJComponentHpr<T extends JMenuItem>
-
initUI
Override to enable Action event.- Overrides:
initUIin classJComponentHpr<T extends JMenuItem>
-
getPropertyNameMapped
Returns a mapped property name.- Overrides:
getPropertyNameMappedin classUIHelper<T extends JMenuItem>
-
createMenuItem
Creates a JMenuItem for name and text and key accelerator description. -
getKeyText
This utility method returns key text for a key stroke and tries to make it more conforming. -
getKeyStroke
This utility method tries to get a keystroke from a string and tries to be more forgiving than KeyStroke.getKeyStroke().
-