Class JMenuHpr<T extends javax.swing.JMenu>
- 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>
- 
- com.inductiveautomation.snap.swing.helpers.JMenuHpr<T>
 
 
 
 
 
- 
 public class JMenuHpr<T extends javax.swing.JMenu> extends JMenuItemHpr<T> A helper class for JMenu.
- 
- 
Constructor SummaryConstructors Constructor Description JMenuHpr()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.JMenucreateMenu(java.lang.String aName, java.lang.String theText)Creates a JMenu for name and text.javax.swing.JComponentgetChild(T aMenu, int anIndex)Returns the Ribs-relevant child component at the given index.intgetChildCount(T aMenu)Override to return JMenu item count if menu item is a menu.- 
Methods inherited from class com.inductiveautomation.snap.swing.helpers.JMenuItemHprcreateMenuItem, getKeyStroke, getKeyText, getPropertyNameMapped, initUI
 - 
Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpraddBinding, createEventAdapter, getAutosizing, getBinding, getBindingCount, getBindings, getChangeListener, 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 aMenu) Override to return JMenu item count if menu item is a menu.- Overrides:
- getChildCountin class- JMenuItemHpr<T extends javax.swing.JMenu>
 
 - 
getChildpublic javax.swing.JComponent getChild(T aMenu, int anIndex) Returns the Ribs-relevant child component at the given index.- Overrides:
- getChildin class- JComponentHpr<T extends javax.swing.JMenu>
 
 - 
createMenupublic static javax.swing.JMenu createMenu(java.lang.String aName, java.lang.String theText)Creates a JMenu for name and text.
 
- 
 
-