|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.web.impl.WebResource
com.sibvisions.rad.ui.web.impl.WebComponent
com.sibvisions.rad.ui.web.impl.WebContainer
com.sibvisions.rad.ui.web.impl.menu.WebMenu
public class WebMenu
Web server implementation of IMenu.
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.web.impl.WebContainer |
|---|
components |
| Fields inherited from class com.sibvisions.rad.ui.web.impl.WebComponent |
|---|
componentId |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
WebMenu()
Creates a new instance of WebMenu. |
|
| Method Summary | |
|---|---|
void |
addSeparator()
Appends a new separator at the end of the menu. |
void |
addSeparator(int pIndex)
Inserts a separator at the specified position. |
ActionHandler |
eventAction()
The EventHandler for the action event. |
Key |
getAccelerator()
Returns the Key which serves as an accelerator
for the button. |
String |
getActionCommand()
Returns the command name of the action event fired by this action component. |
WebImage |
getImage()
Returns the default image. |
WebInsets |
getMargins()
Returns the margin between the component's border and the text. |
String |
getText()
Returns the text string that the label displays. |
void |
setAccelerator(Key pAccelerator)
Sets the key combination which invokes the component's action listeners without selecting. |
void |
setActionCommand(String pActionCommand)
Sets the command name for the action event fired by this action component. |
void |
setImage(IImage pImage)
Sets the default image. |
void |
setMargins(IInsets pMargins)
Sets space for margin between the button's border and the text. |
void |
setText(String pText)
Defines the single line of text this component will display. |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebContainer |
|---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource |
|---|
getNullableAsString, getResource, setAsString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
| Methods inherited from interface javax.rad.ui.IContainer |
|---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Constructor Detail |
|---|
public WebMenu()
WebMenu.
IMenu| Method Detail |
|---|
public void addSeparator()
addSeparator in interface IMenupublic void addSeparator(int pIndex)
addSeparator in interface IMenupIndex - an integer specifying the position at which to
insert the menu separatorpublic String getText()
getText in interface ILabelILabel.setText(java.lang.String)public void setText(String pText)
setText in interface ILabelpText - the textpublic WebImage getImage()
getImage in interface IIconIIcon.setImage(IImage)public void setImage(IImage pImage)
setImage in interface IIconpImage - the imageIIcon.getImage()public Key getAccelerator()
Key which serves as an accelerator
for the button.
getAccelerator in interface IActionComponentKey object identifying the accelerator keypublic void setAccelerator(Key pAccelerator)
setAccelerator in interface IActionComponentpAccelerator - the Key which will serve as an acceleratorpublic String getActionCommand()
null (default) then this method
returns the label of the button.
getActionCommand in interface IActionComponentpublic void setActionCommand(String pActionCommand)
setActionCommand in interface IActionComponentpActionCommand - a string used to set the action command.
If the string is null then the action command
is set to match the text of the action component.ActionEventpublic WebInsets getMargins()
getMargins in interface IActionComponentIInsets object specifying the margin
between the component's border and the textIActionComponent.setMargins(IInsets)public void setMargins(IInsets pMargins)
null will cause the action component to
use the default margin.
setMargins in interface IActionComponentpMargins - the space between the border and the testpublic ActionHandler eventAction()
eventAction in interface IActionComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||