Package org.dwcj.controls.popupmenu
Class PopupMenu
java.lang.Object
org.dwcj.controls.AbstractControl
org.dwcj.controls.AbstractDwcControl
org.dwcj.controls.popupmenu.PopupMenu
- All Implemented Interfaces:
Control,Enableable,HasAttribute,HasClassName,HasComputedStyle,HasControlText,HasDestroy,HasPopupMenu,HasStyle,HasTooltip,HasVisibility
-
Field Summary
Fields inherited from class org.dwcj.controls.AbstractDwcControl
BASISNUMBER_1, BASISNUMBER_25, BASISNUMBER_250, focusable, horizontalScrollBarPosition, mouseWheelCondition, readOnly, STR_EXPANSE, STR_THEME, tabTraversable, textAlignment, textHighlight, verticalScrollBarPositionFields inherited from class org.dwcj.controls.AbstractControl
ctrl, destroyed, elementId, userData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCheckableMenuItem(int id, String title) addCheckableMenuItem(int id, String title, boolean checked) addClassName(String selector) Adds a CSS class to the list of CSS classes for the control.addMenuItem(int id, String title) addMenuItem(int id, String title, boolean checkable, boolean checked) addMenuItem(int id, String title, boolean checkable, boolean checked, int action) addMenuItem(int id, String title, int action) addPopupMenu(int id, String title) voidprotected voidCreate the object on a panel p.getCheckableMenuItem(int id) getCheckableMenuItemAt(int index) intgetClientProperty(Object key) com.basis.bbj.proxies.sysgui.BBjControlgetControl(int id) intintgetMenuItem(int id) getMenuItemAt(int index) intgetMenuItemIDAt(int index) getName()voidhide()insertCheckableMenuItem(int index, int id, String title) insertCheckableMenuItem(int index, int id, String title, boolean checked) insertMenuItem(int index, int id, String title) insertMenuItem(int index, int id, String title, boolean checkable, boolean checked) insertMenuItem(int index, int id, String title, boolean checkable, boolean checked, int action) insertMenuItem(int index, int id, String title, int action) voidinsertSeparator(int index) voidputClientProperty(Object key, Object value) removeClassName(String selector) Removes a CSS class from the list of CSS classes for the control.voidremoveMenuItem(int id) voidremoveMenuItem(MenuItem item) voidremoveMenuItemAt(int index) removePopupMenu(int id, String title) voidremoveSeparator(int index) setAttribute(String attribute, String value) set the value for an attribute in the controlsetEnabled(Boolean enabled) Set whether the control is to be enabledAssigns the ID of a controlsetMaximumRowCount(int max) Assigns specified value to the specified CSS propertyset the text of the control Each control implementing this interface has a text property, which might be visible in different ways (caption, title, contents of edit) or sometimes not visible at allsetTooltipText(String text) Set the tooltip text of the controlsetUserData(Object object) setVisible(Boolean visible) Set whether the control is visible or invisiblevoidshow(int context, int id, int x, int y) voidshow(com.basis.bbj.proxies.sysgui.BBjControl control, int x, int y) Methods inherited from class org.dwcj.controls.AbstractDwcControl
catchUp, destroy, getAttribute, getComputedStyle, getText, getTooltipText, isEnabled, setControlExpanse, setControlThemeMethods inherited from class org.dwcj.controls.AbstractControl
getCaughtUp, getId, getUserData, isDestroyed, setUserData
-
Constructor Details
-
PopupMenu
public PopupMenu()
-
-
Method Details
-
create
Description copied from class:AbstractControlCreate the object on a panel p. The preferred way of creating an object is using the Panel::add(Control) method, instead of this- Overrides:
createin classAbstractControl- Parameters:
p- the panel to add this control on
-
addCheckableMenuItem
-
addCheckableMenuItem
-
addMenuItem
-
addMenuItem
-
addMenuItem
-
addMenuItem
-
addSeparator
public void addSeparator() -
getCheckableMenuItem
-
getCheckableMenuItemAt
-
getChildCount
public int getChildCount() -
getClientProperty
-
getControl
public com.basis.bbj.proxies.sysgui.BBjControl getControl(int id) -
getMenuID
public int getMenuID() -
getMaximumRowCount
public int getMaximumRowCount() -
getMenuItem
-
getMenuItemAt
-
getMenuItemIDAt
public int getMenuItemIDAt(int index) -
getName
-
getUserData
-
hide
public void hide() -
insertCheckableMenuItem
-
insertCheckableMenuItem
-
insertMenuItem
-
insertMenuItem
-
insertMenuItem
-
insertMenuItem
-
insertSeparator
public void insertSeparator(int index) -
isVisible
- Specified by:
isVisiblein interfaceHasVisibility- Overrides:
isVisiblein classAbstractDwcControl- Returns:
- if control is visible (=true) or invisible (=false)
-
putClientProperty
-
removeMenuItem
public void removeMenuItem(int id) -
removeMenuItemAt
public void removeMenuItemAt(int index) -
removeSeparator
public void removeSeparator(int index) -
setMaximumRowCount
-
setName
-
setUserData
-
show
public void show(com.basis.bbj.proxies.sysgui.BBjControl control, int x, int y) -
show
public void show(int context, int id, int x, int y) -
addPopupMenu
- Specified by:
addPopupMenuin interfaceHasPopupMenu
-
removePopupMenu
- Specified by:
removePopupMenuin interfaceHasPopupMenu
-
setText
Description copied from interface:HasControlTextset the text of the control Each control implementing this interface has a text property, which might be visible in different ways (caption, title, contents of edit) or sometimes not visible at all- Specified by:
setTextin interfaceHasControlText- Overrides:
setTextin classAbstractDwcControl- Returns:
- the control itself
-
setVisible
Description copied from interface:HasVisibilitySet whether the control is visible or invisible- Specified by:
setVisiblein interfaceHasVisibility- Overrides:
setVisiblein classAbstractDwcControl- Returns:
- the control itself
-
setEnabled
Description copied from interface:EnableableSet whether the control is to be enabled- Specified by:
setEnabledin interfaceEnableable- Overrides:
setEnabledin classAbstractDwcControl- Returns:
- the control itself
-
setTooltipText
Description copied from interface:HasTooltipSet the tooltip text of the control- Specified by:
setTooltipTextin interfaceHasTooltip- Overrides:
setTooltipTextin classAbstractDwcControl- Returns:
- the control itself
-
setAttribute
Description copied from class:AbstractDwcControlset the value for an attribute in the control- Specified by:
setAttributein interfaceHasAttribute- Overrides:
setAttributein classAbstractDwcControl- Parameters:
attribute- the name of the attributevalue- the value to be set- Returns:
- the control itself
-
setId
Description copied from interface:ControlAssigns the ID of a control- Specified by:
setIdin interfaceControl- Overrides:
setIdin classAbstractControl- Parameters:
elementId- Desired ID designation- Returns:
- The control itself
-
setStyle
Description copied from interface:HasStyleAssigns specified value to the specified CSS property- Specified by:
setStylein interfaceHasStyle- Overrides:
setStylein classAbstractDwcControl- Parameters:
property- The CSS property to be changedvalue- The value of the selected CSS property- Returns:
- The control itself
-
addClassName
Description copied from interface:HasClassNameAdds a CSS class to the list of CSS classes for the control.- Specified by:
addClassNamein interfaceHasClassName- Overrides:
addClassNamein classAbstractDwcControl- Returns:
- The control itself
-
removeClassName
Description copied from interface:HasClassNameRemoves a CSS class from the list of CSS classes for the control.- Specified by:
removeClassNamein interfaceHasClassName- Overrides:
removeClassNamein classAbstractDwcControl- Returns:
- The control itself
-