|
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.InputField
A field where the user can enter data.
Copyright 2004 SAP AG
| Field Summary | |
static String |
UI_ID
|
| Constructor Summary | |
InputField()
Create a new InputField use setId to set the id of the component afterwards |
|
InputField(String name)
Create a new InputField with a given ID |
|
| 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. |
InputFieldDesign |
getDesign()
get the design to be used for the InputField |
protected String |
getEncodedIdForForm(Form theForm)
internal method to get additional data for encoding fields |
int |
getFirstDayOfWeek()
|
HorizontalTextAlignment |
getHAlign()
gets the alignment to be used for rendering this InputField. |
DataInteger |
getInteger()
get the DataInteger container from this InputField. |
Component |
getLabel()
|
int |
getMaxlength()
gets the maximum length for the allowed input in characters Note: some user agents may ignore this setting. |
int |
getMinlength()
gets the maximum length for the allowed input in characters Note: some user agents may ignore this setting. |
boolean |
getParkInSession()
|
int |
getSize()
gets the size of 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. |
String |
getTooltip()
gets the Tooltip for this TextView. |
DataType |
getType()
gets the current DataType of this InputField. |
String |
getUI()
get a identification String for the renderer for this component. |
Object |
getValue()
get the value associated with this InputField |
AbstractDataType |
getValueAsDataType()
get the value the user entered as a AbstractDataType |
boolean |
getValueEncode()
|
ValueHelpContext |
getValueHelpContext()
returns the valueHelpContext |
String |
getWidth()
get the width of the input field |
protected void |
initFromPageContext(IPageContext pc,
String baseId)
internal use only. |
protected void |
initFromShortId(IPageContext pc,
String id)
internal use only. |
boolean |
isEnabled()
return if this button is currently disabled |
boolean |
isInvalid()
Deprecated. checks if this component should represent an invalid value. It is up to the rendering how invalid InputFields should be represented. The default is to use a red border instead of a gray one. |
boolean |
isLabeled()
checks if a label has been assigned to this component. |
boolean |
isPassword()
Determines whether this component is a password field. |
boolean |
isRequired()
gets the required flag of the InputField. |
boolean |
isRequiresValidation()
returns if the inputfield requires validation |
boolean |
isShowHelp()
check if some kind of help should be displayed for the InputField |
boolean |
isShowValueHelp()
check if this input filed has an associated value help application or not |
boolean |
isValid()
checks if this component should represent an invalid value. |
boolean |
isVisible()
Determines whether this component is visible. |
void |
setBCD(Object bcd)
|
void |
setDate(Object date)
|
void |
setDesign(InputFieldDesign design)
set the design to be used for the InputField |
void |
setEnabled(boolean enabled)
enable/disable the inputfield |
void |
setFirstDayOfWeek(int firstDayOfWeek)
|
void |
setHAlign(HorizontalTextAlignment align)
set the aligment to be used for rendering this InputField. |
void |
setInteger(Object integer)
|
void |
setInvalid(boolean invalid)
Deprecated. |
void |
setLabel(Component label)
|
void |
setLabeled(boolean isLabeled)
notify the component that a label has been assigned to it. |
void |
setMaxlength(int maxlength)
sets the maximum length for the allowed input in characters Note: some user agents may ignore this setting. |
void |
setMinlength(int minlength)
sets the maximum length for the allowed input in characters Note: some user agents may ignore this setting. |
void |
setParkInSession(boolean parkInSession)
|
void |
setPassword(boolean password)
sets this component to a password field. |
void |
setRequired(boolean required)
sets the required flag of the InputField. |
void |
setRequiresValidation(boolean requiresValidation)
determines if the inputfield requires validation |
void |
setShowHelp(boolean showHelp)
sets if some kind of help should be displayed for the InputField |
void |
setShowValueHelp(boolean showValueHelp)
determines if the input field has a value help application associated with it or not |
void |
setSize(int size)
sets the size of 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)
|
void |
setTooltip(String tooltip)
sets the Tooltip for this TextView. |
void |
setType(DataType type)
sets the DataType for this InputField. |
void |
setValid(boolean valid)
|
void |
setValue(Object value)
set the value for this InputField |
void |
setValueEncode(boolean encode)
|
void |
setValueHelpContext(ValueHelpContext valueHelpContext)
sets the value help context |
void |
setVisible(boolean visible)
sets this component to visible or invisible. |
void |
setWidth(String width)
set the width of the input field |
| Methods inherited from class com.sapportals.htmlb.EventValidationComponent |
getClientEvent, getClientEventMap, getErrorText, getServerEvent, getServerEventMap, getValidator, isDisabled, renderJavascriptInterface, setClientEvent, setDisabled, setErrorText, 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 InputField()
public InputField(String name)
name - the ID for the InputField| Method Detail |
public String getUI()
getUI in class Componentprotected String getEncodedIdForForm(Form theForm)
getEncodedIdForForm in class Component
protected void initFromShortId(IPageContext pc,
String id)
Component
initFromShortId in class Componentid - the Id as it was returned by getEncodedIdForForm()
protected void initFromPageContext(IPageContext pc,
String baseId)
Component
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()
getValueAsDataType in interface IUserDataComponentpublic ArrayList getAllValidators()
getAllValidators in interface IEventValidationComponentgetAllValidators in class EventValidationComponentpublic String getTooltip()
public void setTooltip(String tooltip)
tooltip - the tooltip textpublic boolean isVisible()
public void setVisible(boolean visible)
visible - true if the InputField
should be visiblepublic boolean isPassword()
public void setPassword(boolean password)
password - true if the InputField
should be a password fieldpublic boolean isValid()
public void setValid(boolean valid)
public boolean isInvalid()
public void setInvalid(boolean invalid)
invalid - true if the InputField contains an
invalid valuepublic boolean isRequired()
TextView.isRequired()public void setRequired(boolean required)
required - true if the InputField contains an
invalid valueTextView.setRequired(boolean)public int getSize()
public void setSize(int size)
size - the size of the InputField in characterssetWidth(String)public int getMaxlength()
public void setMaxlength(int maxlength)
maxlength - the maximum length for the inputpublic int getMinlength()
public void setMinlength(int minlength)
public boolean isShowHelp()
public void setShowHelp(boolean showHelp)
showHelp - true if help should be displayedpublic int getFirstDayOfWeek()
public void setFirstDayOfWeek(int firstDayOfWeek)
firstDayOfWeek - the first day of the week. Monday
is 1, Sunday is either 0 or 7.public InputFieldDesign getDesign()
public void setDesign(InputFieldDesign design)
design - the designpublic String getWidth()
public void setWidth(String width)
width - the width of the input fieldpublic void setLabeled(boolean isLabeled)
LabeledComponent
setLabeled in interface LabeledComponentpublic boolean isLabeled()
LabeledComponent
isLabeled in interface LabeledComponentpublic boolean getValueEncode()
public void setValueEncode(boolean encode)
public boolean isShowValueHelp()
public void setShowValueHelp(boolean showValueHelp)
public boolean isRequiresValidation()
isRequiresValidation in interface IEventValidationComponentisRequiresValidation in class EventValidationComponentpublic void setRequiresValidation(boolean requiresValidation)
setRequiresValidation in class EventValidationComponentpublic ValueHelpContext getValueHelpContext()
public void setValueHelpContext(ValueHelpContext valueHelpContext)
public void setParkInSession(boolean parkInSession)
public boolean getParkInSession()
public Component getLabel()
public void setLabel(Component label)
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.ForcedTextDirectionpublic void setEnabled(boolean enabled)
setEnabled in interface IEventValidationComponentsetEnabled in class EventValidationComponentenabled - public boolean isEnabled()
EventValidationComponent
isEnabled in interface IEventValidationComponentisEnabled in class EventValidationComponent
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||