|
||||||||||
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_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. |
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(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, setImage |
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 keyString getActionCommand()
null
(default) then this method
returns the label of the button.
void setActionCommand(String pActionCommand)
pActionCommand
- 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.ActionEvent
ActionHandler 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 |