Package org.loboevolution.component
Interface ITabbedPane
- All Known Implementing Classes:
DnDTabbedPane
public interface ITabbedPane
-
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
Indicates the relative location of the tab pane within a series of tabbed panes.int
Returns the actively selected tab in the list of tabs.void
Inserts a new tab into the panel at the given index.void
remove
(int index) Removes the tab at the given index from the tabbed panel.void
Associates a pop-up menu with the tabbed pane using the given panel as the pop-up menu's parent.void
setSelectedIndex
(int index) Changes the selected tab.
-
Method Details
-
getIndex
int getIndex()Indicates the relative location of the tab pane within a series of tabbed panes.- Returns:
- the index, starting from the left-most pane
-
setComponentPopupMenu
Associates a pop-up menu with the tabbed pane using the given panel as the pop-up menu's parent.- Parameters:
panel
- The parent to the pop-up menu to create.
-
getSelectedIndex
int getSelectedIndex()Returns the actively selected tab in the list of tabs.- Returns:
- A zero-based index.
-
setSelectedIndex
void setSelectedIndex(int index) Changes the selected tab.- Parameters:
index
- A zero-based index.
-
remove
void remove(int index) Removes the tab at the given index from the tabbed panel.- Parameters:
index
- Zero-based index.
-
insertTab
Inserts a new tab into the panel at the given index.- Parameters:
title
- Descriptive tab title.icon
- Small identifying icon.component
- Parent component.tip
- Tooltip.index
- Zero-based index.
-