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
public class Button
- extends AbstractContainer
A HTML button element. <input type=button ..
- See Also:
- Serialized Form
| Fields inherited from class com.groiss.gui.AbstractComponent |
actions, 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, outputter, parent, parentElem, READONLY, root, viewMode |
| 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 |
clone, create, getActionListener, getAttribute, getBrowserMode, getContent, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, removeAttribute, setActionListener, setAttribute, setContent, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString |
| Methods inherited from interface com.groiss.gui.Component |
clone, getActionListener, getAttribute, getBrowserMode, getContent, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, removeAttribute, setActionListener, setAttribute, setContent, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toString |
Button
public Button()
Button
public Button(String label,
String action)
- Standard constructor with label and action
- Parameters:
label - the text on the buttonaction - a javascript expression
Button
public Button(String label,
String action,
boolean asInput)
Button
public Button(Component value,
String action)
Button
public Button(String label,
String action,
String styleClass)
- Constructor with label, action and style.
- Parameters:
label - the text on the buttonaction - a javascript expressionstyleClass - the name of a CSS class
setLabelStr
public void setLabelStr(String label)
- sets the text on the button
- Parameters:
label - - the text String
getLabelStr
public String getLabelStr()
@enterprise 8.0.10078 Copyright © 2001-2011 Groiss Informatics GmbH. All Rights Reserved.