|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--amber.awt.TabPanel
This panel controls a series of tabs and related panels. Only one panel is visible at any one time. The tabs control which tab is visible.
| Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
TabPanel()
|
|
| Method Summary | |
void |
add(java.lang.String name,
java.awt.Container panel)
This function adds a new tab to the panel. |
void |
add(java.lang.String name,
java.awt.Container panel,
int index)
This function adds a new tab to the panel at specified index. |
void |
addItemListener(java.awt.event.ItemListener l)
|
void |
addNotify()
|
void |
doLayout()
|
protected void |
fireItemStateChanged(java.awt.event.ItemEvent e)
|
void |
first()
Flip to the first tab and display it. |
java.awt.Container |
getPanel(int index)
This function returns the tab panel handle at the specified index. |
int |
getPanelCount()
This function returns the number of panels in the tab panel. |
int |
getSelectedIndex()
This function returns the currently selected tab if any. |
java.lang.Object[] |
getSelectedObjects()
|
protected int |
identifyTab(java.awt.event.MouseEvent e)
This function takes the mouse event and identifies which tab was clicked if any. |
boolean |
isTabChangeEnabled()
Returns the state of the tab change flag. |
void |
last()
Flip to the last tab and display it. |
void |
next()
Flip to the next tab in the list and display it. |
void |
paint(java.awt.Graphics g)
This is the primary drawing function for the panel. |
void |
previous()
Flip to the previous tab in the list and display it. |
protected void |
processMouseEvent(java.awt.event.MouseEvent e)
|
void |
remove(int index)
This function removes a specified tab from the panel. |
void |
remove(java.lang.String name)
This function removes a specified tab from the panel. |
void |
removeAll()
This function removes all tabs. |
void |
removeItemListener(java.awt.event.ItemListener l)
|
void |
rename(java.lang.String name,
int index)
This function renames the tab at specified index. |
void |
setTabChangeEnabled(boolean state)
Sets the state of the tab change flag. |
void |
show(int index)
Show the specified tab as defined by the name. |
void |
show(java.lang.String name)
Show the specified tab as defined by the name. |
| Methods inherited from class java.awt.Panel |
getAccessibleContext |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TabPanel()
| Method Detail |
public void first()
public void last()
public void next()
public void previous()
public java.awt.Container getPanel(int index)
index - int index of the panel to get.public int getPanelCount()
public void add(java.lang.String name,
java.awt.Container panel)
name - String containing the name of the tab.panel - Container to add to the tab panel.
public void add(java.lang.String name,
java.awt.Container panel,
int index)
name - String containing the name of the tab.panel - Panel to add to the tab panel.index - int containing the index location where the
tab is to be placed.
public void rename(java.lang.String name,
int index)
name - String containing the name of the tab.index - int containing the index location of the tab to rename.public void remove(java.lang.String name)
name - String containing the name of the tab to remove.public void remove(int index)
remove in class java.awt.Containerindex - int index of the tab to remove.public void removeAll()
removeAll in class java.awt.Containerpublic void show(java.lang.String name)
name - String name of the tab to display.public void show(int index)
index - int index of the tab to display.public void setTabChangeEnabled(boolean state)
state - boolean stating whether the tab change should occur.public boolean isTabChangeEnabled()
public int getSelectedIndex()
public void doLayout()
doLayout in class java.awt.Containerpublic void paint(java.awt.Graphics g)
paint in class java.awt.Containerg - Graphics context of the main panel.protected void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent in class java.awt.Componentprotected int identifyTab(java.awt.event.MouseEvent e)
e - MouseEvent to identify the location of.public void addNotify()
addNotify in class java.awt.Panelpublic void removeItemListener(java.awt.event.ItemListener l)
removeItemListener in interface java.awt.ItemSelectablepublic void addItemListener(java.awt.event.ItemListener l)
addItemListener in interface java.awt.ItemSelectableprotected void fireItemStateChanged(java.awt.event.ItemEvent e)
public java.lang.Object[] getSelectedObjects()
getSelectedObjects in interface java.awt.ItemSelectable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||