Package com.groiss.gui.component
Class SubmitButton
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.component.SubmitButton
- All Implemented Interfaces:
Component
,Serializable
,Cloneable
A HTML submit button <input type=submit ...
- See Also:
-
Field Summary
Fields inherited from class com.groiss.gui.AbstractComponent
ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, parent, parentElem, READONLY, root, viewMode
Fields inherited from interface com.groiss.gui.Component
LABELLEDBY
-
Constructor Summary
ConstructorDescriptionSubmitButton
(String label) Standard constructor with labelSubmitButton
(String label, String styleClass) Standard constructor with labelSubmitButton
(String label, String name, String styleClass) Constructor with label, action and style. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setContent
(Object o) sets the content of the componentvoid
Methods inherited from class com.groiss.gui.AbstractComponent
addClass, clone, create, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setBrowserMode, setClass, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toggleClass, toString
-
Constructor Details
-
SubmitButton
public SubmitButton() -
SubmitButton
Standard constructor with label- Parameters:
label
- the text on the button
-
SubmitButton
Standard constructor with label- Parameters:
label
- the text on the buttonstyleClass
- the name of a CSS class
-
SubmitButton
Constructor with label, action and style.- Parameters:
label
- the text on the buttonname
- the name of the buttonstyleClass
- the name of a CSS class
-
-
Method Details
-
setContent
Description copied from class:AbstractComponent
sets the content of the component- Specified by:
setContent
in interfaceComponent
- Overrides:
setContent
in classAbstractComponent
- Parameters:
o
- any object where the string representation is used for rendering
-
getContent
- Specified by:
getContent
in interfaceComponent
- Overrides:
getContent
in classAbstractComponent
- Returns:
- the content object of the component
-
getSubmitAction
-
setSubmitAction
-