|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro AbstractInputField API.
Abstract base class of input fields.
Used to display and edit a single line of text.
The edited value is given by the property value.
If the readOnly property is set to true the value
may not be edited.
The passwordField property is used to enter text that
should not be visible when edited.
The length property determines the width of the field
measured in characters.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
| Field Summary | |
static WDInputFieldAlignment |
DEFAULT_ALIGNMENT
Default value of property alignment. |
static int |
DEFAULT_LENGTH
Default value of property length. |
static boolean |
DEFAULT_PASSWORD_FIELD
Default value of property passwordField. |
static boolean |
DEFAULT_READ_ONLY
Default value of property readOnly. |
static WDState |
DEFAULT_STATE
Default value of property state. |
static WDTextDirection |
DEFAULT_TEXT_DIRECTION
Default value of property textDirection. |
static java.lang.String |
DEFAULT_WIDTH
Default value of property width. |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
bindAlignment(IWDAttributeInfo attributeInfo)
Binds property alignment to the context attribute
specified by the given attribute info. |
void |
bindAlignment(java.lang.String path)
Binds property alignment to the context attribute
specified by path. |
java.lang.String |
bindingOfAlignment()
Binding path of property alignment. |
java.lang.String |
bindingOfLength()
Binding path of property length. |
java.lang.String |
bindingOfPasswordField()
Binding path of property passwordField. |
java.lang.String |
bindingOfReadOnly()
Binding path of property readOnly. |
java.lang.String |
bindingOfState()
Binding path of property state. |
java.lang.String |
bindingOfTextDirection()
Binding path of property textDirection. |
java.lang.String |
bindingOfValue()
Note: This property must be bound to the context! Binding path of property value. |
java.lang.String |
bindingOfWidth()
Binding path of property width. |
void |
bindLength(IWDAttributeInfo attributeInfo)
Binds property length to the context attribute
specified by the given attribute info. |
void |
bindLength(java.lang.String path)
Binds property length to the context attribute
specified by path. |
void |
bindPasswordField(IWDAttributeInfo attributeInfo)
Binds property passwordField to the context attribute
specified by the given attribute info. |
void |
bindPasswordField(java.lang.String path)
Binds property passwordField to the context attribute
specified by path. |
void |
bindReadOnly(IWDAttributeInfo attributeInfo)
Binds property readOnly to the context attribute
specified by the given attribute info. |
void |
bindReadOnly(java.lang.String path)
Binds property readOnly to the context attribute
specified by path. |
void |
bindState(IWDAttributeInfo attributeInfo)
Binds property state to the context attribute
specified by the given attribute info. |
void |
bindState(java.lang.String path)
Binds property state to the context attribute
specified by path. |
void |
bindTextDirection(IWDAttributeInfo attributeInfo)
Binds property textDirection to the context attribute
specified by the given attribute info. |
void |
bindTextDirection(java.lang.String path)
Binds property textDirection to the context attribute
specified by path. |
void |
bindValue(IWDAttributeInfo attributeInfo)
Note: This property must be bound to the context! Binds property value to the context attribute
specified by the given attribute info. |
void |
bindValue(java.lang.String path)
Note: This property must be bound to the context! Binds property value to the context attribute
specified by path. |
void |
bindWidth(IWDAttributeInfo attributeInfo)
Binds property width to the context attribute
specified by the given attribute info. |
void |
bindWidth(java.lang.String path)
Binds property width to the context attribute
specified by path. |
WDInputFieldAlignment |
getAlignment()
Returns the value of the alignment property. |
int |
getLength()
Returns the value of the length property. |
IWDAction |
getOnEnter()
Returns the action to which the event onEnter is mapped. |
boolean |
getPasswordField()
Returns the value of the passwordField property. |
boolean |
getReadOnly()
Returns the value of the readOnly property. |
WDState |
getState()
Returns the value of the state property. |
WDTextDirection |
getTextDirection()
Returns the value of the textDirection property. |
java.lang.String |
getValue()
Note: This property must be bound to the context! Returns the value of the value property. |
java.lang.String |
getWidth()
Returns the value of the width property. |
IWDParameterMapping |
mappingOfOnEnter()
Returns the parameter mapping of event onEnter. |
void |
setAlignment(WDInputFieldAlignment value)
Sets property alignment to the new value. |
void |
setLength(int value)
Sets property length to the new value. |
void |
setOnEnter(IWDAction action)
Maps the event onEnter to the given action. |
void |
setPasswordField(boolean value)
Sets property passwordField to the new value. |
void |
setReadOnly(boolean value)
Sets property readOnly to the new value. |
void |
setState(WDState value)
Sets property state to the new value. |
void |
setTextDirection(WDTextDirection value)
Sets property textDirection to the new value. |
void |
setValue(java.lang.String value)
Note: This property must be bound to the context! Sets property value to the new value. |
void |
setWidth(java.lang.String value)
Sets property width to the new value. |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
bindEnabled, bindEnabled, bindingOfEnabled, bindingOfTooltip, bindingOfVisible, bindTooltip, bindTooltip, bindVisible, bindVisible, createLayoutData, getContainer, getEnabled, getLayoutData, getTooltip, getVisible, setEnabled, setTooltip, setVisible |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
getId, getView, requestFocus |
| Field Detail |
public static final WDInputFieldAlignment DEFAULT_ALIGNMENT
alignment.public static final int DEFAULT_LENGTH
length.public static final boolean DEFAULT_PASSWORD_FIELD
passwordField.public static final boolean DEFAULT_READ_ONLY
readOnly.public static final WDState DEFAULT_STATE
state.public static final WDTextDirection DEFAULT_TEXT_DIRECTION
textDirection.public static final java.lang.String DEFAULT_WIDTH
width.| Method Detail |
public IWDAction getOnEnter()
onEnter is mapped.
The action performed when enter is pressedmappingOfOnEnter()public void setOnEnter(IWDAction action)
onEnter to the given action.action - the action for the eventgetOnEnter()public IWDParameterMapping mappingOfOnEnter()
onEnter.
To be accessible in a view controller, a UI element event parameter has to be mapped to a controller event handler parameter. This is done by defining a parameter mapping.
Event parameters:getOnEnter()public void bindAlignment(java.lang.String path)
alignment to the context attribute
specified by path.path - the path of the context attribute to which the alignment
property is boundpublic void bindAlignment(IWDAttributeInfo attributeInfo)
alignment to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
alignment property is boundpublic java.lang.String bindingOfAlignment()
alignment.public WDInputFieldAlignment getAlignment()
alignment property.
The initial value is WDInputFieldAlignment.AUTO.
The alignment of the input field text.setAlignment(WDInputFieldAlignment)public void setAlignment(WDInputFieldAlignment value)
alignment to the new value.value - the new value of the alignment propertygetAlignment()public void bindLength(java.lang.String path)
length to the context attribute
specified by path.path - the path of the context attribute to which the length
property is boundpublic void bindLength(IWDAttributeInfo attributeInfo)
length to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
length property is boundpublic java.lang.String bindingOfLength()
length.public int getLength()
length property.
The initial value is null.
Determines the length of this input field in characters.setLength(int)public void setLength(int value)
length to the new value.value - the new value of the length propertygetLength()public void bindPasswordField(java.lang.String path)
passwordField to the context attribute
specified by path.path - the path of the context attribute to which the passwordField
property is boundpublic void bindPasswordField(IWDAttributeInfo attributeInfo)
passwordField to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
passwordField property is boundpublic java.lang.String bindingOfPasswordField()
passwordField.public boolean getPasswordField()
passwordField property.
The initial value is false.
If set to true, the entered characters are not echoed in the field.setPasswordField(boolean)public void setPasswordField(boolean value)
passwordField to the new value.value - the new value of the passwordField propertygetPasswordField()public void bindReadOnly(java.lang.String path)
readOnly to the context attribute
specified by path.path - the path of the context attribute to which the readOnly
property is boundpublic void bindReadOnly(IWDAttributeInfo attributeInfo)
readOnly to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
readOnly property is boundpublic java.lang.String bindingOfReadOnly()
readOnly.public boolean getReadOnly()
readOnly property.
The initial value is false.
Determines if the input field is editable or not.setReadOnly(boolean)public void setReadOnly(boolean value)
readOnly to the new value.value - the new value of the readOnly propertygetReadOnly()public void bindState(java.lang.String path)
state to the context attribute
specified by path.path - the path of the context attribute to which the state
property is boundpublic void bindState(IWDAttributeInfo attributeInfo)
state to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
state property is boundpublic java.lang.String bindingOfState()
state.public WDState getState()
state property.
The initial value is WDState.NORMAL.
The state of the input field. This is only a hint used by the renderer.
For example, if the input field state is set to required,
this is not tested by the framework, but has to be checked by the application.setState(WDState)public void setState(WDState value)
state to the new value.value - the new value of the state propertygetState()public void bindTextDirection(java.lang.String path)
textDirection to the context attribute
specified by path.path - the path of the context attribute to which the textDirection
property is boundpublic void bindTextDirection(IWDAttributeInfo attributeInfo)
textDirection to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
textDirection property is boundpublic java.lang.String bindingOfTextDirection()
textDirection.public WDTextDirection getTextDirection()
textDirection property.
The initial value is WDTextDirection.INHERIT.
Determines the direction of displayed text.setTextDirection(WDTextDirection)public void setTextDirection(WDTextDirection value)
textDirection to the new value.value - the new value of the textDirection propertygetTextDirection()public void bindValue(java.lang.String path)
value to the context attribute
specified by path.path - the path of the context attribute to which the value
property is boundpublic void bindValue(IWDAttributeInfo attributeInfo)
value to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
value property is boundpublic java.lang.String bindingOfValue()
value.public java.lang.String getValue()
value property.
The initial value is "".
Determines the edited data value.setValue(String)public void setValue(java.lang.String value)
value to the new value.value - the new value of the value propertygetValue()public void bindWidth(java.lang.String path)
width to the context attribute
specified by path.path - the path of the context attribute to which the width
property is boundpublic void bindWidth(IWDAttributeInfo attributeInfo)
width to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
width property is boundpublic java.lang.String bindingOfWidth()
width.public java.lang.String getWidth()
width property.
The initial value is "".
The width (CSS size) of a InputField.setWidth(String)public void setWidth(java.lang.String value)
width to the new value.value - the new value of the width propertygetWidth()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||