Package org.loboevolution.component
Interface ITabbedPane
- All Known Implementing Classes:
DnDTabbedPane
public interface ITabbedPane
-
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()Indicates the relative location of the tab pane within a series of tabbed panes.intReturns the actively selected tab in the list of tabs.voidInserts a new tab into the panel at the given index.voidremove(int index) Removes the tab at the given index from the tabbed panel.voidAssociates a pop-up menu with the tabbed pane using the given panel as the pop-up menu's parent.voidsetSelectedIndex(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.
-