public class HTMLMenuAnchor extends HTMLMenuItem implements HTMLAbstractAnchor
alignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX
URL_CHECK, URL_END, URL_MAX_LENGTH
Constructor and Description |
---|
HTMLMenuAnchor(java.lang.String href)
Creates a new instance of HTMLMenu
|
Modifier and Type | Method and Description |
---|---|
void |
addCallParameter(java.lang.String token,
java.lang.String value)
This method is to add parameter to the href
|
void |
addMouseEvent(HTMLMouseEvent me)
add a mouse event to this component
|
void |
cancelClickBubble()
Prevent the click of the mouse from propagation up the dom and kicking off other things.
|
java.lang.String |
getBaseImageUrl()
This method is to get menu anchor's image url
|
boolean |
getHighlightSelection()
This method is to get menu anchor's highlight selection
|
java.lang.String |
getHREF()
This method is to get href
|
java.lang.String |
getHREF(ClientBrowser browser)
get the hyper link for this anchor
|
java.lang.String |
getRolloverImageUrl()
This method is to get menu anchor's image url
|
java.lang.String |
getTarget()
This method is to get target
|
int |
getTargetHeight()
This method is to get target's height
|
int |
getTargetWidth()
This method is to get target's width
|
boolean |
getTargetWindowPlain()
This method is to get if target window is plain
|
java.lang.String |
getURL()
get the plain hyper link for this anchor
|
void |
setBaseImageUrl(java.lang.String url)
This method is to set menu anchor's image url
|
void |
setHighlightSelection(boolean on)
This method is to set menu anchor 's highlight selection
|
void |
setRolloverImageUrl(java.lang.String url)
This method is to set menu anchor's image url
|
void |
setTarget(java.lang.String target)
This method is to set target
|
void |
setTargetHeight(int pixels)
This method is to set target's height
|
void |
setTargetStatusBar(boolean on)
This method is to set target's status bar
|
void |
setTargetWidth(int pixels)
This method is to set target's width
|
void |
setTargetWindowPlain(boolean on)
This method is to set if target window is plain
|
void |
setToolTip(java.lang.String toolTip)
set tooltip
|
void |
setURL(java.lang.String href)
This method is to set url
|
getDepth, getId, getLabel, getMenuBar, isSelected, setLabel, setMenuBar, setSelected
addComponent, addComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponent
addJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, compile, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerate, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addComponent, setTabIndex
public HTMLMenuAnchor(java.lang.String href)
href
- - the menu anchor's hrefpublic void cancelClickBubble()
cancelClickBubble
in interface HandlesSingleClick
public void addMouseEvent(HTMLMouseEvent me)
addMouseEvent
in interface HandlesMouseEvents
addMouseEvent
in interface HTMLAbstractAnchor
me
- The mouse eventpublic java.lang.String getURL()
getURL
in interface HTMLAbstractAnchor
public final void setURL(java.lang.String href)
href
- - the hrefpublic java.lang.String getHREF()
getHREF
in interface HTMLAbstractAnchor
public java.lang.String getHREF(ClientBrowser browser)
HTMLAbstractAnchor
getHREF
in interface HTMLAbstractAnchor
browser
- public void setTarget(java.lang.String target)
setTarget
in interface HTMLAbstractAnchor
target
- - targetpublic void setTargetWidth(int pixels)
setTargetWidth
in interface HTMLAbstractAnchor
pixels
- - int target's widthpublic void setTargetHeight(int pixels)
setTargetHeight
in interface HTMLAbstractAnchor
pixels
- - int target's heightpublic void setTargetWindowPlain(boolean on)
setTargetWindowPlain
in interface HTMLAbstractAnchor
on
- - boolean - true: target window is plain ; false: target window is not plainpublic void setToolTip(java.lang.String toolTip)
HTMLAbstractAnchor
setToolTip
in interface HTMLAbstractAnchor
toolTip
- public void setTargetStatusBar(boolean on)
setTargetStatusBar
in interface HTMLAbstractAnchor
on
- - boolean - true: need to set status bar ; false: need not to set status barpublic void setHighlightSelection(boolean on)
on
- - boolean - true: need hightlight selection; false: need not highlight selection.public java.lang.String getTarget()
public int getTargetWidth()
public int getTargetHeight()
public boolean getTargetWindowPlain()
public boolean getHighlightSelection()
public void addCallParameter(java.lang.String token, java.lang.String value)
addCallParameter
in interface HTMLAbstractAnchor
token
- - parameter's namevalue
- - parameter's valuepublic void setBaseImageUrl(java.lang.String url)
url
- - image urlpublic java.lang.String getBaseImageUrl()
public void setRolloverImageUrl(java.lang.String url)
url
- - image urlpublic java.lang.String getRolloverImageUrl()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.