|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.click.control.AbstractControl
net.sf.click.control.AbstractLink
net.sf.click.control.PageLink
net.sf.click.extras.control.PageButton
Provides a Page link Button control: <input type='button'>.
button (an input HTML element
with the type="button" more precisely) plus javascript getting
the borwser to the location of that Page.
Button + direct javascript trick:
PageLink it extends.PageLink:
Link elements.ActionButton + forward/redirect trick:
net.sf.click.Page#redirect(Class) does not support parameters and
net.sf.click.Page#redirect(String) is prone to errors when hardcoding
them in the String.PageLink and not to PageSubmit.
| Field Summary |
| Fields inherited from class net.sf.click.control.PageLink |
pageClass |
| Fields inherited from class net.sf.click.control.AbstractLink |
disabled, imageSrc, label, parameters, tabindex, title |
| Fields inherited from class net.sf.click.control.AbstractControl |
actionListener, attributes, listener, listenerMethod, messages, name, parent, styles |
| Fields inherited from interface net.sf.click.Control |
CONTROL_MESSAGES |
| Constructor Summary | |
PageButton()
Create a PageButton with no name defined. |
|
PageButton(Class targetPage)
Create a PageButton for the given target Page class. |
|
PageButton(String name)
Create a PageButton for the given name. |
|
PageButton(String name,
Class targetPage)
Create a PageButton for the given name and target Page class. |
|
PageButton(String name,
String label,
Class targetPage)
Create a PageButton for the given name, label and target Page class. |
|
| Method Summary | |
String |
getOnClick()
Return the Button's onClick() String, representing
a javascript location of the Page to get. |
String |
getTag()
Return the links html tag: input. |
void |
render(HtmlStringBuffer buffer)
Render the HTML representation of the button. |
String |
toString()
Return a HTML rendered Button string. |
| Methods inherited from class net.sf.click.control.PageLink |
getHref, getPageClass, onProcess, setListener, setPageClass |
| Methods inherited from class net.sf.click.control.AbstractLink |
getHtmlImports, getId, getImageSrc, getLabel, getParameter, getParameters, getTabIndex, getTitle, hasParameters, isDisabled, setDisabled, setImageSrc, setLabel, setParameter, setTabIndex, setTitle |
| Methods inherited from class net.sf.click.control.AbstractControl |
addStyleClass, appendAttributes, getActionListener, getAttribute, getAttributes, getContext, getControlSizeEst, getMessage, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasStyles, onDeploy, onDestroy, onInit, onRender, registerActionEvent, removeStyleClass, renderTagBegin, renderTagEnd, setActionListener, setAttribute, setId, setName, setParent, setStyle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PageButton(String name)
name - the page button name
IllegalArgumentException - if the name is null
public PageButton(String name,
Class targetPage)
name - the page button nametargetPage - the target page class
IllegalArgumentException - if the name is null
public PageButton(String name,
String label,
Class targetPage)
name - the page button namelabel - the page button labeltargetPage - the target page class
IllegalArgumentException - if the name is nullpublic PageButton(Class targetPage)
targetPage - the target page class
IllegalArgumentException - if the name is nullpublic PageButton()
| Method Detail |
public String getTag()
AbstractControl.getTag()public void render(HtmlStringBuffer buffer)
buffer - the specified buffer to render the control's output topublic String toString()
Object.toString()public String getOnClick()
onClick() String, representing
a javascript location of the Page to get.
onClick() String, representing
a javascript location of the Page to get.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||