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
LABELLEDBY
Constructor and Description |
---|
Tabs(List<Link> tabs)
Construct a tab.
|
Tabs(List<Link> tabs,
int selTab) |
Tabs(List<Link> tabs,
int selTab,
boolean alert) |
Tabs(List<Link> tabs,
int selTab,
boolean alert,
int frameborder) |
Tabs(List<Link> tabs,
int selTab,
short alertMode,
int frameborder)
Construct a tab.
|
Modifier and Type | Method and Description |
---|---|
Object |
getContent() |
void |
setContent(Object o)
sets the content of the component
|
void |
setDivClass(String cssClass)
Tabs are placed in a HTML div element.
|
add, get, getAll, getAll, getAllDeep, getByName, getComponents, getWithParent, init, remove, setBrowserMode, substitute
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public static final short NO_ALERT
public static final short ALERT_ON_CHANGE
public static final short ALERT_ALWAYS
public Tabs(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(String cssClass)
cssClass
- String holding the name of the CSS class.public void setContent(Object o)
AbstractComponent
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
@enterprise 10.0.38798 Copyright © 2001-2024 Groiss Informatics GmbH. All Rights Reserved.