Package com.groiss.gui.component
Class Button
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.AbstractContainer
com.groiss.gui.component.Button
- All Implemented Interfaces:
Component
,Container
,Serializable
,Cloneable
A HTML button element. <input type=button ..
- See Also:
-
Field Summary
Fields inherited from class com.groiss.gui.AbstractContainer
components
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
ConstructorDescriptionButton()
Standard constructor with label and actionConstructor with label, action and style. -
Method Summary
Methods inherited from class com.groiss.gui.AbstractContainer
add, get, getAll, getAll, getAllDeep, getByName, getComponents, getWithParent, init, remove, setBrowserMode, substitute
Methods inherited from class com.groiss.gui.AbstractComponent
addClass, clone, create, getAttribute, getBrowserMode, getContent, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setClass, setContent, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toggleClass, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.groiss.gui.Component
addClass, clone, getAttribute, getBrowserMode, getContent, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, removeAttribute, removeClass, setActionListener, setAttribute, setClass, setContent, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toggleClass, toString
-
Constructor Details
-
Button
public Button() -
Button
Standard constructor with label and action- Parameters:
label
- the text on the buttonaction
- a javascript expression
-
Button
-
Button
-
Button
Constructor with label, action and style.- Parameters:
label
- the text on the buttonaction
- a javascript expressionstyleClass
- the name of a CSS class
-
-
Method Details
-
setLabelStr
sets the text on the button- Parameters:
label
- - the text String
-
getLabelStr
-