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_REGEXURL_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, setSelectedaddComponent, addComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponentaddJavaScript, 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, touchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddComponent, setTabIndexpublic HTMLMenuAnchor(java.lang.String href)
href - - the menu anchor's hrefpublic void cancelClickBubble()
cancelClickBubble in interface HandlesSingleClickpublic void addMouseEvent(HTMLMouseEvent me)
addMouseEvent in interface HandlesMouseEventsaddMouseEvent in interface HTMLAbstractAnchorme - The mouse eventpublic java.lang.String getURL()
getURL in interface HTMLAbstractAnchorpublic final void setURL(java.lang.String href)
href - - the hrefpublic java.lang.String getHREF()
getHREF in interface HTMLAbstractAnchorpublic java.lang.String getHREF(ClientBrowser browser)
HTMLAbstractAnchorgetHREF in interface HTMLAbstractAnchorbrowser - public void setTarget(java.lang.String target)
setTarget in interface HTMLAbstractAnchortarget - - targetpublic void setTargetWidth(int pixels)
setTargetWidth in interface HTMLAbstractAnchorpixels - - int target's widthpublic void setTargetHeight(int pixels)
setTargetHeight in interface HTMLAbstractAnchorpixels - - int target's heightpublic void setTargetWindowPlain(boolean on)
setTargetWindowPlain in interface HTMLAbstractAnchoron - - boolean - true: target window is plain ; false: target window is not plainpublic void setToolTip(java.lang.String toolTip)
HTMLAbstractAnchorsetToolTip in interface HTMLAbstractAnchortoolTip - public void setTargetStatusBar(boolean on)
setTargetStatusBar in interface HTMLAbstractAnchoron - - 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 HTMLAbstractAnchortoken - - 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.