Class JMenuItemHpr<T extends javax.swing.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
 
 public class JMenuItemHpr<T extends javax.swing.JMenuItem> extends JComponentHpr<T> A helper implementation for JMenuItem (with specific support for subclasses: JCheckBoxMenuItem,JRadioButtonMenuItem).
- 
- 
Constructor SummaryConstructors Constructor Description JMenuItemHpr()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.JMenuItemcreateMenuItem(java.lang.String aName, java.lang.String theText, java.lang.String aKey)Creates a JMenuItem for name and text and key accelerator description.intgetChildCount(T anObj)Override to suppress children.static javax.swing.KeyStrokegetKeyStroke(java.lang.String aString)This utility method tries to get a keystroke from a string and tries to be more forgiving than KeyStroke.getKeyStroke().static java.lang.StringgetKeyText(javax.swing.KeyStroke aKeyStroke)This utility method returns key text for a key stroke and tries to make it more conforming.java.lang.StringgetPropertyNameMapped(T anObj, java.lang.String aName)Returns a mapped property name.voidinitUI(T aMenuItem, UIOwner anOwner)Override to enable Action event.- 
Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpraddBinding, createEventAdapter, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, getChild, getConstraints, getEventAdapter, getName, getOwner, getParent, getPropertyNamesImpl, getSendActionOnFocusLost, getSendActionOnFocusLostDefault, isEnabled, removeBinding, setConstraints, setEnabled, setOwner, setSendActionOnFocusLost
 - 
Methods inherited from class com.inductiveautomation.snap.swing.SwingHelpergetHelper, getSwingHelper, getSwingHelper
 - 
Methods inherited from class com.inductiveautomation.snap.ui.UIHelperenableEvents, 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
 
- 
 
- 
- 
- 
Method Detail- 
getChildCountpublic int getChildCount(T anObj) Override to suppress children.- Overrides:
- getChildCountin class- JComponentHpr<T extends javax.swing.JMenuItem>
 
 - 
initUIpublic void initUI(T aMenuItem, UIOwner anOwner) Override to enable Action event.- Overrides:
- initUIin class- JComponentHpr<T extends javax.swing.JMenuItem>
 
 - 
getPropertyNameMappedpublic java.lang.String getPropertyNameMapped(T anObj, java.lang.String aName) Returns a mapped property name.- Overrides:
- getPropertyNameMappedin class- UIHelper<T extends javax.swing.JMenuItem>
 
 - 
createMenuItempublic static javax.swing.JMenuItem createMenuItem(java.lang.String aName, java.lang.String theText, java.lang.String aKey)Creates a JMenuItem for name and text and key accelerator description.
 - 
getKeyTextpublic static java.lang.String getKeyText(javax.swing.KeyStroke aKeyStroke) This utility method returns key text for a key stroke and tries to make it more conforming.
 - 
getKeyStrokepublic static javax.swing.KeyStroke getKeyStroke(java.lang.String aString) This utility method tries to get a keystroke from a string and tries to be more forgiving than KeyStroke.getKeyStroke().
 
- 
 
-