|
||||||||||
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.AbstractUIActionComponent<C>
javax.rad.genui.component.AbstractUIButton<IButton>
javax.rad.genui.component.UIButton
public class UIButton
Platform and technology independent button. 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 | |
---|---|
|
UIButton()
Creates a new instance of UIButton . |
protected |
UIButton(IButton pButton)
Creates a new instance of UIButton with the given
button. |
|
UIButton(java.lang.String pText)
Creates a new instance of UIButton . |
|
UIButton(java.lang.String pText,
IActionListener pActionListener)
Creates a new instance of UIButton . |
|
UIButton(java.lang.String pText,
IImage pImage)
Creates a new instance of UIButton . |
|
UIButton(java.lang.String pText,
IImage pImage,
IActionListener pActionListener)
Creates a new instance of UIButton . |
|
UIButton(java.lang.String pText,
IImage pImage,
java.lang.Object pListener,
java.lang.String pMethodName)
Creates a new instance of UIButton . |
|
UIButton(java.lang.String pText,
java.lang.Object pListener,
java.lang.String pMethodName)
Creates a new instance of UIButton . |
Method Summary | |
---|---|
protected java.lang.String |
createComponentName()
Creates a name for this UIComponent . |
Methods inherited from class javax.rad.genui.component.AbstractUIButton |
---|
getHorizontalTextPosition, getImageTextGap, getMouseOverImage, getPressedImage, getVerticalTextPosition, isBorderOnMouseEntered, isBorderPainted, isDefaultButton, setBorderOnMouseEntered, setBorderPainted, setDefaultButton, setHorizontalTextPosition, setImageTextGap, setMouseOverImage, setPressedImage, setVerticalTextPosition |
Methods inherited from class javax.rad.genui.component.AbstractUIActionComponent |
---|
eventAction, getAccelerator, getActionCommand, getHorizontalAlignment, getImage, getMargins, getText, getVerticalAlignment, isPreserveAspectRatio, setAccelerator, setActionCommand, setHorizontalAlignment, setImage, setMargins, setMargins, 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.IActionComponent |
---|
eventAction, getAccelerator, getActionCommand, getMargins, setAccelerator, setActionCommand, setMargins |
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 |
---|
public UIButton()
UIButton
.
IButton
protected UIButton(IButton pButton)
UIButton
with the given
button.
pButton
- the buttonIButton
public UIButton(java.lang.String pText)
UIButton
.
pText
- the label of the button.IButton
public UIButton(java.lang.String pText, IImage pImage)
UIButton
.
pText
- the text
.pImage
- the image
.AbstractUIActionComponent.setImage(IImage)
,
AbstractUIActionComponent.setText(String)
public UIButton(java.lang.String pText, IActionListener pActionListener)
UIButton
.
pText
- the text
.pActionListener
- the action listener
.AbstractUIActionComponent.eventAction()
,
AbstractUIActionComponent.setText(String)
public UIButton(java.lang.String pText, java.lang.Object pListener, java.lang.String pMethodName)
UIButton
.
pText
- the text
.pListener
- the listener
.pMethodName
- the method name
.AbstractUIActionComponent.eventAction()
,
AbstractUIActionComponent.setText(String)
public UIButton(java.lang.String pText, IImage pImage, IActionListener pActionListener)
UIButton
.
pText
- the text
.pImage
- the image
.pActionListener
- the action listener
.AbstractUIActionComponent.eventAction()
,
AbstractUIActionComponent.setImage(IImage)
,
AbstractUIActionComponent.setText(String)
public UIButton(java.lang.String pText, IImage pImage, java.lang.Object pListener, java.lang.String pMethodName)
UIButton
.
pText
- the text
.pImage
- the image
.pListener
- the listener
.pMethodName
- the method name
.AbstractUIActionComponent.eventAction()
,
AbstractUIActionComponent.setImage(IImage)
,
AbstractUIActionComponent.setText(String)
Method Detail |
---|
protected java.lang.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<IButton>
UIComponent
.UIComponent.getExistingNames()
,
UIComponent.getRootName()
,
UIComponent.incrementNameIfExists(String, Set, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |