public class XholonGwtTabPanelHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PANEL_HEIGHT_INITIAL
Initial height of the resize panel.
|
Constructor and Description |
---|
XholonGwtTabPanelHelper() |
Modifier and Type | Method and Description |
---|---|
static int |
addTab(java.lang.Object content,
java.lang.String tabText,
java.lang.String tooltip,
boolean isHtml)
Add a tab to the TabLayoutPanel.
|
static void |
clearConsoleContents()
Remove all children of the root "xhconsole" element.
|
static java.lang.Object |
getWidget(int index)
Get the widget at a specified tab index.
|
static void |
selectTab(int index) |
static void |
updateTabHeader(java.lang.String tabText,
java.lang.String tooltip,
int index)
Update the text displayed in a tab header.
|
public static final java.lang.String PANEL_HEIGHT_INITIAL
public static int addTab(java.lang.Object content, java.lang.String tabText, java.lang.String tooltip, boolean isHtml)
RootPanel ("xhtabs") Grid ResizeLayoutPanel TabLayoutPanel (contains 1 or more tabs) HTML (tab header) ScrollPanel (tab contents) HTML ... HTML (tab header) ScrollPanel (tab contents) HTML ResizePushButton (extends PushButton)
content
- The text or other content to place inside the tab's panel.tabText
- The displayed header for the tab.tooltip
- Text that can display as a tooltip on the tab's header.isHtml
- Is the text HTML.
true This is html-text that should go in the DOM.
false This is plain-text that should just be displayed as is. It may in fact be HTML or XML.public static void updateTabHeader(java.lang.String tabText, java.lang.String tooltip, int index)
tabText
- Text to display on the tab header.tooltip
- Tooltip to display when focus is on the tab header.
If null, then no tooltip will display.index
- Index of the tab whose header is being updated.
If -1, then the currently selected tab will be updated.public static java.lang.Object getWidget(int index)
public static void clearConsoleContents()
public static void selectTab(int index)