|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.EventValidationComponent
com.sapportals.htmlb.Button
A single button
Copyright 2004 SAP AG
| Field Summary | |
static String |
UI_ID
|
| Constructor Summary | |
protected |
Button()
|
|
Button(String name)
create a new button with a given name |
|
Button(String name,
String text)
create a new button with a given name |
| Method Summary | |
ArrayList |
getAllValidators()
returns the validators |
ButtonDesign |
getDesign()
set the design to be used for rendering this button. |
InputField |
getFieldToTransferDataFrom()
return the id of the field from which the data should be trabsfered into the window launching the value help |
String |
getOnClick()
get the event name |
String |
getOnClientClick()
get the JavaScript fragment that is executed on the client side if the user changes the selection |
String |
getText()
get the text of this button |
ForcedTextDirection |
getTextDirection()
Gets the text direction for the component |
String |
getTooltip()
get the tooltip of this button |
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
String |
getWidth()
get the width of this button |
boolean |
isCancelButton()
return if this button is an CancelButton Cancel Buttons get a special validator that checks for changes discarded |
boolean |
isDataTransferingButton()
returns if the button is used to tranfer data |
boolean |
isEncode()
check if text should be encoded (default) or treated as native HTML. |
boolean |
isOKButton()
return if this button is an OKButton OK Buttons get a special validator that runs validation on all input fields |
void |
setCancelButton(boolean CancelButton)
Cancel Buttons get a special validator that checks for changes discarded |
void |
setDataTransferingButton(boolean dataTransferingButton)
determines if the button is used to tranfer data |
void |
setDesign(ButtonDesign design)
set the design to be used for rendering this button. |
void |
setEncode(boolean encode)
sets if text should be encoded (default) or treated as native HTML. |
void |
setFieldToTransferDataFrom(InputField fieldToTransferDataFrom)
return the id of the field from which the data should be trabsfered into the window launching the value help |
void |
setOKButton(boolean OKButton)
OK Buttons get a special validator that runs validation on all input fields |
void |
setOnClick(String onClick)
set the event name that is fired when the user clicks on this button |
void |
setOnClientClick(String onClientClick)
set a Javascript fragment that is executed when the user clicks on this button |
void |
setText(String text)
set the text of this button |
void |
setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component |
void |
setTooltip(String tooltip)
set the tooltip of this button |
void |
setWidth(String width)
set the width of this button. |
| Methods inherited from class com.sapportals.htmlb.EventValidationComponent |
getClientEvent, getClientEventMap, getErrorText, getServerEvent, getServerEventMap, getValidator, isDisabled, isEnabled, isRequiresValidation, renderJavascriptInterface, setClientEvent, setDisabled, setEnabled, setErrorText, setRequiresValidation, setServerEvent, setValidator |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
| Constructor Detail |
protected Button()
public Button(String name)
name - the name/ID for this button
public Button(String name,
String text)
name - the name/ID for this button| Method Detail |
public String getUI()
getUI in class Componentpublic String getText()
public void setText(String text)
text - the text for this buttonpublic String getTooltip()
public void setTooltip(String tooltip)
tooltip - the tooltip for this buttonpublic String getOnClick()
public void setOnClick(String onClick)
onClick - the name of the eventpublic String getOnClientClick()
public void setOnClientClick(String onClientClick)
onClientClick - the Javascriptpublic boolean isOKButton()
public void setOKButton(boolean OKButton)
OKButton - true if the button should enforce validationpublic boolean isCancelButton()
public void setCancelButton(boolean CancelButton)
CancelButton - true if the button should ask when discarding changespublic ArrayList getAllValidators()
getAllValidators in interface IEventValidationComponentgetAllValidators in class EventValidationComponentpublic boolean isEncode()
public void setEncode(boolean encode)
encode - true if the text should be encoded, else falsepublic String getWidth()
public void setWidth(String width)
public ButtonDesign getDesign()
public void setDesign(ButtonDesign design)
design - the design for this button.public InputField getFieldToTransferDataFrom()
public void setFieldToTransferDataFrom(InputField fieldToTransferDataFrom)
public boolean isDataTransferingButton()
public void setDataTransferingButton(boolean dataTransferingButton)
public ForcedTextDirection getTextDirection()
public void setTextDirection(ForcedTextDirection textDirection)
textDirection - com.sapportals.htmlb.enum.ForcedTextDirection
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||