|
|||||||||
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.control.PageLink org.apache.click.extras.control.PageButton
public class 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 browser to the location of that Page.
Button
+ direct javascript trick:
PageLink
it extends.PageLink
:
Link
elements.ActionButton
+ forward/redirect trick:
PageLink
and not to PageSubmit
.
Field Summary |
---|
Fields inherited from class org.apache.click.control.PageLink |
---|
pageClass |
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 | |
---|---|
PageButton()
Create a PageButton with no name defined. |
|
PageButton(Class<? extends Page> targetPage)
Create a PageButton for the given target Page class. |
|
PageButton(String name)
Create a PageButton for the given name. |
|
PageButton(String name,
Class<? extends Page> targetPage)
Create a PageButton for the given name and target Page class. |
|
PageButton(String name,
String label,
Class<? extends Page> 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 org.apache.click.control.PageLink |
---|
getHref, getPageClass, onProcess, setActionListener, setListener, setPageClass |
Methods inherited from class org.apache.click.control.AbstractLink |
---|
bindRequestParameters, bindRequestValue, defineParameter, getId, getImageSrc, getLabel, getParameter, getParameters, getParameterValues, getState, getTabIndex, getTitle, hasParameters, isAjaxTarget, isDisabled, isRenderLabelAndImage, removeState, 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 |
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 nullpublic PageButton(String name, Class<? extends Page> targetPage)
name
- the page button nametargetPage
- the target page class
IllegalArgumentException
- if the name is nullpublic PageButton(String name, String label, Class<? extends Page> targetPage)
name
- the page button namelabel
- the page button labeltargetPage
- the target page class
IllegalArgumentException
- if the name is nullpublic PageButton(Class<? extends Page> targetPage)
targetPage
- the target page class
IllegalArgumentException
- if the name is nullpublic PageButton()
Method Detail |
---|
public String getTag()
getTag
in class AbstractLink
AbstractControl.getTag()
public void render(HtmlStringBuffer buffer)
render
in interface Control
render
in class AbstractLink
buffer
- the specified buffer to render the control's output topublic String toString()
toString
in class AbstractControl
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 |