All Packages Class Hierarchy This Package Previous Next Index
Class jclass.bwt.TabPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----jclass.bwt.JCContainer
|
+----jclass.bwt.TabPanel
- public class TabPanel
- extends JCContainer
A private container which manages a JCTabManager's tab buttons.
- See Also:
- JCTabManager, JCTabButton
-
TabPanel(JCTabManager)
- Creates an empty container with the specified parent.
-
add(Component, int)
-
Adds the specified component to this container at the given position.
-
keyDown(Event, int)
-
-
keyUp(Event, int)
-
-
layout()
- Lays out the tabs according to the tab manager's tabSpacing, tabWidth
and tabStretch values.
-
locate(int, int)
- Locates the component that contains the position.
-
mouseDown(Event, int, int)
-
-
paintInterior(Graphics)
- Paints all buttons.
-
preferredSize()
- Calculates the size based on the tab button's sizes.
-
processKeyEvent(KeyEvent)
-
Processes key events occurring on this component by
dispatching them to any registered KeyListener objects.
-
remove(Component)
-
Removes the specified component from this container.
-
repaint()
- Overrides Component.repaint(), which does not always call paint().
-
setLayout(LayoutManager)
-
Sets the layout manager for this container.
TabPanel
public TabPanel(JCTabManager tab_manager)
- Creates an empty container with the specified parent.
setLayout
public final void setLayout(LayoutManager mgr)
- Sets the layout manager for this container. This method is
overridden to prevent the layout mgr from being set.
- Overrides:
- setLayout in class Container
layout
public synchronized void layout()
- Lays out the tabs according to the tab manager's tabSpacing, tabWidth
and tabStretch values.
- Overrides:
- layout in class Container
preferredSize
public Dimension preferredSize()
- Calculates the size based on the tab button's sizes.
- Overrides:
- preferredSize in class JCContainer
add
public Component add(Component comp,
int pos)
- Adds the specified component to this container at the given position.
- Parameters:
- pos - the position at which to insert the component. -1
means insert at the end.
- Overrides:
- add in class Container
remove
public void remove(Component comp)
- Removes the specified component from this container.
- Overrides:
- remove in class Container
- See Also:
- add
locate
public Component locate(int x,
int y)
- Locates the component that contains the position.
- Returns:
- null if the container does not contain the position;
returns the component otherwise.
- Overrides:
- locate in class Container
repaint
public void repaint()
- Overrides Component.repaint(), which does not always call paint().
- Overrides:
- repaint in class JCContainer
paintInterior
public void paintInterior(Graphics gc)
- Paints all buttons.
- Overrides:
- paintInterior in class JCContainer
mouseDown
public boolean mouseDown(Event ev,
int x,
int y)
- Overrides:
- mouseDown in class Component
processKeyEvent
protected void processKeyEvent(KeyEvent key_ev)
- Processes key events occurring on this component by
dispatching them to any registered KeyListener objects.
- Overrides:
- processKeyEvent in class Component
keyDown
public boolean keyDown(Event ev,
int key)
- Overrides:
- keyDown in class Component
keyUp
public boolean keyUp(Event ev,
int key)
- Overrides:
- keyUp in class Component
All Packages Class Hierarchy This Package Previous Next Index