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, java.io.Serializable, java.lang.Cloneable
public class Tabs
- extends AbstractContainer
A component for tabs.
- 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 |
Constructor Summary |
Tabs(java.util.List<Link> tabs)
Construct a tab. |
Tabs(java.util.List<Link> tabs,
int selTab)
|
Tabs(java.util.List<Link> tabs,
int selTab,
boolean alert)
|
Tabs(java.util.List<Link> tabs,
int selTab,
boolean alert,
int frameborder)
|
Tabs(java.util.List<Link> tabs,
int selTab,
short alertMode,
int frameborder)
Construct a tab. |
Method Summary |
java.lang.Object |
getContent()
|
void |
setContent(java.lang.Object o)
sets the content of the component |
void |
setDivClass(java.lang.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 |
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, removeAttribute, setActionListener, setAttribute, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, 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 |
clone, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, removeAttribute, setActionListener, setAttribute, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toString |
NO_ALERT
public static final short NO_ALERT
- See Also:
- Constant Field Values
ALERT_ON_CHANGE
public static final short ALERT_ON_CHANGE
- See Also:
- Constant Field Values
ALERT_ALWAYS
public static final short ALERT_ALWAYS
- See Also:
- Constant Field Values
Tabs
public Tabs(java.util.List<Link> tabs)
- Construct a tab.
- Parameters:
tabs
- a list of Links.
Tabs
public Tabs(java.util.List<Link> tabs,
int selTab)
Tabs
public Tabs(java.util.List<Link> tabs,
int selTab,
boolean alert)
Tabs
public Tabs(java.util.List<Link> tabs,
int selTab,
boolean alert,
int frameborder)
Tabs
public Tabs(java.util.List<Link> tabs,
int selTab,
short alertMode,
int frameborder)
- 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 is NO_ALERT
no alert is shown. If the value is ALERT_ON_CHANGE
the alert will be shown if something has been changed within the tab. If value is ALERT_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
setDivClass
public void setDivClass(java.lang.String cssClass)
- 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
public void setContent(java.lang.Object o)
- Description copied from class:
AbstractComponent
- sets the content of the component
- Specified by:
setContent
in interface Component
- Overrides:
setContent
in class AbstractComponent
- Parameters:
o
- any object where the string representation is used for rendering
getContent
public java.lang.Object getContent()
- Specified by:
getContent
in interface Component
- Overrides:
getContent
in class AbstractComponent
- Returns:
- the content object of the component
@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.