|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.xpshared.htmlelements.HTMLElement com.plumtree.xpshared.htmlelements.HTMLGenericInputElement com.plumtree.xpshared.htmlelements.HTMLInput
public class HTMLInput
This class can be used to render an html input element.
Spec
This class extends HTMLGeneralInputElement. This means that objects of
this class can be used to set name/value pairs within a form.
This class also implements TabableHTMLElement. This means that this class
can generate a tabindex property that helps to guide the clients browser as
the client tabs through form elements.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.plumtree.xpshared.htmlelements.HTMLElement |
---|
HTMLElement.ValidationLevel |
Field Summary | |
---|---|
static boolean |
bForceTextInputSizing
Set this to toggle whether or not input sizes are converted to netscape comparable sizes. |
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 | |
---|---|
HTMLInput(HTMLInputTypes t,
java.lang.String sAlt)
|
|
HTMLInput(HTMLInputTypes t,
java.lang.String sTagName,
java.lang.String alt)
|
|
HTMLInput(HTMLInputTypes t,
java.lang.String sTagName,
java.lang.String sID,
java.lang.String alt)
|
|
HTMLInput(int iHTMLInputType,
java.lang.String sTagName,
java.lang.String alt)
Call this method to create a new HTMLInput object. |
|
HTMLInput(int iHTMLInputType,
java.lang.String sTagName,
java.lang.String sID,
java.lang.String alt)
|
Method Summary | |
---|---|
protected void |
AppendBeginningOfOpeningTag(boolean bFormat,
XPStringBuilder sb,
IXPResponse response)
This method generates the beginning of the opening tag. |
protected void |
AppendClosingTag(boolean bFormat,
XPStringBuilder sb,
IXPResponse response)
This method generates the closing tag of this html element. |
void |
ClearTabIndex()
Call this method to remove the tab index from this HTMLElement. |
java.lang.String |
GetAccessKey()
Call this method to get the value of the accesskey attribute. |
java.lang.String |
GetAlign()
Get the value of the align attribute. |
java.lang.String |
GetAlt()
Get the value of the alt attribute. |
boolean |
GetAutoComplete()
|
boolean |
GetChecked()
Get the value of the checked attribute. |
HTMLInputTypes |
GetHTMLInputType()
Returns the HTMLInputTypes object associated with this. |
java.lang.String |
GetMaxLength()
Get the value of the maxlength attribute. |
java.lang.String |
GetOnClick()
Get the value of the onclick attribute. |
java.lang.String |
GetOnKeyDown()
Get the value of the onkeydown attribute. |
boolean |
GetReadOnly()
Get the value of the readonly attribute. |
java.lang.String |
GetSize()
Get the value of the size attribute. |
java.lang.String |
GetSrc()
Get the value of the src attribute. |
java.lang.String |
GetTabIndex()
Call this method to get the value of the tabindex attribute. |
static int |
IESizeToNSSize(int iSize)
Call this method to convert a size in IE to an equivalent size in Netscape. |
protected boolean |
ProvidesClosingTag()
Indicates whether or not this HTML element provides a closing tag. |
void |
SetAccessKey(java.lang.String s)
Call this method to set the value of the accesskey attribute. |
void |
SetAlign(java.lang.String s)
Set the value of the align attribute. |
void |
SetAlt(java.lang.String s)
Set the value of the alt attribute. |
void |
SetAutoComplete(boolean _bAutoComplete)
Set the value of the autocomplete attribute. |
void |
SetChecked(boolean bInputChecked)
Set the value of the checked attribute. |
void |
SetMaxLength(int i)
Set the value of the maxlength attribute. |
void |
SetMaxLength(java.lang.String s)
Set the value of the maxlength attribute. |
void |
SetOnClick(java.lang.String s)
Set the value of the onclick attribute. |
void |
SetOnKeyDown(java.lang.String s)
Set the value of the onkeydown attribute. |
void |
SetReadOnly(boolean bInputReadOnly)
Set the value of the readonly attribute. |
void |
SetSize(int i)
Set the value of the size attribute. |
void |
SetSize(int i,
boolean bConvertIEToNS)
Call this method to set the size on this input. |
void |
SetSize(java.lang.String s)
Set the value of the size attribute. |
void |
SetSize(java.lang.String s,
boolean bConvertIEToNS)
Call this method to set the size on this input. |
void |
SetSrc(java.lang.String sUrl)
Set the value of the src attribute. |
void |
SetTabIndex(java.lang.String s)
Call this method to set the value of the tabindex attribute. |
void |
ValidateName(java.lang.String s)
Check to see if a name string is valid. |
Methods inherited from class com.plumtree.xpshared.htmlelements.HTMLGenericInputElement |
---|
GetOnBlur, GetOnChange, GetOnFocus, GetValue, SetName, SetOnBlur, SetOnChange, SetOnFocus, SetValidateName, SetValue |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean bForceTextInputSizing
Constructor Detail |
---|
public HTMLInput(HTMLInputTypes t, java.lang.String sTagName, java.lang.String sID, java.lang.String alt)
t
- Pass an HTMLInputTypes object.sTagName
- Pass the name of this input element.sID
- Pass the ID of this input elementalt
- Pass the alt attribute value.
HTMLException
public HTMLInput(int iHTMLInputType, java.lang.String sTagName, java.lang.String sID, java.lang.String alt)
iHTMLInputType
- Pass an int from the HTMLInputTypes enumeration.sTagName
- Pass the name of this input element.sID
- Pass the ID of this input elementalt
- Pass the alt attribute value.
HTMLException
public HTMLInput(HTMLInputTypes t, java.lang.String sAlt)
t
- Pass an HTMLInputTypes object.alt
- Pass the alt attribute value.
HTMLException
public HTMLInput(HTMLInputTypes t, java.lang.String sTagName, java.lang.String alt)
t
- Pass an HTMLInputTypes object.sTagName
- Pass the name of this input element.alt
- Pass the alt attribute value.
HTMLException
public HTMLInput(int iHTMLInputType, java.lang.String sTagName, java.lang.String alt)
iHTMLInputType
- Pass an int describing the type of this input
element.sTagName
- Pass the name of this element.alt
- Pass the alt attribute of this element.
HTMLException
HTMLInputTypes
Method Detail |
---|
public HTMLInputTypes GetHTMLInputType()
public java.lang.String GetAlign()
public java.lang.String GetAlt()
public boolean GetChecked()
public java.lang.String GetOnClick()
GetOnClick
in class HTMLElement
public boolean GetAutoComplete()
public java.lang.String GetOnKeyDown()
GetOnKeyDown
in class HTMLElement
public boolean GetReadOnly()
public java.lang.String GetTabIndex()
TabableHTMLElement
GetTabIndex
in interface TabableHTMLElement
public static int IESizeToNSSize(int iSize)
iSize
- int
public java.lang.String GetMaxLength()
public java.lang.String GetSize()
public java.lang.String GetSrc()
public void SetAlign(java.lang.String s)
s
- String value.public void SetAlt(java.lang.String s)
s
- String value.public void SetChecked(boolean bInputChecked)
bInputChecked
- boolean value.public void SetAutoComplete(boolean _bAutoComplete)
_bAutoComplete
- boolean value (false = disable autocomplete)public void SetMaxLength(int i)
i
- sizepublic void SetMaxLength(java.lang.String s)
s
- String value.public void SetOnClick(java.lang.String s)
SetOnClick
in class HTMLElement
s
- String value.public void SetOnKeyDown(java.lang.String s)
SetOnKeyDown
in class HTMLElement
s
- String value.public void SetReadOnly(boolean bInputReadOnly)
bInputReadOnly
- valuepublic void SetSize(int i)
i
- value.public void SetSize(int i, boolean bConvertIEToNS)
i
- Pass an int. This int should make this input appear the
correct size when viewed in IE.bConvertIEToNS
- Pass a boolean indicating whether or not the first
parameter should be converted to an Netscap size.public void SetSize(java.lang.String s)
s
- String value.public void SetSize(java.lang.String s, boolean bConvertIEToNS)
s
- Pass a String that is parsable to an int. This String should
make this input appear the correct size when viewed in IE.
bConvertIEToNS
- Pass a boolean indicating whether or not the first
parameter should be converted to an Netscap size.public void SetSrc(java.lang.String sUrl)
sUrl
- String value.public void SetTabIndex(java.lang.String s)
TabableHTMLElement
SetTabIndex
in interface TabableHTMLElement
s
- Pass the String value.public void SetAccessKey(java.lang.String s)
s
- Pass the String value.public java.lang.String GetAccessKey()
public void ClearTabIndex()
TabableHTMLElement
ClearTabIndex
in interface TabableHTMLElement
public void ValidateName(java.lang.String s)
ValidateName
in class HTMLGenericInputElement
s
- Name string.
HTMLException
- Throws an exception if the name passed isn't
valid.protected void AppendBeginningOfOpeningTag(boolean bFormat, XPStringBuilder sb, IXPResponse response)
AppendBeginningOfOpeningTag
in class HTMLElement
bFormat
- boolean indicating whether or not to format.sb
- XPStringBuilderresponse
- IXPResponseprotected void AppendClosingTag(boolean bFormat, XPStringBuilder sb, IXPResponse response)
AppendClosingTag
in class HTMLElement
bFormat
- boolean indicating whether or not to format.sb
- XPStringBuilderresponse
- IXPResponseprotected boolean ProvidesClosingTag()
ProvidesClosingTag
in class HTMLElement
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |