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 anInputElement
which 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 HtmlElement
clone()
Creates a copy of this HTML element.void
delete()
static long
getCPtr(ImageButtonElement obj)
For internal use only.int
getX()
Get the value of the X coordinate that will be sent to the serverint
getY()
Get the value of the Y coordinate that will be sent to the serverboolean
isSuccessfulControl()
Returnstrue
if thisImageButtonElement
represents a successful control.void
setX(int x)
Set the value of the X coordinate that will be sent to the servervoid
setY(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:
delete
in classInputElement
-
isSuccessfulControl
public boolean isSuccessfulControl()
Returnstrue
if thisImageButtonElement
represents 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:
isSuccessfulControl
in classInputElement
- Returns:
true
if thisImageButtonElement
represents 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:HtmlElement
Creates a copy of this HTML element.- Overrides:
clone
in classInputElement
- Returns:
- a new
HtmlElement
object which is an exact copy of this HTML element
-
-