|
NextApp Echo2 Extras v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo2.app.Component nextapp.echo2.extras.app.menu.AbstractMenuComponent nextapp.echo2.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_HEIGHT
|
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_FOREGROUND
|
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_WIDTH
|
static java.lang.String |
SELECTION_CHANGED_PROPERTY
|
static java.lang.String |
SELECTION_MODEL_CHANGED_PROPERTY
|
Fields inherited from class nextapp.echo2.extras.app.menu.AbstractMenuComponent |
---|
INPUT_SELECT, MODEL_CHANGED_PROPERTY, STATE_MODEL_CHANGED_PROPERTY |
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 |
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 | |
---|---|
nextapp.echo2.app.FillImage |
getBackgroundImage()
Returns the background image that will be displayed in the DropDownMenu . |
nextapp.echo2.app.Border |
getBorder()
Returns the border that will be displayed around the DropDownMenu . |
nextapp.echo2.app.Color |
getDisabledBackground()
Returns the background color used to render disabled menu items. |
nextapp.echo2.app.FillImage |
getDisabledBackgroundImage()
Returns the background image used to render disabled menu items. |
nextapp.echo2.app.ImageReference |
getDisabledExpandIcon()
Returns the disabled expand icon. |
nextapp.echo2.app.Color |
getDisabledForeground()
Returns the foreground color used to render disabled menu items. |
nextapp.echo2.app.ImageReference |
getExpandIcon()
Returns the icon used to expand the drop down menu. |
nextapp.echo2.app.Extent |
getHeight()
Returns the height of the drop down menu. |
nextapp.echo2.app.Color |
getMenuBackground()
Returns the background color that will be displayed in pull-down menus. |
nextapp.echo2.app.FillImage |
getMenuBackgroundImage()
Returns the background image that will be displayed in pull-down menus. |
nextapp.echo2.app.Border |
getMenuBorder()
Returns the border that will be displayed around pull-down menus. |
nextapp.echo2.app.Color |
getMenuForeground()
Returns the foreground color that will be displayed in pull-down menus. |
nextapp.echo2.app.Color |
getSelectionBackground()
Returns the background color used to highlight the currently selected menu item. |
nextapp.echo2.app.FillImage |
getSelectionBackgroundImage()
Returns the background image used to highlight the currently selected menu item. |
nextapp.echo2.app.Color |
getSelectionForeground()
Returns the foreground color used to highlight the currently selected menu item. |
MenuSelectionModel |
getSelectionModel()
|
nextapp.echo2.app.Extent |
getWidth()
Returns the width of the drop down menu. |
void |
setBackgroundImage(nextapp.echo2.app.FillImage newValue)
Sets the background image that will be displayed in the DropDownMenu . |
void |
setBorder(nextapp.echo2.app.Border newValue)
Sets the border that will be displayed around the DropDownMenu . |
void |
setDisabledBackground(nextapp.echo2.app.Color newValue)
Sets the background color used to render disabled menu items. |
void |
setDisabledBackgroundImage(nextapp.echo2.app.FillImage newValue)
Sets the background image used to render disabled menu items. |
void |
setDisabledExpandIcon(nextapp.echo2.app.ImageReference newValue)
Sets the disabled expand icon. |
void |
setDisabledForeground(nextapp.echo2.app.Color newValue)
Sets the foreground color used to render disabled menu items. |
void |
setExpandIcon(nextapp.echo2.app.ImageReference newValue)
Sets the icon used to expand the drop down menu. |
void |
setHeight(nextapp.echo2.app.Extent newValue)
Sets the height of the drop down menu. |
void |
setMenuBackground(nextapp.echo2.app.Color newValue)
Sets the background color that will be displayed in pull-down menus. |
void |
setMenuBackgroundImage(nextapp.echo2.app.FillImage newValue)
Sets the background image that will be displayed in pull-down menus. |
void |
setMenuBorder(nextapp.echo2.app.Border newValue)
Sets the border that will be displayed around pull-down menus. |
void |
setMenuForeground(nextapp.echo2.app.Color newValue)
Sets the foreground color that will be displayed in pull-down menus. |
void |
setSelectionBackground(nextapp.echo2.app.Color newValue)
Sets the background color used to highlight the currently selected menu item. |
void |
setSelectionBackgroundImage(nextapp.echo2.app.FillImage newValue)
Sets the background image used to highlight the currently selected menu item. |
void |
setSelectionForeground(nextapp.echo2.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 |
setWidth(nextapp.echo2.app.Extent newValue)
Sets the width of the drop down menu. |
Methods inherited from class nextapp.echo2.extras.app.menu.AbstractMenuComponent |
---|
addActionListener, doAction, getModel, getStateModel, processInput, removeActionListener, setModel, setStateModel |
Methods inherited from class nextapp.echo2.app.Component |
---|
add, add, addPropertyChangeListener, 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, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, 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_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_FOREGROUND
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_WIDTH
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 MenuSelectionModel getSelectionModel()
public nextapp.echo2.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.echo2.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.echo2.app.Color getDisabledBackground()
public nextapp.echo2.app.FillImage getDisabledBackgroundImage()
public nextapp.echo2.app.ImageReference getDisabledExpandIcon()
public nextapp.echo2.app.Color getDisabledForeground()
public nextapp.echo2.app.ImageReference getExpandIcon()
public nextapp.echo2.app.Extent getHeight()
public nextapp.echo2.app.Color getMenuBackground()
public nextapp.echo2.app.FillImage getMenuBackgroundImage()
public nextapp.echo2.app.Border getMenuBorder()
public nextapp.echo2.app.Color getMenuForeground()
public nextapp.echo2.app.Color getSelectionBackground()
public nextapp.echo2.app.FillImage getSelectionBackgroundImage()
public nextapp.echo2.app.Color getSelectionForeground()
public nextapp.echo2.app.Extent getWidth()
public void setBackgroundImage(nextapp.echo2.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.echo2.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.echo2.app.Color newValue)
newValue
- the new disabled backgroundpublic void setDisabledBackgroundImage(nextapp.echo2.app.FillImage newValue)
newValue
- the new disabled background imagepublic void setDisabledExpandIcon(nextapp.echo2.app.ImageReference newValue)
newValue
- the new disabled expand iconpublic void setDisabledForeground(nextapp.echo2.app.Color newValue)
newValue
- the new disabled foregroundpublic void setExpandIcon(nextapp.echo2.app.ImageReference newValue)
newValue
- the new expand iconpublic void setHeight(nextapp.echo2.app.Extent newValue)
newValue
- the new heightpublic void setMenuBackground(nextapp.echo2.app.Color newValue)
newValue
- the new menu backgroundpublic void setMenuBackgroundImage(nextapp.echo2.app.FillImage newValue)
newValue
- the new menu background imagepublic void setMenuBorder(nextapp.echo2.app.Border newValue)
newValue
- the new menu borderpublic void setMenuForeground(nextapp.echo2.app.Color newValue)
newValue
- the new menu foregroundpublic void setSelectionBackground(nextapp.echo2.app.Color newValue)
newValue
- the new selection backgroundpublic void setSelectionBackgroundImage(nextapp.echo2.app.FillImage newValue)
newValue
- the new selection background imagepublic void setSelectionForeground(nextapp.echo2.app.Color newValue)
newValue
- the new selection foregroundpublic void setSelectionModel(MenuSelectionModel newValue)
newValue
- the new selection modelpublic void setWidth(nextapp.echo2.app.Extent newValue)
newValue
- the new width
|
NextApp Echo2 Extras v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |