Package com.facilita.fc.web
Class ImageButtonElement
- java.lang.Object
-
- com.facilita.fc.web.HtmlElement
-
- com.facilita.fc.web.InputElement
-
- com.facilita.fc.web.ImageButtonElement
-
public class ImageButtonElement extends InputElement
Represents anInputElementwhich is an image.When an image element on a form is submitted, the x and y coordinates that the user clicked will be sent to the server.
- See Also:
Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.facilita.fc.web.InputElement
InputElement.InputElementType
-
-
Constructor Summary
Constructors Constructor Description ImageButtonElement(long cPtr, boolean cMemoryOwn)For internal use only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlElementclone()Creates a copy of this HTML element.voiddelete()static longgetCPtr(ImageButtonElement obj)For internal use only.intgetX()Get the value of the X coordinate that will be sent to the serverintgetY()Get the value of the Y coordinate that will be sent to the serverbooleanisSuccessfulControl()Returnstrueif thisImageButtonElementrepresents a successful control.voidsetX(int x)Set the value of the X coordinate that will be sent to the servervoidsetY(int y)Set the value of the Y coordinate that will be sent to the server-
Methods inherited from class com.facilita.fc.web.InputElement
getCPtr, getType, isChecked, isSubmitted, makeFrom, setChecked, setSubmitted
-
Methods inherited from class com.facilita.fc.web.HtmlElement
getAfterEndTagPosition, getAfterStartTagPosition, getAttribute, getAttributes, getCharEncoding, getContent, getContentPosition, getCPtr, getId, getName, getTag, getValue, hasAttribute, isDisabled, removeAttribute, setAttribute, setAttribute, setCharEncoding, setContent, setDisabled, setId, setName, setValue
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(ImageButtonElement obj)
For internal use only. Of no interest to the user.- Parameters:
obj- a reference to an object of this class- Returns:
- a long containing the address of the CPP wrapped object
-
delete
public void delete()
- Overrides:
deletein classInputElement
-
isSuccessfulControl
public boolean isSuccessfulControl()
Returnstrueif thisImageButtonElementrepresents a successful control. A successful control is valid for submission. Every successful control has its control name and current value submitted when the form is sent to the web server.- Overrides:
isSuccessfulControlin classInputElement- Returns:
trueif thisImageButtonElementrepresents a successful control
-
getX
public int getX()
Get the value of the X coordinate that will be sent to the server- Returns:
- the value of the X coordinate that will be sent to the server
-
setX
public void setX(int x)
Set the value of the X coordinate that will be sent to the server- Parameters:
x- the value of the X coordinate that will be sent to the server
-
getY
public int getY()
Get the value of the Y coordinate that will be sent to the server- Returns:
- the value of the Y coordinate that will be sent to the server
-
setY
public void setY(int y)
Set the value of the Y coordinate that will be sent to the server- Parameters:
y- the value of the Y coordinate that will be sent to the server
-
clone
public HtmlElement clone()
Description copied from class:HtmlElementCreates a copy of this HTML element.- Overrides:
clonein classInputElement- Returns:
- a new
HtmlElementobject which is an exact copy of this HTML element
-
-