|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.ui.WcmAnchor
com.filenet.wcm.toolkit.server.util.ui.WcmIconAnchor
This class extends the base WcmAnchor and implements an icon anchor.
Field Summary | |
protected java.lang.String |
altImageLabel
The label of the HTML image alt attribute. |
protected java.lang.String |
iconURL
The icon url path. |
protected java.lang.String |
imageAttributes
Any additional image HTML attributes. |
Fields inherited from class com.filenet.wcm.toolkit.server.util.ui.WcmAnchor |
disabled, extraAttributes, hidden, id, label, locLabel, onClick, onContextMenu, popup, toolTip, urlObject, urlString, windowHeight, windowWidth |
Constructor Summary | |
WcmIconAnchor(java.lang.String url,
java.lang.String iconURL)
Contructs a new WcmIconAnchor object without any label. |
|
WcmIconAnchor(java.lang.String url,
java.lang.String label,
java.lang.String iconURL)
Contructs a new WcmIconAnchor object. |
|
WcmIconAnchor(java.lang.String url,
WcmString localizedLabel,
java.lang.String iconURL)
Contructs a new WcmIconAnchor object. |
|
WcmIconAnchor(java.lang.String url,
WcmString localizedLabel,
java.lang.String iconURL,
java.util.Locale locale)
Contructs a new WcmIconAnchor object. |
Method Summary | |
static WcmIconAnchor |
createNonLocalized(java.lang.String url,
java.lang.String label,
java.lang.String iconURL)
Deprecated. Use the constructor. |
java.lang.String |
getAltImageLabel()
Returns the alt label of the icon. |
java.lang.String |
getHTML()
Returns the WcmIconAnchor HTML. |
java.lang.String |
getHTML(java.lang.String imageAttributes)
Returns the WcmIconAnchor HTML. |
java.lang.String |
getHTML(java.lang.String anchorAttributes,
java.lang.String imageAttributes)
Returns the WcmIconAnchor HTML. |
java.lang.String |
getIconUrl()
Returns the icon url path. |
java.lang.String |
getImageElementHTML()
Returns the image HTML. |
java.lang.String |
getImageElementHTML(java.lang.String imageAttributes)
Returns the image HTML of the icon. |
boolean |
isImageDefined()
Returns true when an image is defined. |
void |
setAltImageLabel(WcmString localizedAltImageLabel)
Sets the icon alt label. |
Methods inherited from class com.filenet.wcm.toolkit.server.util.ui.WcmAnchor |
createNonLocalized, getCloseTagHTML, getHTML, getHTML, getId, getLabel, getLabel, getOpenTagHTML, getOpenTagHTML, getToolTip, getURL, getWindowHeight, getWindowWidth, isDisabled, isHidden, isPopup, setDisabled, setHidden, setId, setNonLocalizedLabel, setOnClick, setOnContextMenu, setPopup, setToolTip, setToolTip, setToolTip, setURL, setURL, setWindowHeight, setWindowWidth, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String iconURL
protected java.lang.String altImageLabel
protected java.lang.String imageAttributes
Constructor Detail |
public WcmIconAnchor(java.lang.String url, java.lang.String label, java.lang.String iconURL)
url
- The url string of the new anchor.label
- The localized label of the new anchor.iconURL
- The icon url path.public WcmIconAnchor(java.lang.String url, WcmString localizedLabel, java.lang.String iconURL)
url
- The url string of the new anchor.localizedLabel
- The localized label of the new anchor.iconURL
- The icon url path.public WcmIconAnchor(java.lang.String url, WcmString localizedLabel, java.lang.String iconURL, java.util.Locale locale)
url
- The url string of the new anchor.localizedLabel
- The localized label of the new anchor.iconURL
- The icon url path.locale
- client localepublic WcmIconAnchor(java.lang.String url, java.lang.String iconURL)
url
- The url string of the new anchor.iconURL
- The icon url path.Method Detail |
public static WcmIconAnchor createNonLocalized(java.lang.String url, java.lang.String label, java.lang.String iconURL)
url
- The url string of the new anchor.label
- The label of the new anchor.iconURL
- The icon url path.
public java.lang.String getHTML(java.lang.String imageAttributes)
getHTML
in class WcmAnchor
imageAttributes
- Any additional image tag attributes.
public java.lang.String getHTML(java.lang.String anchorAttributes, java.lang.String imageAttributes)
anchorAttributes
- Any additional anchor HTML attributes. For a disabled anchor, the extra attributes will be added
to the <span> tag. Otherwise, it is added to the <a> tag.imageAttributes
- Any additional image tag attributes.
public java.lang.String getHTML()
getHTML
in class WcmAnchor
public java.lang.String getImageElementHTML(java.lang.String imageAttributes)
imageAttributes
- Any additional image tag attributes.
public java.lang.String getImageElementHTML()
public void setAltImageLabel(WcmString localizedAltImageLabel)
localizedAltImageLabel
- The localized label being used for the icon alt label.public java.lang.String getAltImageLabel()
public java.lang.String getIconUrl()
public boolean isImageDefined()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |