|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.Container
com.sapportals.htmlb.TabStrip
A control similar to a JTabbedPane
Caution: Netscape 4 causes a lot of trouble with this control. If you're going to use a TabStrip and your application must (sooner or later) support/work on Netscape 4 you will have to change your application code.
Copyright 2004 SAP AG
| Field Summary | |
static String |
DEFAULT_SELECTION_HANDLER
Default Event action that is set for browsers like Netscape 4 which require server side handling for switching between tab items. |
static String |
UI_ID
|
static int |
VAR_CONTENT_BEGIN
|
static int |
VAR_CONTENT_END
|
static int |
VAR_HEADBEGIN
|
static int |
VAR_HEADEND
|
static int |
VAR_HEADITEM_BEGIN
|
static int |
VAR_HEADITEM_END
|
static int |
VAR_HEADITEM_SEP
|
static int |
VAR_ITEM_BEGIN
|
static int |
VAR_ITEM_END
|
| Fields inherited from class com.sapportals.htmlb.Container |
elements |
| Constructor Summary | |
TabStrip(String name)
|
|
| Method Summary | |
TabStripItem |
addTab(int index)
add a pane to the TabStrip with a given index. |
TabStripItem |
addTab(int index,
Component headerComponent,
Component bodyContent)
add a pane to the TabStrip with a given index, header and body. |
TabStripItem |
addTab(int index,
String title,
Component bodyContent)
add a pane to the TabStrip with a given index, title and body. |
String |
getAccessibilityDescription()
get the semantical description of the component in it's applicationcontext used by screenreaders |
String |
getBodyHeight()
gets the height of the body of the TabStrip |
int |
getCurrentIndex()
INTERNAL USE ONLY. |
CellHAlign |
getHAlign()
gets the horizontal alignment of the body content |
int |
getIndexPosition(int index)
|
TabStripItem |
getItem(int index)
gets a TabStripItem at the given index. |
int |
getItemCount()
gets the number of panes that are contained in this TabStrip |
IndexedLinkedList |
getItems()
|
int |
getSelection()
gets the index of the selected pane |
String |
getTooltip()
|
String |
getUI()
get a identification String for the renderer that is unique across all supported components. |
CellVAlign |
getVAlign()
gets the vertical alignment of the body content |
String |
getWidth()
gets the width of the body of the TabStrip |
protected void |
initFromPageContext(IPageContext pc,
String baseId)
internal use only. |
void |
setAccessibilityDescription(String accessibilityDescription)
sets the sematical description for the component in it's applicationcontext used by screenreaders |
void |
setBodyHeight(String height)
sets the height of the body of the TabStrip |
void |
setCurrentIndex(int currentIndex)
INTERNAL USE ONLY. |
void |
setHAlign(CellHAlign hAlign)
sets the horizontal alignment of the body content |
void |
setSelection(int selection)
sets the selected pane by index |
void |
setTooltip(String tooltip)
|
void |
setVAlign(CellVAlign vAlign)
sets the vertical alignment of the body content |
void |
setWidth(String width)
sets the width of the body of the TabStrip |
| Methods inherited from class com.sapportals.htmlb.Container |
addComponent, addRawText, addText, getChildCount, iterator, preRender, removeComponent, render |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromShortId, initializeFromId, isJsObjectNeeded, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
public static final int VAR_HEADBEGIN
public static final int VAR_HEADITEM_BEGIN
public static final int VAR_HEADITEM_END
public static final int VAR_HEADITEM_SEP
public static final int VAR_HEADEND
public static final int VAR_CONTENT_BEGIN
public static final int VAR_ITEM_BEGIN
public static final int VAR_ITEM_END
public static final int VAR_CONTENT_END
public static final String DEFAULT_SELECTION_HANDLER
| Constructor Detail |
public TabStrip(String name)
| Method Detail |
protected void initFromPageContext(IPageContext pc,
String baseId)
initFromPageContext in class Componentpc - the context, including the parametersbaseId - the prefix used for the component. (The
result of a former RenderUtil.getIdForForm(rc, c);)public int getItemCount()
public int getIndexPosition(int index)
public int getSelection()
public void setSelection(int selection)
selection - the index of the selected panepublic String getBodyHeight()
public void setBodyHeight(String height)
height - the heightpublic String getWidth()
public void setWidth(String width)
width - the heightpublic CellVAlign getVAlign()
public void setVAlign(CellVAlign vAlign)
vAlign - the alignmentpublic CellHAlign getHAlign()
public void setHAlign(CellHAlign hAlign)
hAlign - the alignmentpublic String getTooltip()
public void setTooltip(String tooltip)
public TabStripItem addTab(int index)
index - the index of the pane
public TabStripItem addTab(int index,
String title,
Component bodyContent)
If the index already existed the old pane will be replaced
index - the index of the panetitle - the title for the panebodyContent - a Component containing the body
public TabStripItem addTab(int index,
Component headerComponent,
Component bodyContent)
If the index already existed the old pane will be replaced
index - the index of the paneheaderComponent - the header for the panebodyContent - a Component containing the body
public TabStripItem getItem(int index)
index - the index of the pane
public IndexedLinkedList getItems()
public int getCurrentIndex()
public void setCurrentIndex(int currentIndex)
public String getUI()
Component
getUI in class Componentpublic String getAccessibilityDescription()
public void setAccessibilityDescription(String accessibilityDescription)
accessibilityDescription - description text
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||