public class TabbedPaneSet extends Div
HTMLDoc doc = new HTMLDoc(); HTML html = new HTML(); doc.setRootTag(html); // Add the CSS classes needed for the tabs html.getHead().addStyle(TabbedPaneSet.generateCSS()); // Add the javascript needed for the tabs html.getHead().addJavascript(TabbedPaneSet.generateJavascript()); TabbedPaneSet tabSet1 = new TabbedPaneSet(); tabSet1.addTab("Tab 1", new InputButton("Button 1")); tabSet1.addTab("Tab 2", new InputText("foo", "bar")); tabSet1.addTab("Tab 3", new Span("pane3"); Body body = html.getBody(); // Set the onload to initialize the tabs body.setOnLoad(tabSet1.generateOnLoad()); body.addSubtag(tabSet1);
XMLContainerImpl.sMode
mContentAndSubtagList
Constructor and Description |
---|
TabbedPaneSet() |
TabbedPaneSet(Orientation inOrientation) |
Modifier and Type | Method and Description |
---|---|
void |
addTab(HTMLTag inLabel,
HTMLTag inPaneContent) |
void |
addTab(HTMLTag inLabel,
HTMLTag inPaneContent,
boolean inIsSelected) |
void |
addTab(HTMLTag inLabel,
HTMLTag inPaneContent,
boolean inIsSelected,
String inOnClick) |
void |
addTab(String inLabel,
HTMLTag inPaneContent) |
void |
addTab(String inLabel,
HTMLTag inPaneContent,
boolean inIsSelected) |
void |
addTab(String inLabel,
HTMLTag inPaneContent,
boolean inIsSelected,
String inOnClick) |
static String |
generateCSS() |
static String |
generateJavascript() |
String |
generateOnLoad()
Createds the javascript for the body's onload() that is necessary to
initialize the tabbed pane set (and any tabbed pane sets contained within it).
|
String |
getId() |
static void |
setDefaultLabelFont(Font inValue) |
static void |
setDefaultSelectedTabColor(Color inValue) |
static void |
setDefaultSelectedTabFontColor(Color inValue) |
static void |
setDefaultUnselectedTabColor(Color inValue) |
static void |
setDefaultUnselectedTabFontColor(Color inValue) |
TabbedPaneSet |
useRoundedTabs(boolean inValue)
Tabs are rounded by default.
|
addButton, addButton, addCenter, addCenter, addCenter, addCheckbox, addCheckbox, addClass, addDiv, addDiv, addDiv, addFileInput, addFileInput, addFileInput, addForm, addForm, addImage, addLabel, addLabel, addLink, addLink, addLink, addLink, addNobr, addNobr, addNobr, addPasswordInput, addPasswordInput, addPre, addPre, addPre, addRadio, addRadio, addReset, addScript, addSelect, addSpan, addSpan, addSpan, addStyle, addSubmit, addSubmit, addTable, addTextarea, addTextarea, addTextInput, addTextInput, addUnorderedList, br, br, getTitle, hr, hr, nbsp, setAlign, setClass, setDraggable, setId, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setStyle, setTitle
appendToOnClick, appendToOnDblClick, appendToOnKeyDown, appendToOnKeyPress, appendToOnKeyUp, appendToOnMouseDown, appendToOnMouseMove, appendToOnMouseOut, appendToOnMouseOver, appendToOnMouseUp, getOnClick, getOnDblClick, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp
applyColorSpec, clone, getClassAttribute, getDraggable, getStyle, initFromXMLNode, removeClass, removeStyleProperty, setAttribute, setAttribute, setStyleColor, toHTML, toHTML, toHTML, toIndentedHTML, toIndentedHTML, toIndentedHTML, toText
addSubtag, addSubtag, addXMLNamespaceDeclaration, compareTo, equals, findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getEndTag, getNamespace, getQualifiedTagName, getStartTag, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttributes, setContent, setDefaultXMLNamespaceDeclaration, setNamespace, setSortAttributesBeforeWriting, setTagName, setTagName, sortAttributes, toIndentedXML, toIndentedXML, toIndentedXML, toIndentedXML, toString, toXML, toXML, toXML, toXML, useDoubleQuotes, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContent, addContentWithoutEscaping, addSubtag, addSubtag, addSubtags, clearContent, clearSubtags, getContent, getContentPlusSubtagList, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagById, getRequiredSubtagById, getRequiredSubtagByName, getRequiredSubtagByName, getSubtagByAttribute, getSubtagByAttribute, getSubtags, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByClass, getSubtagsByClass, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContent, hasContentOrSubtags, indexOf, innerHTML, removeSubtag, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByClass, removeSubtagsByClass, removeSubtagsByName, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtags
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getNamespace, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttributes, setNamespace, setTagName, setTagName, toIndentedXML, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContent, addContentWithoutEscaping, addSubtag, addSubtags, clearContent, clearSubtags, getContent, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagByName, getRequiredSubtagByName, getSubtags, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContent, indexOf, removeSubtag, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtags
toIndentedXML, toIndentedXML, toIndentedXML, toXML, toXML, toXML
public TabbedPaneSet()
public TabbedPaneSet(Orientation inOrientation)
public static void setDefaultLabelFont(Font inValue)
public static void setDefaultSelectedTabColor(Color inValue)
public static void setDefaultUnselectedTabColor(Color inValue)
public static void setDefaultSelectedTabFontColor(Color inValue)
public static void setDefaultUnselectedTabFontColor(Color inValue)
public static String generateCSS()
public static String generateJavascript()
public TabbedPaneSet useRoundedTabs(boolean inValue)
public String generateOnLoad()
public void addTab(String inLabel, HTMLTag inPaneContent, boolean inIsSelected, String inOnClick)
jataylor@hairyfatguy.com