|
NextApp Echo3 Extras v3.0.b8 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.app.Component
nextapp.echo.extras.app.menu.AbstractMenuComponent
nextapp.echo.extras.app.MenuBarPane
public class MenuBarPane
MenuBarPane component: a menu bar containing "pull down" menus. This component is a Pane, and is generally best used
as the first child of a SplitPane component whose autoPositioned property is set to true. May not
contain child components.
| Field Summary | |
|---|---|
static String |
PROPERTY_BACKGROUND_IMAGE
|
static String |
PROPERTY_BORDER
|
static String |
PROPERTY_DISABLED_BACKGROUND
|
static String |
PROPERTY_DISABLED_BACKGROUND_IMAGE
|
static String |
PROPERTY_DISABLED_FOREGROUND
|
static String |
PROPERTY_INSETS
|
static String |
PROPERTY_MENU_BACKGROUND
|
static String |
PROPERTY_MENU_BACKGROUND_IMAGE
|
static String |
PROPERTY_MENU_BORDER
|
static String |
PROPERTY_MENU_EXPAND_ICON
|
static String |
PROPERTY_MENU_FOREGROUND
|
static String |
PROPERTY_MENU_OPACITY
|
static String |
PROPERTY_SELECTION_BACKGROUND
|
static String |
PROPERTY_SELECTION_BACKGROUND_IMAGE
|
static String |
PROPERTY_SELECTION_FOREGROUND
|
| 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 |
| Constructor Summary | |
|---|---|
MenuBarPane()
Creates a new MenuBarPane with an empty
DefaultMenuModel as its model and a. |
|
MenuBarPane(MenuModel model)
Creates a new MenuBarPane displaying the specified
MenuModel and using a
DefaultMenuStateModel to provide state information. |
|
MenuBarPane(MenuModel model,
MenuStateModel stateModel)
Creates a new MenuBarPane displaying the specified
MenuModel and using the specified
MenuStateModel to provide state information. |
|
| Method Summary | |
|---|---|
FillImage |
getBackgroundImage()
Returns the background image that will be displayed in the MenuBarPane. |
Border |
getBorder()
Returns the border that will be displayed around the MenuBarPane. |
Color |
getDisabledBackground()
Returns the background color used to render disabled menu items. |
FillImage |
getDisabledBackgroundImage()
Returns the background image used to render disabled menu items. |
Color |
getDisabledForeground()
Returns the foreground color used to render disabled menu items. |
Insets |
getInsets()
Returns the inset margin around the menu bar. |
Color |
getMenuBackground()
Returns the background color that will be displayed in pull-down menus. |
FillImage |
getMenuBackgroundImage()
Returns the background image that will be displayed in pull-down menus. |
Border |
getMenuBorder()
Returns the border that will be displayed around pull-down menus. |
ImageReference |
getMenuExpandIcon()
Returns the icon used to expand pull-down menus. |
Color |
getMenuForeground()
Returns the foreground color that will be displayed in pull-down menus. |
int |
getMenuOpacity()
Returns the opacity setting (percent) that will be used for the background color/image displayed in pulldown menus. |
Color |
getSelectionBackground()
Returns the background color used to highlight the currently selected menu item. |
FillImage |
getSelectionBackgroundImage()
Returns the background image used to highlight the currently selected menu item. |
Color |
getSelectionForeground()
Returns the foreground color used to highlight the currently selected menu item. |
boolean |
isValidParent(Component c)
|
void |
setBackgroundImage(FillImage newValue)
Sets the background image that will be displayed in the MenuBarPane. |
void |
setBorder(Border newValue)
Sets the border that will be displayed around the MenuBarPane. |
void |
setDisabledBackground(Color newValue)
Sets the background color used to render disabled menu items. |
void |
setDisabledBackgroundImage(FillImage newValue)
Sets the background image used to render disabled menu items. |
void |
setDisabledForeground(Color newValue)
Sets the foreground color used to render disabled menu items. |
void |
setInsets(Insets newValue)
Returns the inset margin around the menu bar. |
void |
setMenuBackground(Color newValue)
Sets the background color that will be displayed in pull-down menus. |
void |
setMenuBackgroundImage(FillImage newValue)
Sets the background image that will be displayed in pull-down menus. |
void |
setMenuBorder(Border newValue)
Sets the border that will be displayed around pull-down menus. |
void |
setMenuExpandIcon(ImageReference newValue)
Sets the icon used to expand pull-down menus. |
void |
setMenuForeground(Color newValue)
Sets the foreground color that will be displayed in pull-down menus. |
void |
setMenuOpacity(int newValue)
Sets the opacity (percent) that will be used for the background color/image displayed in pulldown menus. |
void |
setSelectionBackground(Color newValue)
Sets the background color used to highlight the currently selected menu item. |
void |
setSelectionBackgroundImage(FillImage newValue)
Sets the background image used to highlight the currently selected menu item. |
void |
setSelectionForeground(Color newValue)
Sets the foreground color used to highlight the currently selected menu item. |
| Methods inherited from class nextapp.echo.extras.app.menu.AbstractMenuComponent |
|---|
addActionListener, doAction, fireActionPerformed, getAnimationTime, getModel, getStateModel, hasActionListeners, processInput, removeActionListener, setAnimationTime, setModel, setStateModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_BACKGROUND_IMAGE
public static final String PROPERTY_BORDER
public static final String PROPERTY_DISABLED_BACKGROUND
public static final String PROPERTY_DISABLED_BACKGROUND_IMAGE
public static final String PROPERTY_DISABLED_FOREGROUND
public static final String PROPERTY_INSETS
public static final String PROPERTY_MENU_BACKGROUND
public static final String PROPERTY_MENU_BACKGROUND_IMAGE
public static final String PROPERTY_MENU_BORDER
public static final String PROPERTY_MENU_EXPAND_ICON
public static final String PROPERTY_MENU_FOREGROUND
public static final String PROPERTY_MENU_OPACITY
public static final String PROPERTY_SELECTION_BACKGROUND
public static final String PROPERTY_SELECTION_BACKGROUND_IMAGE
public static final String PROPERTY_SELECTION_FOREGROUND
| Constructor Detail |
|---|
public MenuBarPane()
MenuBarPane with an empty
DefaultMenuModel as its model and a.
DefaultMenuStateModel to provide state information.
public MenuBarPane(MenuModel model)
MenuBarPane displaying the specified
MenuModel and using a
DefaultMenuStateModel to provide state information.
model - the model
public MenuBarPane(MenuModel model,
MenuStateModel stateModel)
MenuBarPane displaying the specified
MenuModel and using the specified
MenuStateModel to provide state information.
model - the modelstateModel - the selection model| Method Detail |
|---|
public FillImage getBackgroundImage()
MenuBarPane. This background image will also be
used around pull-down menus in the event that a menu
background image is not specified.
public Border getBorder()
MenuBarPane. This border will also be used around
pull-down menus in the event that a menu border is not specified.
public Color getDisabledBackground()
public FillImage getDisabledBackgroundImage()
public Color getDisabledForeground()
public Insets getInsets()
public Color getMenuBackground()
public FillImage getMenuBackgroundImage()
public Border getMenuBorder()
public ImageReference getMenuExpandIcon()
public Color getMenuForeground()
public int getMenuOpacity()
public Color getSelectionBackground()
public FillImage getSelectionBackgroundImage()
public Color getSelectionForeground()
public boolean isValidParent(Component c)
isValidParent in class ComponentComponent.isValidParent(nextapp.echo.app.Component)public void setBackgroundImage(FillImage newValue)
MenuBarPane. 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(Border newValue)
MenuBarPane. 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(Color newValue)
newValue - the new disabled backgroundpublic void setDisabledBackgroundImage(FillImage newValue)
newValue - the new disabled background imagepublic void setDisabledForeground(Color newValue)
newValue - the new disabled foregroundpublic void setInsets(Insets newValue)
newValue - the inset margin around the menu barpublic void setMenuBackground(Color newValue)
newValue - the new menu backgroundpublic void setMenuBackgroundImage(FillImage newValue)
newValue - the new menu background imagepublic void setMenuBorder(Border newValue)
newValue - the new menu borderpublic void setMenuExpandIcon(ImageReference newValue)
newValue - the new menu expand iconpublic void setMenuForeground(Color newValue)
newValue - the new menu foregroundpublic void setMenuOpacity(int newValue)
newValue - the new opacity settingpublic void setSelectionBackground(Color newValue)
newValue - the new selection backgroundpublic void setSelectionBackgroundImage(FillImage newValue)
newValue - the new selection background imagepublic void setSelectionForeground(Color newValue)
newValue - the new selection foreground
|
NextApp Echo3 Extras v3.0.b8 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||