|
|||||||||
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.HTMLAnchor
public class HTMLAnchor
This class can be used to display an HTML anchor element.
Spec
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.plumtree.xpshared.htmlelements.HTMLElement |
---|
HTMLElement.ValidationLevel |
Field Summary | |
---|---|
static boolean |
bEnforceTitle
|
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 | |
---|---|
HTMLAnchor(java.lang.String sAnchorHRef)
Creates a new HTMLAnchor object. |
Method Summary | |
---|---|
protected void |
AppendBeginningOfOpeningTag(boolean bFormat,
XPStringBuilder sb,
IXPResponse response)
Draw the beginning of the anchor tag. |
protected void |
AppendClosingTag(boolean bFormat,
XPStringBuilder sb,
IXPResponse response)
Append the closing anchor tag |
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 |
GetHRef()
Get the value of the href attribute |
java.lang.String |
GetOnContextMenu(java.lang.String s)
|
java.lang.String |
GetTabIndex()
Call this method to get the value of the tabindex attribute. |
java.lang.String |
GetTarget()
Get the value of the target attribute. |
java.lang.String |
GetTitle()
Get the value of the title attribute. |
protected void |
InternalWrite(boolean bFormat,
XPStringBuilder sbLocal,
IXPResponse response)
This method contains the bulk of the logic for writting an HTMLElement. |
protected boolean |
ProvidesClosingTag()
Used to determine whether or not to display a closing tag for this concret subclass of HTMLElement. |
void |
SetAccessKey(java.lang.String s)
Call this method to set the value of the accesskey attribute. |
void |
SetAllowNullHRef(boolean b)
Call this method with true to allow for the absence of an href attribute. |
void |
SetHRef(java.lang.String sAnchorHRef)
Use this method to set the value of the href attribute. |
void |
SetOnContextMenu(java.lang.String s)
|
void |
SetTabIndex(java.lang.String s)
Call this method to set the value of the tabindex attribute. |
void |
SetTarget(java.lang.String s)
Set the value of the target attribute. |
void |
SetTitle(java.lang.String s)
Set the value of the title attribute. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean bEnforceTitle
Constructor Detail |
---|
public HTMLAnchor(java.lang.String sAnchorHRef)
sAnchorHRef
- Pass the value of the href parameter.Method Detail |
---|
public java.lang.String GetAccessKey()
public java.lang.String GetHRef()
public java.lang.String GetTabIndex()
GetTabIndex
in interface TabableHTMLElement
public java.lang.String GetTarget()
public java.lang.String GetTitle()
GetTitle
in class HTMLElement
public void SetAccessKey(java.lang.String s)
s
- Pass the String value.public void SetAllowNullHRef(boolean b)
b
- public void SetHRef(java.lang.String sAnchorHRef)
sAnchorHRef
- Pass the value of the href attribute.public java.lang.String GetOnContextMenu(java.lang.String s)
s
- public void SetOnContextMenu(java.lang.String s)
s
- public void SetTabIndex(java.lang.String s)
SetTabIndex
in interface TabableHTMLElement
s
- Pass the String value.public void SetTarget(java.lang.String s)
s
- The String value of the target attribute.public void SetTitle(java.lang.String s)
SetTitle
in class HTMLElement
s
- The String value of the title attribute.public void ClearTabIndex()
ClearTabIndex
in interface TabableHTMLElement
protected void InternalWrite(boolean bFormat, XPStringBuilder sbLocal, IXPResponse response)
InternalWrite
in class HTMLElement
bFormat
- Pass a boolean indicating whether or not to format the
output.sbLocal
- Pass an XPStringBuilder to which you wish the String
appended. Pass null if you do not wish the string appended to
an XPStringBuilder.response
- Pass an IXPResponse to which you wish the String written.
Pass null if you do not wish the string written to an
IXPResponse.
HTMLException
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 |