|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.Component nextapp.echo.extras.app.menu.AbstractMenuComponent nextapp.echo.extras.app.DropDownMenu
public class DropDownMenu
EXPERIMENTAL: Under Development, API may change.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_BACKGROUND_IMAGE
|
static java.lang.String |
PROPERTY_BORDER
|
static java.lang.String |
PROPERTY_DISABLED_BACKGROUND
|
static java.lang.String |
PROPERTY_DISABLED_BACKGROUND_IMAGE
|
static java.lang.String |
PROPERTY_DISABLED_EXPAND_ICON
|
static java.lang.String |
PROPERTY_DISABLED_FOREGROUND
|
static java.lang.String |
PROPERTY_EXPAND_ICON
|
static java.lang.String |
PROPERTY_EXPAND_ICON_WIDTH
|
static java.lang.String |
PROPERTY_HEIGHT
|
static java.lang.String |
PROPERTY_INSETS
|
static java.lang.String |
PROPERTY_LINE_WRAP
|
static java.lang.String |
PROPERTY_MENU_BACKGROUND
|
static java.lang.String |
PROPERTY_MENU_BACKGROUND_IMAGE
|
static java.lang.String |
PROPERTY_MENU_BORDER
|
static java.lang.String |
PROPERTY_MENU_EXPAND_ICON
|
static java.lang.String |
PROPERTY_MENU_FONT
|
static java.lang.String |
PROPERTY_MENU_FOREGROUND
|
static java.lang.String |
PROPERTY_MENU_HEIGHT
|
static java.lang.String |
PROPERTY_MENU_WIDTH
|
static java.lang.String |
PROPERTY_SELECTION_BACKGROUND
|
static java.lang.String |
PROPERTY_SELECTION_BACKGROUND_IMAGE
|
static java.lang.String |
PROPERTY_SELECTION_FOREGROUND
|
static java.lang.String |
PROPERTY_SELECTION_TEXT
|
static java.lang.String |
PROPERTY_WIDTH
|
static java.lang.String |
SELECTION_CHANGED_PROPERTY
|
static java.lang.String |
SELECTION_MODEL_CHANGED_PROPERTY
|
Fields inherited from class nextapp.echo.extras.app.menu.AbstractMenuComponent |
---|
ACTION_LISTENERS_CHANGED_PROPERTY, DEFAULT_ANIMATION_TIME, INPUT_ACTION, MODEL_CHANGED_PROPERTY, PROPERTY_ANIMATION_TIME, STATE_MODEL_CHANGED_PROPERTY |
Fields inherited from class nextapp.echo.app.Component |
---|
CHILD_VISIBLE_CHANGED_PROPERTY, 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 |
Constructor Summary | |
---|---|
DropDownMenu()
Creates a new DropDownMenu with an empty
DefaultMenuModel as its model and a. |
|
DropDownMenu(MenuModel model)
Creates a new DropDownMenu displaying the specified
MenuModel and using a
DefaultMenuStateModel to provide state information. |
|
DropDownMenu(MenuModel model,
MenuSelectionModel selectionModel)
|
|
DropDownMenu(MenuModel model,
MenuStateModel stateModel)
Creates a new DropDownMenu displaying the specified
MenuModel and using the specified
MenuStateModel to provide state information. |
Method Summary | |
---|---|
void |
doAction(OptionModel optionModel)
Programmatically performs a menu action. |
nextapp.echo.app.FillImage |
getBackgroundImage()
Returns the background image that will be displayed in the DropDownMenu . |
nextapp.echo.app.Border |
getBorder()
Returns the border that will be displayed around the DropDownMenu . |
nextapp.echo.app.Color |
getDisabledBackground()
Returns the background color used to render disabled menu items. |
nextapp.echo.app.FillImage |
getDisabledBackgroundImage()
Returns the background image used to render disabled menu items. |
nextapp.echo.app.ImageReference |
getDisabledExpandIcon()
Returns the disabled expand icon. |
nextapp.echo.app.Color |
getDisabledForeground()
Returns the foreground color used to render disabled menu items. |
nextapp.echo.app.ImageReference |
getExpandIcon()
Returns the icon used to expand the drop down menu. |
nextapp.echo.app.Extent |
getExpandIconWidth()
Returns the width of the expand icon. |
nextapp.echo.app.Extent |
getHeight()
Returns the height of the drop down menu. |
nextapp.echo.app.Insets |
getInsets()
Returns the insets. |
nextapp.echo.app.Color |
getMenuBackground()
Returns the background color that will be displayed in pull-down menus. |
nextapp.echo.app.FillImage |
getMenuBackgroundImage()
Returns the background image that will be displayed in pull-down menus. |
nextapp.echo.app.Border |
getMenuBorder()
Returns the border that will be displayed around pull-down menus. |
nextapp.echo.app.ImageReference |
getMenuExpandIcon()
Returns the icon used to expand pull-down menus. |
nextapp.echo.app.Font |
getMenuFont()
Returns the font used to render the menu. |
nextapp.echo.app.Color |
getMenuForeground()
Returns the foreground color that will be displayed in pull-down menus. |
nextapp.echo.app.Extent |
getMenuHeight()
Returns the height of the expanded menu. |
nextapp.echo.app.Extent |
getMenuWidth()
Returns the width of the expanded menu. |
nextapp.echo.app.Color |
getSelectionBackground()
Returns the background color used to highlight the currently selected menu item. |
nextapp.echo.app.FillImage |
getSelectionBackgroundImage()
Returns the background image used to highlight the currently selected menu item. |
nextapp.echo.app.Color |
getSelectionForeground()
Returns the foreground color used to highlight the currently selected menu item. |
MenuSelectionModel |
getSelectionModel()
|
java.lang.String |
getSelectionText()
Gets the selection text that will be displayed when no item is selected. |
nextapp.echo.app.Extent |
getWidth()
Returns the width of the drop down menu. |
boolean |
isLineWrap()
Determines if the text of items should wrap in the event that horizontal space is limited. |
void |
processInput(java.lang.String name,
java.lang.Object value)
|
void |
setBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the background image that will be displayed in the DropDownMenu . |
void |
setBorder(nextapp.echo.app.Border newValue)
Sets the border that will be displayed around the DropDownMenu . |
void |
setDisabledBackground(nextapp.echo.app.Color newValue)
Sets the background color used to render disabled menu items. |
void |
setDisabledBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the background image used to render disabled menu items. |
void |
setDisabledExpandIcon(nextapp.echo.app.ImageReference newValue)
Sets the disabled expand icon. |
void |
setDisabledForeground(nextapp.echo.app.Color newValue)
Sets the foreground color used to render disabled menu items. |
void |
setExpandIcon(nextapp.echo.app.ImageReference newValue)
Sets the icon used to expand the drop down menu. |
void |
setExpandIconWidth(nextapp.echo.app.Extent newValue)
Sets the width of the expand icon. |
void |
setHeight(nextapp.echo.app.Extent newValue)
Sets the height of the drop down menu. |
void |
setInsets(nextapp.echo.app.Insets newValue)
Sets the insets. |
void |
setLineWrap(boolean newValue)
Sets whether the text of items should wrap in the event that horizontal space is limited. |
void |
setMenuBackground(nextapp.echo.app.Color newValue)
Sets the background color that will be displayed in pull-down menus. |
void |
setMenuBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the background image that will be displayed in pull-down menus. |
void |
setMenuBorder(nextapp.echo.app.Border newValue)
Sets the border that will be displayed around pull-down menus. |
void |
setMenuExpandIcon(nextapp.echo.app.ImageReference newValue)
Sets the icon used to expand pull-down menus. |
void |
setMenuFont(nextapp.echo.app.Font newValue)
Sets the font used to render the menu. |
void |
setMenuForeground(nextapp.echo.app.Color newValue)
Sets the foreground color that will be displayed in pull-down menus. |
void |
setMenuHeight(nextapp.echo.app.Extent newValue)
Sets the height of the expanded menu. |
void |
setMenuWidth(nextapp.echo.app.Extent newValue)
Sets the width of the expanded menu. |
void |
setSelectionBackground(nextapp.echo.app.Color newValue)
Sets the background color used to highlight the currently selected menu item. |
void |
setSelectionBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the background image used to highlight the currently selected menu item. |
void |
setSelectionForeground(nextapp.echo.app.Color newValue)
Sets the foreground color used to highlight the currently selected menu item. |
void |
setSelectionModel(MenuSelectionModel newValue)
Sets the selection model to use. |
void |
setSelectionText(java.lang.String newValue)
Sets the selection text that will be displayed when no item is selected. |
void |
setWidth(nextapp.echo.app.Extent newValue)
Sets the width of the drop down menu. |
Methods inherited from class nextapp.echo.extras.app.menu.AbstractMenuComponent |
---|
addActionListener, fireActionPerformed, getAnimationTime, getModel, getStateModel, hasActionListeners, removeActionListener, setAnimationTime, setModel, setStateModel |
Methods inherited from class nextapp.echo.app.Component |
---|
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_BACKGROUND_IMAGE
public static final java.lang.String PROPERTY_BORDER
public static final java.lang.String PROPERTY_DISABLED_BACKGROUND
public static final java.lang.String PROPERTY_DISABLED_BACKGROUND_IMAGE
public static final java.lang.String PROPERTY_DISABLED_FOREGROUND
public static final java.lang.String PROPERTY_DISABLED_EXPAND_ICON
public static final java.lang.String PROPERTY_EXPAND_ICON
public static final java.lang.String PROPERTY_EXPAND_ICON_WIDTH
public static final java.lang.String PROPERTY_HEIGHT
public static final java.lang.String PROPERTY_LINE_WRAP
public static final java.lang.String PROPERTY_MENU_HEIGHT
public static final java.lang.String PROPERTY_MENU_BACKGROUND
public static final java.lang.String PROPERTY_MENU_BACKGROUND_IMAGE
public static final java.lang.String PROPERTY_MENU_BORDER
public static final java.lang.String PROPERTY_MENU_EXPAND_ICON
public static final java.lang.String PROPERTY_MENU_FOREGROUND
public static final java.lang.String PROPERTY_MENU_FONT
public static final java.lang.String PROPERTY_MENU_WIDTH
public static final java.lang.String PROPERTY_SELECTION_BACKGROUND
public static final java.lang.String PROPERTY_SELECTION_BACKGROUND_IMAGE
public static final java.lang.String PROPERTY_SELECTION_FOREGROUND
public static final java.lang.String PROPERTY_SELECTION_TEXT
public static final java.lang.String PROPERTY_WIDTH
public static final java.lang.String PROPERTY_INSETS
public static final java.lang.String SELECTION_CHANGED_PROPERTY
public static final java.lang.String SELECTION_MODEL_CHANGED_PROPERTY
Constructor Detail |
---|
public DropDownMenu()
DropDownMenu
with an empty
DefaultMenuModel
as its model and a.
DefaultMenuStateModel
to provide state information.
public DropDownMenu(MenuModel model)
DropDownMenu
displaying the specified
MenuModel
and using a
DefaultMenuStateModel
to provide state information.
model
- the modelpublic DropDownMenu(MenuModel model, MenuStateModel stateModel)
DropDownMenu
displaying the specified
MenuModel
and using the specified
MenuStateModel
to provide state information.
model
- the modelstateModel
- the selection modelpublic DropDownMenu(MenuModel model, MenuSelectionModel selectionModel)
Method Detail |
---|
public void processInput(java.lang.String name, java.lang.Object value)
processInput
in class AbstractMenuComponent
AbstractMenuComponent.processInput(java.lang.String, java.lang.Object)
public void doAction(OptionModel optionModel)
AbstractMenuComponent
doAction
in class AbstractMenuComponent
optionModel
- the OptionModel
whose action is to be
invokedAbstractMenuComponent.doAction(nextapp.echo.extras.app.menu.OptionModel)
public MenuSelectionModel getSelectionModel()
public java.lang.String getSelectionText()
public nextapp.echo.app.FillImage getBackgroundImage()
DropDownMenu
. This background image will also be
used around pull-down menus in the event that a menu
background image is not specified.
public nextapp.echo.app.Border getBorder()
DropDownMenu
. This border will also be used around
pull-down menus in the event that a menu border is not specified.
public nextapp.echo.app.Color getDisabledBackground()
public nextapp.echo.app.FillImage getDisabledBackgroundImage()
public nextapp.echo.app.ImageReference getDisabledExpandIcon()
public nextapp.echo.app.Color getDisabledForeground()
public nextapp.echo.app.ImageReference getExpandIcon()
public nextapp.echo.app.Extent getExpandIconWidth()
public nextapp.echo.app.Extent getHeight()
public nextapp.echo.app.Extent getMenuHeight()
public nextapp.echo.app.Extent getMenuWidth()
public nextapp.echo.app.Insets getInsets()
setInsets(nextapp.echo.app.Insets)
public nextapp.echo.app.Color getMenuBackground()
public nextapp.echo.app.FillImage getMenuBackgroundImage()
public nextapp.echo.app.Border getMenuBorder()
public nextapp.echo.app.ImageReference getMenuExpandIcon()
public nextapp.echo.app.Color getMenuForeground()
public nextapp.echo.app.Font getMenuFont()
public nextapp.echo.app.Color getSelectionBackground()
public nextapp.echo.app.FillImage getSelectionBackgroundImage()
public nextapp.echo.app.Color getSelectionForeground()
public nextapp.echo.app.Extent getWidth()
public boolean isLineWrap()
public void setBackgroundImage(nextapp.echo.app.FillImage newValue)
DropDownMenu
. This background image will also be
used around pull-down menus in the event that a menu
background image is not specified.
newValue
- the new default background imagepublic void setBorder(nextapp.echo.app.Border newValue)
DropDownMenu
. This border will also be used around
pull-down menus in the event that a menu border is not specified.
newValue
- the new default borderpublic void setDisabledBackground(nextapp.echo.app.Color newValue)
newValue
- the new disabled backgroundpublic void setDisabledBackgroundImage(nextapp.echo.app.FillImage newValue)
newValue
- the new disabled background imagepublic void setDisabledExpandIcon(nextapp.echo.app.ImageReference newValue)
newValue
- the new disabled expand iconpublic void setDisabledForeground(nextapp.echo.app.Color newValue)
newValue
- the new disabled foregroundpublic void setExpandIcon(nextapp.echo.app.ImageReference newValue)
newValue
- the new expand iconpublic void setExpandIconWidth(nextapp.echo.app.Extent newValue)
Extent
s with
pixel units.
newValue
- the new width of the expand iconpublic void setHeight(nextapp.echo.app.Extent newValue)
newValue
- the new heightpublic void setLineWrap(boolean newValue)
newValue
- the new line wrap statepublic void setMenuHeight(nextapp.echo.app.Extent newValue)
newValue
- the new heightpublic void setMenuWidth(nextapp.echo.app.Extent newValue)
newValue
- the new widthpublic void setInsets(nextapp.echo.app.Insets newValue)
Inset
s with
pixel units.
newValue
- the new heightpublic void setMenuBackground(nextapp.echo.app.Color newValue)
newValue
- the new menu backgroundpublic void setMenuBackgroundImage(nextapp.echo.app.FillImage newValue)
newValue
- the new menu background imagepublic void setMenuBorder(nextapp.echo.app.Border newValue)
newValue
- the new menu borderpublic void setMenuExpandIcon(nextapp.echo.app.ImageReference newValue)
newValue
- the new menu expand iconpublic void setMenuForeground(nextapp.echo.app.Color newValue)
newValue
- the new menu foregroundpublic void setMenuFont(nextapp.echo.app.Font newValue)
newValue
- the new menu fontpublic void setSelectionBackground(nextapp.echo.app.Color newValue)
newValue
- the new selection backgroundpublic void setSelectionBackgroundImage(nextapp.echo.app.FillImage newValue)
newValue
- the new selection background imagepublic void setSelectionForeground(nextapp.echo.app.Color newValue)
newValue
- the new selection foregroundpublic void setSelectionModel(MenuSelectionModel newValue)
newValue
- the new selection modelpublic void setSelectionText(java.lang.String newValue)
newValue
- the new selection textpublic void setWidth(nextapp.echo.app.Extent newValue)
newValue
- the new width
|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |