com.plumtree.uiinfrastructure.pagecontrols.htmlpagecontrols
Class HTMLSelectDropDown

java.lang.Object
  extended by com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
      extended by com.plumtree.uiinfrastructure.pagecontrols.framework.AHTMLComponent
          extended by com.plumtree.uiinfrastructure.pagecontrols.htmlpagecontrols.HTMLSelectDropDown
All Implemented Interfaces:
IManagedObject, IMVCObject, IPageControl

public class HTMLSelectDropDown
extends AHTMLComponent
implements IPageControl

JF- Page Control for HTML Select Drop Down.

Author:
Julie Fournier

Field Summary
static int OPTION_TEXT
          JF- Index constant for array of options: text to display on option
static int OPTION_VALUE
          JF- Index constant for array of options: option value
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
m_ptPageMgr
 
Constructor Summary
HTMLSelectDropDown()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElementCollection GetComponentHTML()
          JF- Returns the HTML for this component.
protected  java.lang.String GetHTMLComponentBaseName()
          JF- Returns the base name of this HTML OpenComponent.
 java.lang.String GetName()
          Return the name of the MVC object.
 void Init(PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID, java.lang.String[][] _arrDropDownValueText, java.lang.String _strTitle)
          JF- Creates a new HTMLSelectDropDown object.
 void Init(PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID, XPArrayList _alOptions, java.lang.String _strTitle)
          Creates a new HTMLSelectDropDown object.
 void SetOptions(XPArrayList _alOptions)
           
 
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AHTMLComponent
AddValidator, GetComponentMgr, GetComponentMgrName, GetHTMLComponentName, GetHTMLComponentSize, GetHTMLComponentStyleClass, GetHTMLComponentValue, GetJSValidationCode, GetLabel, GetValidators, Init, SetHTMLComponentName, SetHTMLComponentSize, SetHTMLComponentStyleClass, SetHTMLComponentValue, SetLabel, SetParameters, StoreUserInput, Validate
 
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
AppendUniqueIDToElementName, GetComponentHeadContent, GetComponentPostContent, GetComponentPreContent, GetComponentPreFormContent, GetPageMgr, GetSubComponentHTMLByIndex, GetUniqueInstanceID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IPageControl
GetComponentMgr, GetComponentMgrName, GetUniqueInstanceID, StoreUserInput
 

Field Detail

OPTION_VALUE

public static final int OPTION_VALUE
JF- Index constant for array of options: option value

See Also:
Constant Field Values

OPTION_TEXT

public static final int OPTION_TEXT
JF- Index constant for array of options: text to display on option

See Also:
Constant Field Values

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

HTMLSelectDropDown

public HTMLSelectDropDown()
Method Detail

Init

public void Init(PageMgr _ptPageMgr,
                 java.lang.String _strUniqueInstanceID,
                 java.lang.String[][] _arrDropDownValueText,
                 java.lang.String _strTitle)
JF- Creates a new HTMLSelectDropDown object.

Parameters:
_ptPageMgr - PageManager
_strUniqueInstanceID - Unique Instance ID
_arrDropDownValueText - array of names and values for select dropdown
_strTitle - title of dropdown

Init

public void Init(PageMgr _ptPageMgr,
                 java.lang.String _strUniqueInstanceID,
                 XPArrayList _alOptions,
                 java.lang.String _strTitle)
Creates a new HTMLSelectDropDown object.

Parameters:
_ptPageMgr - PageManager
_strUniqueInstanceID - Unique Instance ID
_alOptions - XPArrayList of options for the select to use
_strTitle - title of dropdown

GetHTMLComponentBaseName

protected java.lang.String GetHTMLComponentBaseName()
JF- Returns the base name of this HTML OpenComponent.

Specified by:
GetHTMLComponentBaseName in class AHTMLComponent
Returns:
String

GetComponentHTML

public HTMLElementCollection GetComponentHTML()
JF- Returns the HTML for this component. The names and values of the options in the select dropdown are either specified by the array argument in the constructor or by the member variable m_alOptions which may be set with the SetOptions method, or initailized in the alternate constructor.

Specified by:
GetComponentHTML in interface IPageControl
Specified by:
GetComponentHTML in class AComponent
Returns:
HTMLElementCollection

GetName

public java.lang.String GetName()
Return the name of the MVC object.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class AComponent
Returns:
the name of the object.

Create

public java.lang.Object Create()
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Specified by:
Create in class AComponent
Returns:
A new instance of the managed class (i.e. return new Foo();)

SetOptions

public void SetOptions(XPArrayList _alOptions)
Parameters:
options - The m_alOptions to set.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.