Class JMenuHpr<T extends 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>
A helper class for JMenu.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JMenu
createMenu
(String aName, String theText) Creates a JMenu for name and text.Returns the Ribs-relevant child component at the given index.int
getChildCount
(T aMenu) Override to return JMenu item count if menu item is a menu.Methods inherited from class com.inductiveautomation.snap.swing.helpers.JMenuItemHpr
createMenuItem, getKeyStroke, getKeyText, getPropertyNameMapped, initUI
Methods inherited from class com.inductiveautomation.snap.swing.helpers.JComponentHpr
addBinding, 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.SwingHelper
getHelper, getSwingHelper, getSwingHelper
Methods 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
-
JMenuHpr
public JMenuHpr()
-
-
Method Details
-
getChildCount
Override to return JMenu item count if menu item is a menu.- Overrides:
getChildCount
in classJMenuItemHpr<T extends JMenu>
-
getChild
Returns the Ribs-relevant child component at the given index.- Overrides:
getChild
in classJComponentHpr<T extends JMenu>
-
createMenu
Creates a JMenu for name and text.
-