Package javascript.swing
Class JSDropDownMenu
- java.lang.Object
-
- javascript.swing.JSComponent
-
- javascript.swing.JSDropDown
-
- javascript.swing.JSDropDownMenu
-
public class JSDropDownMenu extends JSDropDown
A dropdown menu- Author:
- gianpiero.diblasi
-
-
Field Summary
-
Fields inherited from class javascript.swing.JSDropDown
dropDownContentSelector
-
-
Constructor Summary
Constructors Constructor Description JSDropDownMenu()
Creates the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSButton
addMenu(java.lang.String text, ActionListener listener)
Adds a button menuvoid
setLabel(java.lang.String text)
Sets the text label-
Methods inherited from class javascript.swing.JSDropDown
computePopupPosition
-
Methods inherited from class javascript.swing.JSComponent
addChildEventListenerByQuery, addEventListener, appendChild, appendChildInTree, appendInBody, appendNodeChild, appendNodeChildInTree, clearChildContentByQuery, clearContent, cssAddClass, cssClassList, cssRemoveClass, cssToggleClass, getAttribute, getChildAttributeByIndex, getChildAttributeByQuery, getChildCount, getChildPropertyByQuery, getChilStyleByIndex, getChilStyleByQuery, getID, getProperty, getStyle, insertBefore, insertBeforeInTree, insertNodeBefore, insertNodeBeforeInTree, invoke, invokeInTree, prependChild, prependChildInTree, prependNodeChild, prependNodeChildInTree, removeAttribute, removeChildAttributeByQuery, removeFromBody, setAttribute, setBackground, setChildAttributeByIndex, setChildAttributeByQuery, setChildPropertyByQuery, setContent, setEnabled, setID, setProperty
-
-
-
-
Method Detail
-
setLabel
public void setLabel(java.lang.String text)
Sets the text label- Parameters:
text
- The text label
-
addMenu
public JSButton addMenu(java.lang.String text, ActionListener listener)
Adds a button menu- Parameters:
text
- The text buttonlistener
- The listener- Returns:
- The added button
-
-