All Packages Class Hierarchy This Package Previous Next Index
Class fr.l2f.gui.FolderTabPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----fr.l2f.gui.FolderTabPanel
- public class FolderTabPanel
- extends Panel
A panel that displays Windows 95-style folder tabs that displays
discrete components when a tab is selected.
-
images
- The tab images
-
insets
- The border within the FolderTabPanel to display between the rectangle
and the contained components.
-
labels
- The tab labels.
-
p_height
-
-
p_width
-
-
panels
- The panels representing each tab.
-
selectedPanel
- The label of the currently selected tab.
-
selectedTabFont
-
-
tabHeight
- The height of the tabs.
-
tabWidthBuffer
- The margin to the left and right of the tab text.
-
tabWidths
- The widths of the tabs.
-
FolderTabPanel()
- Constructs a new FolderTabPanel.
-
addPanel(Panel, String)
-
-
addPanel(Panel, String, Image)
- Adds a tab to the FolderTabPanel.
-
doLayout()
- Performs a layout() that shapes the current tab into the FolderTabPanel.
-
getInsets()
- Returns the border within the FolderTabPanel to display between the rectangle
and the contained components.
-
getMinimumSize()
-
-
getPreferredSize()
-
-
getSelectedPanel()
- Returns the panel of the selected tab.
-
getSelectedPanelLabel()
- Returns the label of the selected tab.
-
getTabHeight()
- Returns the height of the tabs.
-
getTabWidthBuffer()
- Returns the margin to the left and right of the tab text.
-
next()
-
-
paint(Graphics)
- Paints the FolderTabPanel and its selected tab.
-
previous()
-
-
processMouseEvent(MouseEvent)
-
-
removePanel(String)
- Removes a tab from the FolderTabPanel.
-
setFont(Font)
-
-
setInsets(Insets)
- Sets the border within the FolderTabPanel to display between the rectangle
and the contained components.
-
setPanel(String)
- Sets the FolderTabPanel's active tab.
-
setSize(int, int)
-
-
setTabHeight(int)
- Sets the height of the tabs.
-
setTabWidthBuffer(int)
- Sets the margin to the left and right of the tab text.
selectedTabFont
protected Font selectedTabFont
labels
protected Vector labels
- The tab labels.
panels
protected Vector panels
- The panels representing each tab.
images
protected Vector images
- The tab images
tabWidths
protected int tabWidths[]
- The widths of the tabs.
selectedPanel
protected String selectedPanel
- The label of the currently selected tab.
insets
protected Insets insets
- The border within the FolderTabPanel to display between the rectangle
and the contained components.
tabHeight
protected int tabHeight
- The height of the tabs.
tabWidthBuffer
protected int tabWidthBuffer
- The margin to the left and right of the tab text.
p_width
protected int p_width
p_height
protected int p_height
FolderTabPanel
public FolderTabPanel()
- Constructs a new FolderTabPanel.
addPanel
public void addPanel(Panel panel,
String label)
addPanel
public void addPanel(Panel panel,
String label,
Image image)
- Adds a tab to the FolderTabPanel.
- Parameters:
- panel - the panel to display when the tab is selected
- label - the tab label
removePanel
public void removePanel(String label)
- Removes a tab from the FolderTabPanel.
- Parameters:
- label - the label of the tab to remove.
next
public void next()
previous
public void previous()
setPanel
public void setPanel(String label)
- Sets the FolderTabPanel's active tab.
- Parameters:
- label - the label of the tab to select.
doLayout
public void doLayout()
- Performs a layout() that shapes the current tab into the FolderTabPanel.
- Overrides:
- doLayout in class Container
setSize
public void setSize(int w,
int h)
- Overrides:
- setSize in class Component
getSelectedPanelLabel
public String getSelectedPanelLabel()
- Returns the label of the selected tab.
getSelectedPanel
public Panel getSelectedPanel()
- Returns the panel of the selected tab.
getInsets
public Insets getInsets()
- Returns the border within the FolderTabPanel to display between the rectangle
and the contained components.
- Overrides:
- getInsets in class Container
setInsets
public void setInsets(Insets insets)
- Sets the border within the FolderTabPanel to display between the rectangle
and the contained components.
getTabHeight
public int getTabHeight()
- Returns the height of the tabs.
setTabHeight
public void setTabHeight(int tabHeight)
- Sets the height of the tabs.
getTabWidthBuffer
public int getTabWidthBuffer()
- Returns the margin to the left and right of the tab text.
setTabWidthBuffer
public void setTabWidthBuffer(int tabWidthBuffer)
- Sets the margin to the left and right of the tab text.
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Container
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Container
setFont
public void setFont(Font f)
- Overrides:
- setFont in class Component
paint
public void paint(Graphics g)
- Paints the FolderTabPanel and its selected tab.
- Overrides:
- paint in class Container
processMouseEvent
public void processMouseEvent(MouseEvent event)
- Overrides:
- processMouseEvent in class Component
All Packages Class Hierarchy This Package Previous Next Index