Package com.groiss.gui.component
Class Tabs
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.AbstractContainer
com.groiss.gui.component.Tabs
- All Implemented Interfaces:
Component
,Container
,Serializable
,Cloneable
A component for tabs.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setContent
(Object o) sets the content of the componentvoid
setDivClass
(String cssClass) Tabs are placed in a HTML div element.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, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setClass, 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, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, removeAttribute, removeClass, setActionListener, setAttribute, setClass, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toggleClass, toString
-
Field Details
-
NO_ALERT
public static final short NO_ALERT- See Also:
-
ALERT_ON_CHANGE
public static final short ALERT_ON_CHANGE- See Also:
-
ALERT_ALWAYS
public static final short ALERT_ALWAYS- See Also:
-
-
Constructor Details
-
Tabs
Construct a tab.- Parameters:
tabs
- a list of Links.
-
Tabs
-
Tabs
-
Tabs
-
Tabs
Construct a tab.- Parameters:
tabs
- a list of links.selTab
- the index of the tab which should be the selected onealertMode
- determines if an alert should be shown when the user wants to change the tab. If value isNO_ALERT
no alert is shown. If the value isALERT_ON_CHANGE
the alert will be shown if something has been changed within the tab. If value isALERT_ALWAYS
the alert is always shown (also if nothing has been changed in the tab).frameborder
- shows the frameborder in specified width (1 is default, 0 is no border): necessary to define here, because IE does not interpret definition in style-class
-
-
Method Details
-
setDivClass
Tabs are placed in a HTML div element. With this method you can define a CSS class for this div element. On default the div element doesn't have a class.- Parameters:
cssClass
- String holding the name of the CSS class.
-
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
-