com.plumtree.xpshared.htmlelements
Class HTMLGenericInputElement

java.lang.Object
  extended by com.plumtree.xpshared.htmlelements.HTMLElement
      extended by com.plumtree.xpshared.htmlelements.HTMLGenericInputElement
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
HTMLInput, HTMLSelect, HTMLTextArea

public abstract class HTMLGenericInputElement
extends HTMLElement

Classes that implement objects that can be used to obtain Strings that will render HTML elements that can be used to send name/value pairs in an HTTP request to a server may extend this abstract class.

This class implements some functionality common to all such html elements.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.plumtree.xpshared.htmlelements.HTMLElement
HTMLElement.ValidationLevel
 
Field Summary
 
Fields inherited from class com.plumtree.xpshared.htmlelements.HTMLElement
aNewLine, bAllowEvents, bAllowSetStyleClassWithString, bCheckNestedStringForHTML, bDisplayDidPause, bEnforceMaxTableDepth, bForceFormattingOff, bForceFormattingOn, bPauseAfterDisplay, bPrintComments, bResumingAndChildFinished, bResumingAndChildInMidRender, bShowLang, iMaxTableDepth, sLangLocal, sNewLine, sTab
 
Constructor Summary
HTMLGenericInputElement()
          Creates a new HTMLGenericInputElement object.
 
Method Summary
 java.lang.String GetOnBlur()
          Get the value of the onblur attribute.
 java.lang.String GetOnChange()
          Get the value of the onchange attribute.
 java.lang.String GetOnFocus()
          Get the value of the onfocus attribute.
 java.lang.String GetValue()
          Get the value of the value attribute.
 void SetName(java.lang.String s)
          Override HTMLElement.SetName.
 void SetOnBlur(java.lang.String s)
          Set the value of the onblur attribute.
 void SetOnChange(java.lang.String s)
          Set the value of the onchange attribute.
 void SetOnFocus(java.lang.String s)
          Set the value of the onfocus attribute.
 void SetValidateName(boolean b)
           
 void SetValue(java.lang.String s)
          Set the value of the value attribute.
abstract  void ValidateName(java.lang.String s)
          This method must be implemented by concrete subclasses to throw an HTMLException if the name attribute of this element does not meet the standards of this particular concrete class.
 
Methods inherited from class com.plumtree.xpshared.htmlelements.HTMLElement
AddInnerHTMLElement, AddInnerHTMLEncodedString, AddInnerHTMLString, AppendBeginningOfOpeningTag, AppendClosingLineBreak, AppendClosingTag, CleanupHTMLSubtreeAfterRendering, ClearInnerHTMLElements, clone, Display, Display, ForceFormattingOff, GetChildInMidRender, GetClone, GetDisabled, GetDisplayDidPause, GetDisplayOptions, GetDisplayString, GetDisplayString, GetDisplayString, GetDo508Checking, GetDoFormat, GetElementName, GetForceLineBreaksAfterSafeElements, GetHTMLElementReadOnly, GetID, GetImgBaseUrl, GetInnerHTML, GetInnerHTML, GetInnerHTMLDisplayString, GetInnerHTMLElements, GetInnerHTMLElementsAsArrayList, GetIsNetscape, GetLang, GetLastChildFullyRendered, GetName, GetOnClick, GetOnKeyDown, GetOnKeyPress, GetOnKeyUp, GetOnMouseOut, GetOnMouseOver, GetPauseAfterDisplay, GetPostComment, GetPreComment, GetStringBuilder, GetStyle, GetStyleClass, GetStyleClassPrefix, GetTitle, GetValidationLevel, InsertInnerHTMLElement, InternalWrite, ProvidesClosingTag, SaveToTempFile, SaveToTempFile, SetChildInMidRender, SetDisabled, SetDisplayOptions, SetDo508Checking, SetDoFormat, SetElementName, SetFlushAfterDisplay, SetForceLineBreaksAfterSafeElements, SetHTMLElementReadOnly, SetID, SetImgBaseUrl, SetInner, SetIsNetscape, SetLangGlobal, SetLangLocal, SetLastChildFullyRendered, SetOnClick, SetOnKeyDown, SetOnKeyPress, SetOnKeyUp, SetOnMouseOut, SetOnMouseOver, SetPauseAfterDisplay, SetPostComment, SetPreComment, SetStyle, SetStyleClass, SetStyleClass, SetStyleClassPrefix, SetTitle, SetValidationLevel, ToByteArray, VerifyWritability, WriteNugget, WriteNugget
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLGenericInputElement

public HTMLGenericInputElement()
Creates a new HTMLGenericInputElement object.

Method Detail

SetValidateName

public void SetValidateName(boolean b)

GetOnBlur

public java.lang.String GetOnBlur()
Get the value of the onblur attribute.

Returns:
String value.

GetOnChange

public java.lang.String GetOnChange()
Get the value of the onchange attribute.

Returns:
String value.

GetOnFocus

public java.lang.String GetOnFocus()
Get the value of the onfocus attribute.

Returns:
String value.

GetValue

public java.lang.String GetValue()
Get the value of the value attribute.

Returns:
String value.

SetName

public void SetName(java.lang.String s)
Override HTMLElement.SetName.

Overrides:
SetName in class HTMLElement
Parameters:
s - String value
Throws:
HTMLException - Throws Exception if name isn't valid.

ValidateName

public abstract void ValidateName(java.lang.String s)
This method must be implemented by concrete subclasses to throw an HTMLException if the name attribute of this element does not meet the standards of this particular concrete class.

For example, the HTMLInput class implements this method to throw an HTMLException if the name attribute is not set to begin with "in_" followed by a two-letter code designating the type of the input.

The validation that occurs is at the discretion of the subclass, but should enforce some level of quality.

Parameters:
s -
Throws:
HTMLException

SetOnBlur

public void SetOnBlur(java.lang.String s)
Set the value of the onblur attribute.

Parameters:
s - String value

SetOnChange

public void SetOnChange(java.lang.String s)
Set the value of the onchange attribute.

Parameters:
s - String value

SetOnFocus

public void SetOnFocus(java.lang.String s)
Set the value of the onfocus attribute.

Parameters:
s - String value

SetValue

public void SetValue(java.lang.String s)
Set the value of the value attribute. This value value will be HTMLEncoded.

Parameters:
s - String value
Throws:
HTMLException



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