|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IActionComponent
Platform and technology independent action component definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
Button,
JButton| Field Summary |
|---|
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Method Summary | |
|---|---|
ActionHandler |
eventAction()
The EventHandler for the action event. |
Key |
getAccelerator()
Returns the Key which serves as an accelerator
for the button. |
java.lang.String |
getActionCommand()
Returns the command name of the action event fired by this action component. |
IInsets |
getMargins()
Returns the margin between the component's border and the text. |
void |
setAccelerator(Key pKey)
Sets the key combination which invokes the component's action listeners without selecting. |
void |
setActionCommand(java.lang.String pActionCommand)
Sets the command name for the action event fired by this action component. |
void |
setMargins(IInsets pMargins)
Sets space for margin between the button's border and the text. |
| Methods inherited from interface javax.rad.ui.component.IIcon |
|---|
getImage, isPreserveAspectRatio, setImage, setPreserveAspectRatio |
| Methods inherited from interface javax.rad.ui.component.ILabel |
|---|
getText, setText |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
| Method Detail |
|---|
void setAccelerator(Key pKey)
pKey - the Key which will serve as an acceleratorKey getAccelerator()
Key which serves as an accelerator
for the button.
Key object identifying the accelerator keyjava.lang.String getActionCommand()
void setActionCommand(java.lang.String pActionCommand)
pActionCommand - a string used to set the action command.ActionEventActionHandler eventAction()
void setMargins(IInsets pMargins)
null will cause the action component to
use the default margin.
pMargins - the space between the border and the testIInsets getMargins()
IInsets object specifying the margin
between the component's border and the textsetMargins(IInsets)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||