|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.plumtree.remote.sci.SciTextElement
Represents a textbox control with a label and validation.
Constructor Summary | |
SciTextElement(java.lang.String fieldName,
java.lang.String labelText)
Valued constructor. |
Method Summary | |
org.w3c.dom.Node |
getRootNode()
Gets the root Node to add to the page. |
void |
setLabelStyle(TypeStyle labelStyle)
Sets the label style (important or normal). |
void |
setMandatoryValidation(java.lang.String message)
Sets mandatory validation for the control. |
void |
setRegExpValidation(java.lang.String message,
java.lang.String re,
TypeMatch matchType)
Sets regular expression validation for the control. |
void |
setSize(int size)
Sets the size of the input box in characters (e.g., 50). |
void |
setStorageType(TypeStorage storageType)
Sets the storage type (integer or string) |
void |
setValue(java.lang.String value)
Sets the value of this control. |
java.lang.String |
toString()
Writes the element to a string for debugging. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SciTextElement(java.lang.String fieldName, java.lang.String labelText)
Note that values retrieved from the portal using IDocFetchProvider.initialize(DataSourceInfo dsInfo) will be decoded in the process. To prevent + from being decoded into a space and % from having indeterminate behavior, make sure that all values entered into the datasource using SCI pages are encoded using com.plumtree.remote.util.CSPCodec. Likewise, all values that have been encoded in the SCI datasource pages should be decoded when displayed with SCI using Pcom.plumtree.remote.util.CSPCodec. If the developer is not using DocFetch this is not an issue.
fieldName
- name of field. The fieldName should be uppercase as the portal will uppercase all names in the NamedValue[] returned by IAdminEditor.finalize().labelText
- text to set to the left of the controlCSPCodec
Method Detail |
public void setSize(int size)
size
- size of control in characterspublic void setValue(java.lang.String value)
value
- field valuepublic void setStorageType(TypeStorage storageType)
storageType
- TypeStorage
public void setLabelStyle(TypeStyle labelStyle)
labelStyle
- TypeStyle
public void setMandatoryValidation(java.lang.String message)
message
- to display in the JavaScript alert if the field is emptypublic void setRegExpValidation(java.lang.String message, java.lang.String re, TypeMatch matchType)
message
- message to display in the JavaScript alert if validation failsre
- regular expression to matchmatchType
- TypeMatch
(match or not-match)public org.w3c.dom.Node getRootNode()
Node
to add to the page.
getRootNode
in interface ISciElement
Node
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©2007 BEA Systems, Inc. All Rights Reserved.