public class TabbedPaneWrapper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TabbedPaneWrapper.AsJBTabs |
static class |
TabbedPaneWrapper.AsJTabbedPane |
static class |
TabbedPaneWrapper.TabbedPaneHolder |
static class |
TabbedPaneWrapper.TabWrapper |
Modifier and Type | Field and Description |
---|---|
protected TabbedPane |
myTabbedPane |
Modifier | Constructor and Description |
---|---|
protected |
TabbedPaneWrapper(boolean construct) |
|
TabbedPaneWrapper(Disposable parentDisposable) |
|
TabbedPaneWrapper(int tabPlacement,
PrevNextActionsDescriptor installKeyboardNavigation,
Disposable parentDisposable)
Creates tabbed pane wrapper with specified tab placement
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener) |
void |
addMouseListener(java.awt.event.MouseListener listener) |
void |
addTab(java.lang.String title,
javax.swing.Icon icon,
javax.swing.JComponent component,
java.lang.String tip) |
void |
addTab(java.lang.String title,
javax.swing.JComponent component) |
protected TabbedPane |
createTabbedPane(int tabPlacement) |
protected TabbedPaneWrapper.TabbedPaneHolder |
createTabbedPaneHolder() |
static TabbedPaneWrapper |
get(javax.swing.JTabbedPane tabs) |
javax.swing.JComponent |
getComponent() |
javax.swing.JComponent |
getComponentAt(int i) |
java.awt.Color |
getForegroundAt(int index) |
javax.swing.JComponent |
getSelectedComponent() |
int |
getSelectedIndex() |
java.lang.String |
getSelectedTitle() |
java.awt.Component |
getTabComponentAt(int index) |
int |
getTabCount() |
int |
getTabLayoutPolicy() |
java.lang.String |
getTitleAt(int i) |
int |
indexOfComponent(javax.swing.JComponent component) |
void |
insertTab(java.lang.String title,
javax.swing.Icon icon,
javax.swing.JComponent component,
java.lang.String tip,
int index) |
void |
installKeyboardNavigation()
Deprecated.
Keyboard navigation is installed/deinstalled automatically. This method does nothing now.
|
void |
removeAll() |
void |
removeChangeListener(javax.swing.event.ChangeListener listener) |
void |
removeTabAt(int index) |
void |
setComponentAt(int index,
javax.swing.JComponent component) |
void |
setEnabledAt(int index,
boolean enabled) |
void |
setForegroundAt(int index,
java.awt.Color color) |
void |
setIconAt(int index,
javax.swing.Icon icon) |
void |
setSelectedComponent(javax.swing.JComponent component) |
void |
setSelectedIndex(int index) |
void |
setSelectedIndex(int index,
boolean requestFocus) |
void |
setSelectedTitle(java.lang.String title) |
void |
setTabLayoutPolicy(int policy) |
void |
setTabPlacement(int tabPlacement) |
void |
setTitleAt(int index,
java.lang.String title) |
void |
setToolTipTextAt(int index,
java.lang.String toolTipText) |
void |
uninstallKeyboardNavigation()
Deprecated.
Keyboard navigation is installed/deinstalled automatically. This method does nothing now.
|
protected TabbedPane myTabbedPane
protected TabbedPaneWrapper(boolean construct)
public TabbedPaneWrapper(Disposable parentDisposable)
public TabbedPaneWrapper(int tabPlacement, PrevNextActionsDescriptor installKeyboardNavigation, Disposable parentDisposable)
tabPlacement
- tab placement. It one of the SwingConstants.TOP
,
SwingConstants.LEFT
, SwingConstants.BOTTOM
or
SwingConstants.RIGHT
.public final void addChangeListener(javax.swing.event.ChangeListener listener)
public final void removeChangeListener(javax.swing.event.ChangeListener listener)
protected TabbedPaneWrapper.TabbedPaneHolder createTabbedPaneHolder()
public final javax.swing.JComponent getComponent()
public final void addTab(java.lang.String title, javax.swing.Icon icon, javax.swing.JComponent component, java.lang.String tip)
JTabbedPane.addTab(String, Icon, Component, String)
public final void addTab(java.lang.String title, javax.swing.JComponent component)
public void insertTab(java.lang.String title, javax.swing.Icon icon, javax.swing.JComponent component, java.lang.String tip, int index)
protected TabbedPane createTabbedPane(int tabPlacement)
public final void setTabPlacement(int tabPlacement)
JTabbedPane.setTabPlacement(int)
public final void addMouseListener(java.awt.event.MouseListener listener)
public final int getSelectedIndex()
public final javax.swing.JComponent getSelectedComponent()
JTabbedPane.getSelectedComponent()
public final void setSelectedIndex(int index)
public final void setSelectedIndex(int index, boolean requestFocus)
public final void setSelectedComponent(javax.swing.JComponent component)
public final void removeTabAt(int index)
public final int getTabCount()
public final java.awt.Color getForegroundAt(int index)
public final void setForegroundAt(int index, java.awt.Color color)
JTabbedPane.setForegroundAt(int, Color)
public final java.awt.Component getTabComponentAt(int index)
public final javax.swing.JComponent getComponentAt(int i)
JTabbedPane.setComponentAt(int, Component)
public final void setTitleAt(int index, java.lang.String title)
public final void setToolTipTextAt(int index, java.lang.String toolTipText)
public final void setComponentAt(int index, javax.swing.JComponent component)
JTabbedPane.setComponentAt(int, Component)
public final void setIconAt(int index, javax.swing.Icon icon)
JTabbedPane.setIconAt(int, Icon)
public final void setEnabledAt(int index, boolean enabled)
public final int indexOfComponent(javax.swing.JComponent component)
JTabbedPane.indexOfComponent(Component)
public final int getTabLayoutPolicy()
JTabbedPane.getTabLayoutPolicy()
public final void setTabLayoutPolicy(int policy)
JTabbedPane.setTabLayoutPolicy(int)
@Deprecated public final void installKeyboardNavigation()
@Deprecated public final void uninstallKeyboardNavigation()
public final java.lang.String getTitleAt(int i)
public void setSelectedTitle(java.lang.String title)
public java.lang.String getSelectedTitle()
public void removeAll()
public static TabbedPaneWrapper get(javax.swing.JTabbedPane tabs)