public class JTabbedPane extends JComponent
| Modifier | Constructor and Description |
|---|---|
protected |
JTabbedPane(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 JTabbedPane。
|
| Modifier and Type | Method and Description |
|---|---|
ItemIdentifier |
getSelectedTab()
获取 当前所选选项卡。
|
int |
getSelectedTabIndex()
获取 the index of the currently selected tab or -1 (4Test: 0) if no tab is selected.
|
int |
getTabCount()
获取 选项卡的数量。
|
int |
getTabIndex(String title)
返回选项卡索引。
|
int |
getTabRunCount()
获取 用于显示选项卡的当前运行的选项卡数量。
|
String |
getTabTitle(int index)
返回选项卡标题。
|
boolean |
isTabEnabled(int tabIndex)
返回当前是否启用选项卡。
|
boolean |
isTabEnabled(ItemIdentifier tab)
返回当前是否启用选项卡。
|
boolean |
isTabEnabled(String tabText)
返回当前是否启用选项卡。
|
void |
select(int tabIndex)
选择指定的选项卡。
|
void |
select(ItemIdentifier tab)
选择指定的选项卡。
|
void |
select(String tabText)
选择指定的选项卡。
|
getToolTipTextclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAccessibleName, getAccessibleRole, getBackground, getCursor, getFont, getForeground, getHeight, getName, getNativeHandle, getWidth, isEnabled, isFocusable, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, scrollIntoView, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeyscaptureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForPropertyequals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toStringprotected JTabbedPane(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 JTabbedPane 的句柄desktop - 此对象所在的桌面public int getTabIndex(String title)
title - 选项卡的标题public String getTabTitle(int index)
index - 选项卡的索引。. The value is zero-based.public boolean isTabEnabled(ItemIdentifier tab)
tab - 选项卡的名称或索引public boolean isTabEnabled(String tabText)
tabText - 选项卡的名称或索引public boolean isTabEnabled(int tabIndex)
tabIndex - 选项卡的名称或索引public void select(ItemIdentifier tab)
tab - 可选择的选项卡的名称或索引public void select(String tabText)
tabText - 可选择的选项卡的名称或索引public void select(int tabIndex)
tabIndex - 可选择的选项卡的名称或索引public ItemIdentifier getSelectedTab()
public int getSelectedTabIndex()
public int getTabCount()
public int getTabRunCount()
Copyright 2009-2012 Micro Focus. All Rights Reserved.