|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.click.control.AbstractControl
org.apache.click.control.AbstractLink
org.apache.click.control.PageLink
public class PageLink
Provides a Page Link control: <a href="" ></a>.
| Page Link |
AbstractLink,
ActionLink,
Serialized Form| Field Summary | |
|---|---|
protected Class |
pageClass
The target page class. |
| Fields inherited from class org.apache.click.control.AbstractLink |
|---|
disabled, imageSrc, label, parameters, tabindex, title |
| Fields inherited from class org.apache.click.control.AbstractControl |
|---|
actionListener, attributes, headElements, listener, listenerMethod, messages, name, parent, styles |
| Fields inherited from interface org.apache.click.Control |
|---|
CONTROL_MESSAGES |
| Constructor Summary | |
|---|---|
PageLink()
Create an PageLink with no name defined. |
|
PageLink(Class targetPage)
Create an PageLink for the given target Page class. |
|
PageLink(String name)
Create an PageLink for the given name. |
|
PageLink(String name,
Class targetPage)
Create an PageLink for the given name and target Page class. |
|
PageLink(String name,
String label,
Class targetPage)
Create an PageLink for the given name, label and target Page class. |
|
| Method Summary | |
|---|---|
String |
getHref()
Return the PageLink anchor <a> tag href attribute. |
Class |
getPageClass()
Return the target Page class. |
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 |
setPageClass(Class targetPage)
Set the target Page class. |
| Methods inherited from class org.apache.click.control.AbstractLink |
|---|
bindRequestParameters, bindRequestValue, getHtmlImports, getId, getImageSrc, getLabel, getParameter, getParameters, getParameterValues, getTabIndex, getTag, getTitle, hasParameters, isDisabled, render, renderParameters, setDisabled, setImageSrc, setLabel, setParameter, setParameterValues, setTabIndex, setTitle |
| Methods inherited from class org.apache.click.control.AbstractControl |
|---|
addStyleClass, appendAttributes, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getContext, getControlSizeEst, getHeadElements, getMessage, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasStyles, onDeploy, onDestroy, onInit, onRender, 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 Class pageClass
| Constructor Detail |
|---|
public PageLink(String name)
name - the page link name
IllegalArgumentException - if the name is null
public PageLink(String name,
Class targetPage)
name - the page link nametargetPage - the target page class
IllegalArgumentException - if the name is null
public PageLink(String name,
String label,
Class targetPage)
name - the page link namelabel - the page link labeltargetPage - the target page class
IllegalArgumentException - if the name is nullpublic PageLink(Class targetPage)
targetPage - the target page class
IllegalArgumentException - if the name is nullpublic PageLink()
| Method Detail |
|---|
public String getHref()
getHref in class AbstractLinkpublic void setActionListener(ActionListener listener)
setActionListener in class AbstractControllistener - the listener to invokeAbstractControl.setActionListener(org.apache.click.ActionListener)
public void setListener(Object listener,
String method)
setListener in interface ControlsetListener in class AbstractControllistener - the listener object with the named method to invokemethod - the name of the method to invokeControl.setListener(Object, String)public Class getPageClass()
public void setPageClass(Class targetPage)
targetPage - the target Page classpublic boolean onProcess()
onProcess in interface ControlonProcess in class AbstractControlControl.onProcess()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||