com.plumtree.uiinfrastructure.pagecontrols.htmlpagecontrols
Class HTMLTextAndDropDown

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.HTMLTextAndDropDown
All Implemented Interfaces:
IManagedObject, IMVCObject, IPageControl

public class HTMLTextAndDropDown
extends AHTMLComponent
implements IPageControl

HTMLTextAndDropDown page control handles display and values of a page control made up of a text box and a select dropdown.

Author:
CaiusV

Field Summary
 HTMLSelectDropDown m_SelectDropDown
          the selectdropdown for this object
 HTMLTextBox m_TextBox
          the textbox for this object
static java.lang.String STR_MVC_CLASS_NAME
          class name constant
 
Fields inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AComponent
m_ptPageMgr
 
Constructor Summary
HTMLTextAndDropDown()
          Default constructor.
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElementCollection GetComponentHTML()
          Returns the HTML for this component.
protected  java.lang.String GetHTMLComponentBaseName()
          Returns the base name of this HTML Component.
 java.lang.String GetHTMLComponentValue()
          Return the component values of the TextBox and SelectDropdown separated by a space.
 java.lang.String GetName()
          Return the name of the MVC object.
 void Init(PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID, java.lang.String[][] _arrDropDownValueText)
          Initializes a new HTMLTextAndDropDown object.
 
Methods inherited from class com.plumtree.uiinfrastructure.pagecontrols.framework.AHTMLComponent
AddValidator, GetComponentMgr, GetComponentMgrName, GetHTMLComponentName, GetHTMLComponentSize, GetHTMLComponentStyleClass, 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

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
class name constant

See Also:
Constant Field Values

m_TextBox

public HTMLTextBox m_TextBox
the textbox for this object


m_SelectDropDown

public HTMLSelectDropDown m_SelectDropDown
the selectdropdown for this object

Constructor Detail

HTMLTextAndDropDown

public HTMLTextAndDropDown()
Default constructor. Creates a new HTMLTextAndDropDown object.

Method Detail

Init

public void Init(PageMgr _ptPageMgr,
                 java.lang.String _strUniqueInstanceID,
                 java.lang.String[][] _arrDropDownValueText)
Initializes a new HTMLTextAndDropDown object. Creates and initializes the HTMLTextBox and HTMLSelectDropdown objects contained by this object.

Parameters:
_ptPageMgr - The component manager for this component
_strUniqueInstanceID - The unique ID for this component.
_arrDropDownValueText - The dropdown values

GetHTMLComponentBaseName

protected java.lang.String GetHTMLComponentBaseName()
Returns the base name of this HTML Component.

Specified by:
GetHTMLComponentBaseName in class AHTMLComponent
Returns:
String

GetComponentHTML

public HTMLElementCollection GetComponentHTML()
Returns the HTML for this component.

Specified by:
GetComponentHTML in interface IPageControl
Specified by:
GetComponentHTML in class AComponent
Returns:
HTML for this object

GetHTMLComponentValue

public java.lang.String GetHTMLComponentValue()
Return the component values of the TextBox and SelectDropdown separated by a space.

Overrides:
GetHTMLComponentValue in class AHTMLComponent
Returns:
String

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();)

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.



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