Class PopupMenu

All Implemented Interfaces:
Control, Enableable, HasAttribute, HasClassName, HasComputedStyle, HasControlText, HasDestroy, HasPopupMenu, HasStyle, HasTooltip, HasVisibility

public class PopupMenu extends AbstractDwcControl implements HasPopupMenu
  • Constructor Details

    • PopupMenu

      public PopupMenu()
  • Method Details

    • create

      protected void create(AbstractDwcjPanel p)
      Description copied from class: AbstractControl
      Create the object on a panel p. The preferred way of creating an object is using the Panel::add(Control) method, instead of this
      Overrides:
      create in class AbstractControl
      Parameters:
      p - the panel to add this control on
    • addCheckableMenuItem

      public CheckableMenuItem addCheckableMenuItem(int id, String title)
    • addCheckableMenuItem

      public CheckableMenuItem addCheckableMenuItem(int id, String title, boolean checked)
    • addMenuItem

      public MenuItem addMenuItem(int id, String title)
    • addMenuItem

      public MenuItem addMenuItem(int id, String title, int action)
    • addMenuItem

      public MenuItem addMenuItem(int id, String title, boolean checkable, boolean checked)
    • addMenuItem

      public MenuItem addMenuItem(int id, String title, boolean checkable, boolean checked, int action)
    • addSeparator

      public void addSeparator()
    • getCheckableMenuItem

      public CheckableMenuItem getCheckableMenuItem(int id)
    • getCheckableMenuItemAt

      public CheckableMenuItem getCheckableMenuItemAt(int index)
    • getChildCount

      public int getChildCount()
    • getClientProperty

      public String getClientProperty(Object key)
    • getControl

      public com.basis.bbj.proxies.sysgui.BBjControl getControl(int id)
    • getMenuID

      public int getMenuID()
    • getMaximumRowCount

      public int getMaximumRowCount()
    • getMenuItem

      public MenuItem getMenuItem(int id)
    • getMenuItemAt

      public MenuItem getMenuItemAt(int index)
    • getMenuItemIDAt

      public int getMenuItemIDAt(int index)
    • getName

      public String getName()
    • getUserData

      public Object getUserData()
    • hide

      public void hide()
    • insertCheckableMenuItem

      public CheckableMenuItem insertCheckableMenuItem(int index, int id, String title)
    • insertCheckableMenuItem

      public CheckableMenuItem insertCheckableMenuItem(int index, int id, String title, boolean checked)
    • insertMenuItem

      public MenuItem insertMenuItem(int index, int id, String title)
    • insertMenuItem

      public MenuItem insertMenuItem(int index, int id, String title, int action)
    • insertMenuItem

      public MenuItem insertMenuItem(int index, int id, String title, boolean checkable, boolean checked)
    • insertMenuItem

      public MenuItem insertMenuItem(int index, int id, String title, boolean checkable, boolean checked, int action)
    • insertSeparator

      public void insertSeparator(int index)
    • isVisible

      public Boolean isVisible()
      Specified by:
      isVisible in interface HasVisibility
      Overrides:
      isVisible in class AbstractDwcControl
      Returns:
      if control is visible (=true) or invisible (=false)
    • putClientProperty

      public void putClientProperty(Object key, Object value)
    • removeMenuItem

      public void removeMenuItem(MenuItem item)
    • removeMenuItem

      public void removeMenuItem(int id)
    • removeMenuItemAt

      public void removeMenuItemAt(int index)
    • removeSeparator

      public void removeSeparator(int index)
    • setMaximumRowCount

      public PopupMenu setMaximumRowCount(int max)
    • setName

      public PopupMenu setName(String name)
    • setUserData

      public PopupMenu setUserData(Object object)
    • 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

      public HasPopupMenu addPopupMenu(int id, String title)
      Specified by:
      addPopupMenu in interface HasPopupMenu
    • removePopupMenu

      public HasPopupMenu removePopupMenu(int id, String title)
      Specified by:
      removePopupMenu in interface HasPopupMenu
    • setText

      public PopupMenu setText(String text)
      Description copied from interface: HasControlText
      set 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:
      setText in interface HasControlText
      Overrides:
      setText in class AbstractDwcControl
      Returns:
      the control itself
    • setVisible

      public PopupMenu setVisible(Boolean visible)
      Description copied from interface: HasVisibility
      Set whether the control is visible or invisible
      Specified by:
      setVisible in interface HasVisibility
      Overrides:
      setVisible in class AbstractDwcControl
      Returns:
      the control itself
    • setEnabled

      public PopupMenu setEnabled(Boolean enabled)
      Description copied from interface: Enableable
      Set whether the control is to be enabled
      Specified by:
      setEnabled in interface Enableable
      Overrides:
      setEnabled in class AbstractDwcControl
      Returns:
      the control itself
    • setTooltipText

      public PopupMenu setTooltipText(String text)
      Description copied from interface: HasTooltip
      Set the tooltip text of the control
      Specified by:
      setTooltipText in interface HasTooltip
      Overrides:
      setTooltipText in class AbstractDwcControl
      Returns:
      the control itself
    • setAttribute

      public PopupMenu setAttribute(String attribute, String value)
      Description copied from class: AbstractDwcControl
      set the value for an attribute in the control
      Specified by:
      setAttribute in interface HasAttribute
      Overrides:
      setAttribute in class AbstractDwcControl
      Parameters:
      attribute - the name of the attribute
      value - the value to be set
      Returns:
      the control itself
    • setId

      public PopupMenu setId(String elementId)
      Description copied from interface: Control
      Assigns the ID of a control
      Specified by:
      setId in interface Control
      Overrides:
      setId in class AbstractControl
      Parameters:
      elementId - Desired ID designation
      Returns:
      The control itself
    • setStyle

      public PopupMenu setStyle(String property, String value)
      Description copied from interface: HasStyle
      Assigns specified value to the specified CSS property
      Specified by:
      setStyle in interface HasStyle
      Overrides:
      setStyle in class AbstractDwcControl
      Parameters:
      property - The CSS property to be changed
      value - The value of the selected CSS property
      Returns:
      The control itself
    • addClassName

      public PopupMenu addClassName(String selector)
      Description copied from interface: HasClassName
      Adds a CSS class to the list of CSS classes for the control.
      Specified by:
      addClassName in interface HasClassName
      Overrides:
      addClassName in class AbstractDwcControl
      Returns:
      The control itself
    • removeClassName

      public PopupMenu removeClassName(String selector)
      Description copied from interface: HasClassName
      Removes a CSS class from the list of CSS classes for the control.
      Specified by:
      removeClassName in interface HasClassName
      Overrides:
      removeClassName in class AbstractDwcControl
      Returns:
      The control itself