|
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.toolbar.ToolbarInputField
| Field Summary | |
static String |
UI_ID
|
| Constructor Summary | |
ToolbarInputField(String name)
creates a toolbar inputfield with a specific name |
|
| Method Summary | |
ArrayList |
getAllValidators()
returns all validator defined for this component |
DataBCD |
getBCD()
get the DataBCD container from this InputField. |
DataDate |
getDate()
get the DataDate container from this InputField. |
protected String |
getEncodedIdForForm(Form theForm)
internal method to get additional data for encoding fields |
HorizontalTextAlignment |
getHAlign()
gets the alignment to be used for rendering this InputField. |
DataInteger |
getInteger()
get the DataInteger container from this InputField. |
String |
getLabelText()
returns the labeltext for the inputfield |
int |
getMaxLength()
returns the maximim number of character for the inputfield |
DataString |
getString()
get the DataString container from this InputField. |
ForcedTextDirection |
getTextDirection()
Gets the text direction for the component |
DataTime |
getTime()
get the DataTime container from this InputField. |
DataType |
getType()
gets the current DataType of this InputField. |
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
Object |
getValue()
get the value associated with this InputField |
AbstractDataType |
getValueAsDataType()
get the value the user entered as a AbstractDataType |
boolean |
getValueEncode()
|
String |
getWidth()
returns the width for the inputfield |
protected void |
initFromPageContext(IPageContext pc,
String baseId)
internal use only |
protected void |
initFromShortId(IPageContext pc,
String id)
internal use only |
void |
setBCD(Object bcd)
set the DataBCD container to this InputField. |
void |
setDate(Object date)
set the DataDate container for this InputField. |
void |
setHAlign(HorizontalTextAlignment align)
set the aligment to be used for rendering this InputField. |
void |
setInteger(Object integer)
set the Integer container to this InputField. |
void |
setLabelText(String labelText)
sets the labeltext for the button |
void |
setMaxLength(int maxLength)
sets the maximum number of character for the inputfield |
void |
setString(Object value)
sets a String value for this InputField. |
void |
setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component |
void |
setTime(Object time)
set the DataTime container from this InputField. |
void |
setType(DataType type)
sets the DataType for this InputField. |
void |
setValue(Object value)
set the value for this InputField |
void |
setWidth(String width)
sets the width for the inputfield |
| 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 |
getId, getParent, 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 |
public ToolbarInputField(String name)
name - the name/ID for this toolbar inputfield| Method Detail |
public int getMaxLength()
public void setMaxLength(int maxLength)
maxLength - the maximum length for the inputfield valuepublic String getWidth()
public void setWidth(String width)
width - the inputfield widthprotected String getEncodedIdForForm(Form theForm)
getEncodedIdForForm in class Component
protected void initFromShortId(IPageContext pc,
String id)
initFromShortId in class Componentid - the Id as it was returned by getEncodedIdForForm()
protected void initFromPageContext(IPageContext pc,
String baseId)
initFromPageContext in class Componentpc - the context, including the parametersbaseId - the prefix used for the component. (The
result of a former RenderUtil.getIdForForm(rc, c);)public Object getValue()
public void setValue(Object value)
value - the valuepublic void setType(DataType type)
type - the desired DataType for this InputFieldpublic DataType getType()
public void setString(Object value)
value - the value for this InputFieldpublic DataString getString()
If the DataType of the InputField has already been set to something other than DataString this will throw an IllegalStateException exception
IllegalStateException - if the InputField has a
different type than DataStringpublic void setDate(Object date)
public DataDate getDate()
If the DataType of the InputField has already been set to something other than DataDate this will throw an IllegalStateException exception
IllegalStateException - if the InputField has a
different type than DataDatepublic void setTime(Object time)
public DataTime getTime()
If the DataType of the InputField has already been set to something other than DataTime this will throw an IllegalStateException exception
IllegalStateException - if the InputField has a
different type than DataTimepublic void setBCD(Object bcd)
public DataBCD getBCD()
If the DataType of the InputField has already been set to something other than DataBCD this will throw an IllegalStateException exception
IllegalStateException - if the InputField has a
different type than DataBCDpublic void setInteger(Object integer)
public DataInteger getInteger()
If the DataInteger of the InputField has already been set to something other than DataInteger this will throw an IllegalStateException exception
IllegalStateException - if the InputField has a
different type than DataIntegerpublic AbstractDataType getValueAsDataType()
public ArrayList getAllValidators()
getAllValidators in interface IEventValidationComponentgetAllValidators in class EventValidationComponentpublic String getLabelText()
public void setLabelText(String labelText)
public String getUI()
getUI in class Componentpublic boolean getValueEncode()
public HorizontalTextAlignment getHAlign()
public void setHAlign(HorizontalTextAlignment align)
align - the design for this InputField.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 | |||||||||