echopointng
Class MenuButton

java.lang.Object
  extended by nextapp.echo2.app.Component
      extended by nextapp.echo2.app.button.AbstractButton
          extended by nextapp.echo2.app.Button
              extended by echopointng.ButtonEx
                  extended by echopointng.MenuItem
                      extended by echopointng.Menu
                          extended by echopointng.MenuButton
All Implemented Interfaces:
AccessKeyable, Attributeable, Borderable, Delegateable, Heightable, Insetable, MouseCursorable, Sizeable, ToolTipable, Widthable, java.io.Serializable, RenderIdSupport

public class MenuButton
extends Menu

MenuButton is a specialised form of Menu that looks like a stand alone button but has the drop down Menu Box that can contain other MenuItems and other components.

See Also:
Serialized Form

Field Summary
static Style DEFAULT_STYLE
          This DEFAULT_STYLE is applied to the MenuButton to give it a series of borders and background colors
static ImageReference DEFAULT_SUBMENU_IMAGE
          The default MenuButton sub menu image
 
Fields inherited from class echopointng.Menu
OPEN_ON_CLICK, OPEN_ON_MOUSEOVER, OPEN_ON_SUBMENU_CLICK, PROPERTY_BACKGROUND_IMAGE, PROPERTY_DRAW_OUTER_BORDERS, PROPERTY_HORIZONTAL, PROPERTY_KEEP_ALIVE, PROPERTY_LEFT_OFFSET, PROPERTY_MENU_ALWAYS_ON_TOP, PROPERTY_MENU_BACKGROUND, PROPERTY_MENU_BACKGROUND_IMAGE, PROPERTY_MENU_BORDER, PROPERTY_MENU_FOREGROUND, PROPERTY_MENU_INSETS, PROPERTY_MENU_OUTSETS, PROPERTY_OPEN_OPTION, PROPERTY_PROPERTY_CHILDREN, PROPERTY_STYLE_CHILDREN, PROPERTY_SUBMENU_IMAGE, PROPERTY_SUBMENU_IMAGE_ALIGNMENT, PROPERTY_SUBMENU_IMAGE_BORDERED, PROPERTY_SUBMENU_ROLLOVER_IMAGE, PROPERTY_TOP_OFFSET
 
Fields inherited from class nextapp.echo2.app.button.AbstractButton
ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_CLICK, PROPERTY_ALIGNMENT, PROPERTY_BORDER, PROPERTY_DISABLED_BACKGROUND, PROPERTY_DISABLED_BACKGROUND_IMAGE, PROPERTY_DISABLED_BORDER, PROPERTY_DISABLED_FONT, PROPERTY_DISABLED_FOREGROUND, PROPERTY_DISABLED_ICON, PROPERTY_HEIGHT, PROPERTY_ICON, PROPERTY_ICON_TEXT_MARGIN, PROPERTY_INSETS, PROPERTY_LINE_WRAP, PROPERTY_MODEL, PROPERTY_PRESSED_BACKGROUND, PROPERTY_PRESSED_BACKGROUND_IMAGE, PROPERTY_PRESSED_BORDER, PROPERTY_PRESSED_ENABLED, PROPERTY_PRESSED_FONT, PROPERTY_PRESSED_FOREGROUND, PROPERTY_PRESSED_ICON, PROPERTY_ROLLOVER_BACKGROUND, PROPERTY_ROLLOVER_BACKGROUND_IMAGE, PROPERTY_ROLLOVER_BORDER, PROPERTY_ROLLOVER_ENABLED, PROPERTY_ROLLOVER_FONT, PROPERTY_ROLLOVER_FOREGROUND, PROPERTY_ROLLOVER_ICON, PROPERTY_TEXT, PROPERTY_TEXT_ALIGNMENT, PROPERTY_TEXT_POSITION, PROPERTY_TOOL_TIP_TEXT, PROPERTY_WIDTH
 
Fields inherited from class nextapp.echo2.app.Component
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Fields inherited from interface echopointng.able.Borderable
PROPERTY_BORDER
 
Fields inherited from interface echopointng.able.MouseCursorable
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI
 
Fields inherited from interface echopointng.able.AccessKeyable
PROPERTY_ACCESS_KEY
 
Fields inherited from interface echopointng.able.Insetable
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS
 
Fields inherited from interface echopointng.able.Widthable
PROPERTY_WIDTH
 
Fields inherited from interface echopointng.able.Heightable
PROPERTY_HEIGHT
 
Fields inherited from interface echopointng.able.ToolTipable
PROPERTY_TOOL_TIP_TEXT
 
Constructor Summary
MenuButton()
          Creates a MenuButton with no text or icon.
MenuButton(ImageReference icon)
          Creates a MenuButton with an icon.
MenuButton(java.lang.String text)
          Creates a MenuButton with text.
MenuButton(java.lang.String text, ImageReference icon)
          Creates a MenuButton with text and an icon.
 
Method Summary
 
Methods inherited from class echopointng.Menu
add, add, add, getLeftOffset, getMenuAlwaysOnTop, getMenuBackground, getMenuBackgroundImage, getMenuBorder, getMenuForeground, getMenuInsets, getMenuItems, getMenuOutsets, getOpenOption, getSubmenuImage, getSubmenuImageAlignment, getSubmenuRolloverImage, getTopOffset, isClickToOpen, isDrawOuterBorders, isHorizontal, isKeepAlive, isStyleChildren, isSubmenuImageBordered, isValidChild, setClickToOpen, setDrawOuterBorders, setHorizontal, setKeepAlive, setLeftOffset, setMenuAlwaysOnTop, setMenuBackground, setMenuBackgroundImage, setMenuBorder, setMenuForeground, setMenuInsets, setMenuOutsets, setOpenOption, setStyleChildren, setSubmenuImage, setSubmenuImageAlignment, setSubmenuImageBordered, setSubmenuRolloverImage, setTopOffset, styleAllMenuItems, styleAllMenuItems, styleAllMenuItemsByName, styleMenuItem, toString
 
Methods inherited from class echopointng.MenuItem
getRootMenu
 
Methods inherited from class echopointng.ButtonEx
getAccessKey, getAttribute, getAttributeNames, getInsets, getMouseCursor, getMouseCursorURI, getOutsets, setAccessKey, setAttribute, setInsets, setMouseCursor, setMouseCursorURI, setOutsets
 
Methods inherited from class nextapp.echo2.app.button.AbstractButton
addActionListener, doAction, fireActionPerformed, getActionCommand, getAlignment, getBackgroundImage, getBorder, getDisabledBackground, getDisabledBackgroundImage, getDisabledBorder, getDisabledFont, getDisabledForeground, getDisabledIcon, getHeight, getIcon, getIconTextMargin, getModel, getPressedBackground, getPressedBackgroundImage, getPressedBorder, getPressedFont, getPressedForeground, getPressedIcon, getRolloverBackground, getRolloverBackgroundImage, getRolloverBorder, getRolloverFont, getRolloverForeground, getRolloverIcon, getText, getTextAlignment, getTextPosition, getToolTipText, getWidth, hasActionListeners, isLineWrap, isPressedEnabled, isRolloverEnabled, processInput, removeActionListener, setActionCommand, setAlignment, setBackgroundImage, setBorder, setDisabledBackground, setDisabledBackgroundImage, setDisabledBorder, setDisabledFont, setDisabledForeground, setDisabledIcon, setHeight, setIcon, setIconTextMargin, setLineWrap, setModel, setPressedBackground, setPressedBackgroundImage, setPressedBorder, setPressedEnabled, setPressedFont, setPressedForeground, setPressedIcon, setRolloverBackground, setRolloverBackgroundImage, setRolloverBorder, setRolloverEnabled, setRolloverFont, setRolloverForeground, setRolloverIcon, setText, setTextAlignment, setTextPosition, setToolTipText, setWidth
 
Methods inherited from class nextapp.echo2.app.Component
add, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface echopointng.able.Borderable
getBorder, setBorder
 
Methods inherited from interface echopointng.able.Delegateable
getRenderProperty, getRenderProperty
 
Methods inherited from interface echopointng.able.Delegateable
getRenderProperty, getRenderProperty
 
Methods inherited from interface echopointng.able.Delegateable
getRenderProperty, getRenderProperty
 
Methods inherited from interface echopointng.able.Delegateable
getRenderProperty, getRenderProperty
 
Methods inherited from interface echopointng.able.Widthable
getWidth, setWidth
 
Methods inherited from interface echopointng.able.Delegateable
getRenderProperty, getRenderProperty
 
Methods inherited from interface echopointng.able.Heightable
getHeight, setHeight
 
Methods inherited from interface echopointng.able.Delegateable
getRenderProperty, getRenderProperty
 
Methods inherited from interface echopointng.able.ToolTipable
getToolTipText, setToolTipText
 

Field Detail

DEFAULT_SUBMENU_IMAGE

public static final ImageReference DEFAULT_SUBMENU_IMAGE
The default MenuButton sub menu image


DEFAULT_STYLE

public static Style DEFAULT_STYLE
This DEFAULT_STYLE is applied to the MenuButton to give it a series of borders and background colors

Constructor Detail

MenuButton

public MenuButton()
Creates a MenuButton with no text or icon.


MenuButton

public MenuButton(java.lang.String text)
Creates a MenuButton with text.

Parameters:
text - A text label to display in the MenuButton.

MenuButton

public MenuButton(ImageReference icon)
Creates a MenuButton with an icon.

Parameters:
icon - An icon to display in the MenuButton.

MenuButton

public MenuButton(java.lang.String text,
                  ImageReference icon)
Creates a MenuButton with text and an icon.

Parameters:
text - A text label to display in the MenuButton.
icon - An icon to display in the MenuButton.