Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class ncsa.horizon.awt.TabDisplay

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--ncsa.horizon.awt.TabDisplay

public class TabDisplay
extends java.awt.Panel
a component for displaying a group of Tab's as if in a stack of file folders

Most applications would not need to interact with this class; rather, TabbedCardPanel would be used to hold several components as a stack of cards. This class is available if an application wants to accompany tabs with components in another scheme.

See Also:
TabbedCardPanel, Tab, TabCanvas, Serialized Form

Field Summary
int currentTab
           
java.awt.event.ActionListener listener
           
boolean needReposition
           
java.awt.Dimension prefsz
           
java.util.Vector tabPads
           
java.util.Vector tabs
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
TabDisplay()
           
 
Method Summary
void addActionListener(java.awt.event.ActionListener l)
          add a listener that will be notified when a Tab has been clicked.
void addImpl(java.awt.Component comp, java.lang.Object constraints, int index)
           
void addTab(Tab tab)
          add a Tab to this display
static void main(java.lang.String[] args)
           
void removeActionListener(java.awt.event.ActionListener l)
          remove a listener for Tab clicks
void removeTab(Tab tab)
          remove a Tab from this display
void selectTab(TabCanvas t)
          select the given TabCanvas, moving it to the bottom row
void selectTab(java.lang.String label)
          select the given Tab by its label, moving it to the bottom row
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paint, paramString, preferredSize, printComponents, print, processContainerEvent, processEvent, removeAll, remove, remove, removeContainerListener, removeNotify, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

tabs

protected java.util.Vector tabs

tabPads

protected java.util.Vector tabPads

needReposition

protected boolean needReposition

currentTab

protected int currentTab

listener

protected java.awt.event.ActionListener listener

prefsz

protected java.awt.Dimension prefsz
Constructor Detail

TabDisplay

public TabDisplay()
Method Detail

addTab

public void addTab(Tab tab)
add a Tab to this display

addImpl

protected void addImpl(java.awt.Component comp,
                       java.lang.Object constraints,
                       int index)
Overrides:
addImpl in class java.awt.Container

removeTab

public void removeTab(Tab tab)
remove a Tab from this display

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
add a listener that will be notified when a Tab has been clicked.

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
remove a listener for Tab clicks

selectTab

public void selectTab(TabCanvas t)
select the given TabCanvas, moving it to the bottom row

selectTab

public void selectTab(java.lang.String label)
select the given Tab by its label, moving it to the bottom row

main

public static void main(java.lang.String[] args)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD