com.plumtree.remote.sci
Class SciSelectElement

java.lang.Object
  extended bycom.plumtree.remote.sci.SciSelectElement
All Implemented Interfaces:
ISciElement

public class SciSelectElement
extends java.lang.Object
implements ISciElement

Represents a select (drop-down) control.


Constructor Summary
SciSelectElement(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 setSelectedValue(java.lang.String value)
          Sets the selected value.
 void setStorageType(TypeStorage storageType)
          Sets the storage type (e.g., integer).
 void setValue(NamedValue[] values)
          Sets the NamedValue list of values.
 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

SciSelectElement

public SciSelectElement(java.lang.String fieldName,
                        java.lang.String labelText)
Valued constructor

Parameters:
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 display to the left of the control
Method Detail

setSelectedValue

public void setSelectedValue(java.lang.String value)
Sets the selected value.

Parameters:
value - selected value

setValue

public void setValue(NamedValue[] values)
Sets the NamedValue list of values. (Similar to an OPTION array in HTML.)

Parameters:
values - NamedValue of options

setStorageType

public void setStorageType(TypeStorage storageType)
Sets the storage type (e.g., integer).

Parameters:
storageType - TypeStorage

setLabelStyle

public void setLabelStyle(TypeStyle labelStyle)
Sets the label style (important or normal).

Parameters:
labelStyle - TypeStyle

setMandatoryValidation

public void setMandatoryValidation(java.lang.String message)
Sets mandatory validation for the control.

Parameters:
message - to display in the JavaScript alert if the field is empty

setRegExpValidation

public void setRegExpValidation(java.lang.String message,
                                java.lang.String re,
                                TypeMatch matchType)
Sets regular expression validation for the control.

Parameters:
message - message to display in the JavaScript alert if validation fails
re - regular expression to match
matchType - TypeMatch (match or not-match)

getRootNode

public org.w3c.dom.Node getRootNode()
Gets the root Node to add to the page.

Specified by:
getRootNode in interface ISciElement
Returns:
root Node

toString

public java.lang.String toString()
Writes the element to a string for debugging.

Returns:
string


For additional information on the IDK, including tutorials, blogs, code samples and more,see the AquaLogic User Interaction Developer Center on BEA dev2dev.

Copyright ©2007 BEA Systems, Inc. All Rights Reserved.