|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.component.AbstractUILabeledIcon<C>
javax.rad.genui.component.AbstractUIActionComponent<C>
C - instance of IActionComponentpublic abstract class AbstractUIActionComponent<C extends IActionComponent>
Platform and technology independent action component. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
bTranslate, lLastTranslationModified, parent, popupMenu |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
protected |
AbstractUIActionComponent(C pActionComponent)
Creates a new instance of AbstractUIActionComponent. |
| Method Summary | |
|---|---|
protected String |
createComponentName()
Creates a name for this UIComponent. |
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. |
void |
setMargins(int pTop,
int pLeft,
int pBottom,
int pRight)
Sets the insets with primitive types. |
| Methods inherited from class javax.rad.genui.component.AbstractUILabeledIcon |
|---|
getHorizontalAlignment, getImage, getText, getVerticalAlignment, isPreserveAspectRatio, setHorizontalAlignment, setImage, setPreserveAspectRatio, setText, setVerticalAlignment, updateTranslation |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
protected AbstractUIActionComponent(C pActionComponent)
AbstractUIActionComponent.
pActionComponent - the IActionComponent.IActionComponent| Method Detail |
|---|
public void setAccelerator(Key pKey)
setAccelerator in interface IActionComponentpKey - the Key which will serve as an acceleratorpublic Key getAccelerator()
Key which serves as an accelerator
for the button.
getAccelerator in interface IActionComponentKey object identifying the accelerator keypublic String getActionCommand()
getActionCommand in interface IActionComponentpublic void setActionCommand(String pActionCommand)
setActionCommand in interface IActionComponentpActionCommand - a string used to set the action command.ActionEventpublic ActionHandler eventAction()
eventAction in interface IActionComponentpublic IInsets 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 testprotected String createComponentName()
UIComponent.
The returned name needs to be unique in the current root/workscreen and
is ideally, but not necessarily, prefixed with the UIComponent.sRootName,
if there is any.
Overriding classes should be aware that this method will be called in
UIComponent.addNotify() and the returned name will only be assigned to the
UIComponent if there isn't already a name set. Also
UIComponent.stExistingNames can be used to find out if a name has already
been assigned, and UIComponent.sRootName to get the root name.
In rare cases UIComponent.stExistingNames and/or UIComponent.sRootName might
be null when this method is called.
createComponentName in class UIComponent<C extends IActionComponent>UIComponent.UIComponent.createSimplifiedClassName(),
UIComponent.getExistingNames(),
UIComponent.getRootName(),
UIComponent.incrementNameIfExists(String, Set, boolean)
public void setMargins(int pTop,
int pLeft,
int pBottom,
int pRight)
pTop - the top insets.pLeft - the left insets.pBottom - the bottom insets.pRight - the right insets.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||