|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.button.AbstractButton
nextapp.echo2.app.Button
echopointng.ButtonEx
echopointng.MenuItem
echopointng.Menu
echopointng.MenuBar
public class MenuBar
The MenuBar class provides a Component that
contains other Menu objects and MenuItem
objects. Its underlying ButtonEx text and icon properties are
never rendered.
The styleChildren property can be used to help ensure consistent visual
properties between parent and child Menu's. When this is true, the visual
properties of the parent Menu will be transfered to the child
Menu or MenuItem.
| Field Summary | |
|---|---|
static Style |
DEFAULT_STYLE
This DEFAULT_STYLE is applied to the MenuBar to give it a series of borders and background colors |
| Fields inherited from class echopointng.ButtonEx |
|---|
PROPERTY_INTERPRET_NEWLINES |
| Fields inherited from interface echopointng.able.Positionable |
|---|
ABSOLUTE, FIXED, PROPERTY_BOTTOM, PROPERTY_LEFT, PROPERTY_POSITION, PROPERTY_RIGHT, PROPERTY_TOP, PROPERTY_Z_INDEX, RELATIVE, STATIC |
| 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 | |
|---|---|
MenuBar()
Constructs a MenuBar. |
|
MenuBar(MenuItem menuItem)
Constructs a MenuBar and adds menuItem as its first child |
|
| Method Summary | |
|---|---|
void |
clear()
This sets all the positioning attributes (left,top,right,bottom,z-index) to null or zero. |
Extent |
getBottom()
Returns the bottom Y position of the component |
Extent |
getLeft()
Returns the left X position of the component |
int |
getPosition()
This can be one of : POSITIONING_STATIC POSITIONING_RELATIVE POSITIONING_ABSOLUTE POSITIONING_FIXED |
Extent |
getRight()
Returns the right X position of the component |
Extent |
getTop()
Returns the top Y position of the component |
int |
getZIndex()
Returns the z-index of the component |
boolean |
isPositioned()
This returns true if any positioning is in place other than normal flow ie. |
void |
setBottom(Extent newValue)
Sets the bottom Y position of the component |
void |
setLeft(Extent newValue)
Set the left X position of the component |
void |
setPosition(int newPositioning)
Sets the position of the component This can be one of : POSITIONING_STATIC POSITIONING_RELATIVE POSITIONING_ABSOLUTE POSITIONING_FIXED |
void |
setRight(Extent newValue)
Sets the right X position of the component |
void |
setTop(Extent newValue)
Sets the top Y position of the component |
void |
setZIndex(int newValue)
Sets the z-index of the component |
String |
toString()
|
| Methods inherited from class echopointng.MenuItem |
|---|
getRootMenu |
| Methods inherited from class echopointng.ButtonEx |
|---|
getAccessKey, getAttribute, getAttributeNames, getInsets, getMouseCursor, getMouseCursorUri, getOutsets, getText, isInterpretNewlines, processInput, setAccessKey, setAttribute, setInsets, setInterpretNewlines, setModel, setMouseCursor, setMouseCursorUri, setOutsets, setText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Borderable |
|---|
getBorder, setBorder |
| Methods inherited from interface echopointng.able.Widthable |
|---|
getWidth, setWidth |
| Methods inherited from interface echopointng.able.Heightable |
|---|
getHeight, setHeight |
| Methods inherited from interface echopointng.able.ToolTipable |
|---|
getToolTipText, setToolTipText |
| Field Detail |
|---|
public static Style DEFAULT_STYLE
| Constructor Detail |
|---|
public MenuBar()
MenuBar.
public MenuBar(MenuItem menuItem)
MenuBar and adds menuItem as its first child
menuItem - - a first child for the MenuBar.| Method Detail |
|---|
public String toString()
toString in class MenuObject.toString()public void clear()
Positionable
clear in interface PositionablePositionable.clear()public Extent getBottom()
Positionable
getBottom in interface PositionablePositionable.getBottom()public Extent getLeft()
Positionable
getLeft in interface PositionablePositionable.getLeft()public int getPosition()
Positionable
getPosition in interface PositionablePositionable.getPosition()public Extent getRight()
Positionable
getRight in interface PositionablePositionable.getRight()public Extent getTop()
Positionable
getTop in interface PositionablePositionable.getTop()public int getZIndex()
Positionable
getZIndex in interface PositionablePositionable.getZIndex()public boolean isPositioned()
Positionable
isPositioned in interface PositionablePositionable.isPositioned()public void setBottom(Extent newValue)
Positionable
setBottom in interface PositionablePositionable.setBottom(nextapp.echo2.app.Extent)public void setLeft(Extent newValue)
Positionable
setLeft in interface PositionablePositionable.setLeft(nextapp.echo2.app.Extent)public void setPosition(int newPositioning)
Positionable
setPosition in interface PositionablePositionable.setPosition(int)public void setRight(Extent newValue)
Positionable
setRight in interface PositionablePositionable.setRight(nextapp.echo2.app.Extent)public void setTop(Extent newValue)
Positionable
setTop in interface PositionablePositionable.setTop(nextapp.echo2.app.Extent)public void setZIndex(int newValue)
Positionable
setZIndex in interface PositionablePositionable.setZIndex(int)
|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||