public class Tabs extends AbstractContainer
Modifier and Type | Field and Description |
---|---|
static short |
ALERT_ALWAYS |
static short |
ALERT_ON_CHANGE |
static short |
NO_ALERT |
components
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
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
add, get, getAll, getAll, getAllDeep, getByName, getComponents, getWithParent, init, remove, setBrowserMode, substitute
clone, create, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, removeAttribute, setActionListener, setAttribute, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toString
public static final short NO_ALERT
public static final short ALERT_ON_CHANGE
public static final short ALERT_ALWAYS
public Tabs(java.util.List<Link> tabs)
tabs
- a list of Links.public Tabs(java.util.List<Link> tabs, int selTab)
public Tabs(java.util.List<Link> tabs, int selTab, boolean alert)
public Tabs(java.util.List<Link> tabs, int selTab, boolean alert, int frameborder)
public Tabs(java.util.List<Link> tabs, int selTab, short alertMode, int frameborder)
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-classpublic void setDivClass(java.lang.String cssClass)
cssClass
- String holding the name of the CSS class.public void setContent(java.lang.Object o)
AbstractComponent
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.