|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.click.control.AbstractControl org.apache.click.control.AbstractLink org.apache.click.extras.control.ExternalLink
public class ExternalLink
Provides an External Link control: <a href="" ></a>.
External Link |
Field Summary | |
---|---|
protected String |
targetPath
The target path. |
Fields inherited from class org.apache.click.control.AbstractLink |
---|
disabled, imageSrc, label, parameters, renderLabelAndImage, tabindex, title |
Fields inherited from class org.apache.click.control.AbstractControl |
---|
actionListener, attributes, behaviors, headElements, listener, listenerMethod, messages, name, parent, styles |
Fields inherited from interface org.apache.click.Control |
---|
CONTROL_MESSAGES |
Constructor Summary | |
---|---|
ExternalLink()
Create an ExternalLink with no name defined. |
|
ExternalLink(String name)
Create an ExternalLink for the given name. |
|
ExternalLink(String name,
String targetPath)
Create an ExternalLink for the given name and target Page class. |
Method Summary | |
---|---|
String |
getHref()
Return the ExternalLink anchor <a> tag href attribute. |
String |
getTargetPath()
Return the link href target path. |
boolean |
onProcess()
This method will return true. |
void |
setActionListener(ActionListener listener)
This method does nothing. |
void |
setListener(Object listener,
String method)
This method does nothing. |
void |
setTargetPath(String targetPath)
Set the link href target path. |
Methods inherited from class org.apache.click.control.AbstractLink |
---|
bindRequestParameters, bindRequestValue, defineParameter, getId, getImageSrc, getLabel, getParameter, getParameters, getParameterValues, getState, getTabIndex, getTag, getTitle, hasParameters, isAjaxTarget, isDisabled, isRenderLabelAndImage, removeState, render, renderImgTag, renderParameters, restoreState, saveState, setDisabled, setImageSrc, setLabel, setParameter, setParameters, setParameterValues, setRenderLabelAndImage, setState, setTabIndex, setTitle |
Methods inherited from class org.apache.click.control.AbstractControl |
---|
addBehavior, addStyleClass, appendAttributes, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getControlSizeEst, getHeadElements, getHtmlImports, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasBehaviors, hasStyles, onDeploy, onDestroy, onInit, onRender, removeBehavior, removeStyleClass, renderTagBegin, renderTagEnd, setAttribute, setId, setName, setParent, setStyle, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String targetPath
Constructor Detail |
---|
public ExternalLink(String name)
name
- the page link name
IllegalArgumentException
- if the name is nullpublic ExternalLink(String name, String targetPath)
name
- the page link nametargetPath
- the href target path
IllegalArgumentException
- if the name is nullpublic ExternalLink()
Method Detail |
---|
public String getHref()
getHref
in class AbstractLink
public void setActionListener(ActionListener listener)
setActionListener
in class AbstractControl
listener
- the listener to invokeAbstractControl.setActionListener(org.apache.click.ActionListener)
public void setListener(Object listener, String method)
setListener
in interface Control
setListener
in class AbstractControl
listener
- the listener object with the named method to invokemethod
- the name of the method to invokeControl.setListener(Object, String)
public String getTargetPath()
public void setTargetPath(String targetPath)
targetPath
- the link href target pathpublic boolean onProcess()
onProcess
in interface Control
onProcess
in class AbstractControl
Control.onProcess()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |