|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.web.impl.WebResource
com.sibvisions.rad.ui.web.impl.WebComponent
com.sibvisions.rad.ui.web.impl.component.AbstractWebActionComponent
com.sibvisions.rad.ui.web.impl.component.WebButton
public class WebButton
Web server implementation of IButton.
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.web.impl.WebComponent |
|---|
componentId |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
WebButton()
Creates a new instance of WebButton. |
|
| 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. |
WebImage |
getMouseOverImage()
Gets the image for the button when the mouse is over. |
WebImage |
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 pDefaultButton)
Sets the defaultButton property. |
void |
setHorizontalTextPosition(int pHorizontalTextPosition)
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 pMouseOverImage)
Sets the image for the button when the mouse is over. |
void |
setPressedImage(IImage pMousePressedImage)
Sets the image for the button when the button is pressed. |
void |
setVerticalTextPosition(int pVerticalTextPosition)
Sets the vertical position of the text relative to the icon. |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.component.AbstractWebActionComponent |
|---|
eventAction, getAccelerator, getActionCommand, getImage, getMargins, getText, setAccelerator, setActionCommand, setImage, setMargins, setText |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource |
|---|
getNullableAsString, getResource, setAsString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, 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, setImage |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
| 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 WebButton()
WebButton.
IButton| Method Detail |
|---|
public int getImageTextGap()
getImageTextGap in interface IButtonIButton.setImageTextGap(int)public void setImageTextGap(int pImageTextGap)
The default value of this property is 4 pixels.
This is a JavaBeans bound property.
setImageTextGap in interface IButtonpImageTextGap - the image gapIButton.getImageTextGap()public int getVerticalTextPosition()
getVerticalTextPosition in interface IButtonpublic void setVerticalTextPosition(int pVerticalTextPosition)
setVerticalTextPosition in interface IButtonpVerticalTextPosition - one of the following values:
public int getHorizontalTextPosition()
getHorizontalTextPosition in interface IButtonpublic void setHorizontalTextPosition(int pHorizontalTextPosition)
setHorizontalTextPosition in interface IButtonpHorizontalTextPosition - one of the following values:
public boolean isBorderOnMouseEntered()
isBorderOnMouseEntered in interface IButtonpublic void setBorderOnMouseEntered(boolean pBorderOnMouseEntered)
setBorderOnMouseEntered in interface IButtonpBorderOnMouseEntered - true, if the border should only be shown on mouse entered.public boolean isBorderPainted()
isBorderPainted in interface IButtontrue when the border will be painted, otherwise falsepublic void setBorderPainted(boolean pBorderPainted)
true, the border will be painted.
The default value is that the border will be painted.
setBorderPainted in interface IButtonpBorderPainted - true to paint the border, otherwise falsepublic WebImage getMouseOverImage()
getMouseOverImage in interface IButtonpublic void setMouseOverImage(IImage pMouseOverImage)
setMouseOverImage in interface IButtonpMouseOverImage - the mouse over imagepublic WebImage getPressedImage()
getPressedImage in interface IButtonpublic void setPressedImage(IImage pMousePressedImage)
setPressedImage in interface IButtonpMousePressedImage - the mouse pressed imagepublic boolean isDefaultButton()
defaultButton property,
which if true means that this button is the current
default button.
isDefaultButton in interface IButtontrue if this button is defined as default button, otherwise falseIButton.setDefaultButton(boolean)public void setDefaultButton(boolean pDefaultButton)
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.
setDefaultButton in interface IButtonpDefaultButton - true to set this button as default button, otherwise falseIButton.isDefaultButton()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||