com.plumtree.uiinfrastructure.pagecontrols.htmlpagecontrols
Class HTMLCheckBoxPlus

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

public class HTMLCheckBoxPlus
extends AHTMLComponent
implements IPageControl

Check box page control handles display and values of a check box.

Author:
CaiusV

Field Summary
protected  boolean bChecked
          hold this check box's 'checked' state
 HTMLInput m_ptHTMLInput
          the HTMLInput object this wraps
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
HTMLCheckBoxPlus()
          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.
 java.lang.String GetDescription()
           
protected  java.lang.String GetHTMLComponentBaseName()
          Returns the base name of this HTML Component.
 HTMLImg GetIcon()
           
 java.lang.String GetName()
          Return the name of the MVC object.
 ASURL GetURL()
           
 void Init(PageMgr _ptPageMgr, java.lang.String _strUniqueInstanceID, java.lang.String _strValue)
          Initializes a new HTMLCheckBoxPlus object.
 boolean IsChecked()
          Returns the boolean checked attribute of this checkbox.
 void SetChecked(boolean isChecked)
          Sets the boolean checked attribute of this checkbox.
 void SetDescription(java.lang.String description)
           
 void SetIcon(HTMLImg icon)
           
 void SetURL(ASURL m_pturl)
           
 
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

STR_MVC_CLASS_NAME

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

See Also:
Constant Field Values

bChecked

protected boolean bChecked
hold this check box's 'checked' state


m_ptHTMLInput

public HTMLInput m_ptHTMLInput
the HTMLInput object this wraps

Constructor Detail

HTMLCheckBoxPlus

public HTMLCheckBoxPlus()
Default constructor. Creates a new HTMLCheckBox object.

Method Detail

Init

public void Init(PageMgr _ptPageMgr,
                 java.lang.String _strUniqueInstanceID,
                 java.lang.String _strValue)
Initializes a new HTMLCheckBoxPlus object.

Parameters:
_ptPageMgr - PageManager
_strUniqueInstanceID - Unique Instance ID
_strCols - Check Box Value

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:

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.

GetIcon

public HTMLImg GetIcon()
Returns:
Returns the m_ptIcon.

SetIcon

public void SetIcon(HTMLImg icon)
Parameters:
icon - The m_ptIcon to set.

GetURL

public ASURL GetURL()
Returns:
Returns the m_ptURL.

SetURL

public void SetURL(ASURL m_pturl)
Parameters:
m_pturl - The m_ptURL to set.

GetDescription

public java.lang.String GetDescription()
Returns:
Returns the m_sDescription.

SetDescription

public void SetDescription(java.lang.String description)
Parameters:
description - The m_sDescription to set.

SetChecked

public void SetChecked(boolean isChecked)
Sets the boolean checked attribute of this checkbox.

Parameters:
isChecked - boolean

IsChecked

public boolean IsChecked()
Returns the boolean checked attribute of this checkbox.

Parameters:
isChecked - boolean



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