|
||||||||||
| 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.Field
net.sf.click.control.Button
net.sf.click.control.Submit
net.sf.click.control.ImageSubmit
Provides an ImageSubmit control: <input type='image' src='edit.gif'>.
Submit,
Button,
Serialized Form| Field Summary | |
protected String |
src
The image path src attribute. |
protected int |
x
The image pixel x coordinate clicked on by the user, the default value is -1. |
protected int |
y
The image pixel y coordinate clicked on by the user, the default value is -1. |
| Fields inherited from class net.sf.click.control.Submit |
clicked |
| Fields inherited from class net.sf.click.control.Field |
disabled, error, focus, form, help, label, readonly, required, tabindex, title, validate, value |
| 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 | |
ImageSubmit()
Create an ImageSubmit button with no name defined. |
|
ImageSubmit(String name)
Create a ImageSubmit button with the given name. |
|
ImageSubmit(String name,
String src)
Create a ImageSubmit button with the given name and image src path. |
|
ImageSubmit(String name,
String src,
Object listener,
String method)
Create a ImageSubmit button with the given name, image src path, listener object and listener method. |
|
| Method Summary | |
void |
bindRequestValue()
Bind the request submission, setting the field Submit.clicked,
x and y if defined in the request. |
String |
getSrc()
Return the image src path attribute. |
String |
getType()
Return the input type: 'image'. |
int |
getX()
Return the image x pixel coordinate clicked on by the user. |
int |
getY()
Return the image y pixel coordinate clicked on by the user. |
void |
render(HtmlStringBuffer buffer)
Render the HTML representation of the ImageButton. |
void |
setSrc(String src)
Set the image src path attribute. |
| Methods inherited from class net.sf.click.control.Submit |
getCancelJavaScriptValidation, isClicked, onProcess, setCancelJavaScriptValidation |
| Methods inherited from class net.sf.click.control.Button |
getControlSizeEst, getOnClick, getTag, onRender, setOnClick |
| Methods inherited from class net.sf.click.control.Field |
getError, getErrorLabel, getFocus, getFocusJavaScript, getForm, getHelp, getId, getLabel, getRequestValue, getTabIndex, getTextAlign, getTitle, getValidate, getValidationJavaScript, getValue, getValueObject, getWidth, isDisabled, isHidden, isReadonly, isRequired, isValid, onInit, setDisabled, setError, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setFocus, setForm, setHelp, setLabel, setListener, setParent, setReadonly, setRequired, setTabIndex, setTextAlign, setTitle, setValidate, setValue, setValueObject, setWidth, validate |
| Methods inherited from class net.sf.click.control.AbstractControl |
addStyleClass, appendAttributes, getActionListener, getAttribute, getAttributes, getContext, getHtmlImports, getMessage, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasStyles, onDeploy, onDestroy, registerActionEvent, removeStyleClass, renderTagBegin, renderTagEnd, setActionListener, setAttribute, setId, setName, setStyle, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String src
protected int x
protected int y
| Constructor Detail |
public ImageSubmit(String name)
name - the button name
public ImageSubmit(String name,
String src)
name - the button namesrc - the image src path attribute
public ImageSubmit(String name,
String src,
Object listener,
String method)
name - the button namesrc - the image src path attributelistener - the listener target objectmethod - the listener method to callpublic ImageSubmit()
| Method Detail |
public String getType()
getType in class Submitpublic String getSrc()
public void setSrc(String src)
src - the image src path attributepublic int getX()
public int getY()
public void bindRequestValue()
Submit.clicked,
x and y if defined in the request.
bindRequestValue in class Submitpublic void render(HtmlStringBuffer buffer)
render in interface Controlrender in class Buttonbuffer - the specified buffer to render the control's output toAbstractControl.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||