|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IButton
Platform and technology independent button 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 | |
---|---|
int |
getHorizontalTextPosition()
Returns the horizontal position of the text relative to the icon. |
int |
getImageTextGap()
Returns the amount of space between the text and the icon displayed in this button. |
IImage |
getMouseOverImage()
Gets the image for the button when the mouse is over. |
IImage |
getPressedImage()
Gets the image for the button when the button is pressed. |
int |
getVerticalTextPosition()
Returns the vertical position of the text relative to the icon. |
boolean |
isBorderOnMouseEntered()
Gets, if the border should only be shown on mouse entered. |
boolean |
isBorderPainted()
Gets whether the border will be painted. |
boolean |
isDefaultButton()
Gets the value of the defaultButton property,
which if true means that this button is the current
default button. |
void |
setBorderOnMouseEntered(boolean pBorderOnMouseEntered)
Sets, if the border should only be shown on mouse entered. |
void |
setBorderPainted(boolean pBorderPainted)
Sets whether the border will be painted. |
void |
setDefaultButton(boolean pDefault)
Sets the defaultButton property. |
void |
setHorizontalTextPosition(int pHorizontalPosition)
Sets the horizontal position of the text relative to the icon. |
void |
setImageTextGap(int pImageTextGap)
If both the icon and text properties are set, this property defines the space between them. |
void |
setMouseOverImage(IImage pImage)
Sets the image for the button when the mouse is over. |
void |
setPressedImage(IImage pImage)
Sets the image for the button when the button is pressed. |
void |
setVerticalTextPosition(int pVerticalPosition)
Sets the vertical position of the text relative to the icon. |
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, 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 |
---|
int getImageTextGap()
setImageTextGap(int)
void setImageTextGap(int pImageTextGap)
The default value of this property is 4 pixels.
This is a JavaBeans bound property.
pImageTextGap
- the image gapgetImageTextGap()
void setVerticalTextPosition(int pVerticalPosition)
pVerticalPosition
- one of the following values:
int getVerticalTextPosition()
void setHorizontalTextPosition(int pHorizontalPosition)
pHorizontalPosition
- one of the following values:
int getHorizontalTextPosition()
boolean isBorderOnMouseEntered()
void setBorderOnMouseEntered(boolean pBorderOnMouseEntered)
pBorderOnMouseEntered
- true, if the border should only be shown on mouse entered.void setBorderPainted(boolean pBorderPainted)
true
, the border will be painted.
The default value is that the border will be painted.
pBorderPainted
- true
to paint the border, otherwise false
boolean isBorderPainted()
true
when the border will be painted, otherwise false
void setMouseOverImage(IImage pImage)
pImage
- the mouse over imageIImage getMouseOverImage()
void setPressedImage(IImage pImage)
pImage
- the mouse pressed imageIImage getPressedImage()
void setDefaultButton(boolean pDefault)
defaultButton
property.
The default button is the button which will be activated
when a UI-defined activation event (typically the Enter key)
occurs, regardless of whether or not the button
has keyboard focus (unless there is another component within
which consumes the activation event)
For default activation to work, the button must be enabled.
pDefault
- true
to set this button as default button, otherwise false
isDefaultButton()
boolean isDefaultButton()
defaultButton
property,
which if true
means that this button is the current
default button.
true
if this button is defined as default button, otherwise false
setDefaultButton(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |