|
|||||||||
| 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
|
+--dog.gui.DContainer
|
+--dog.gui.DFolder
A tabbed folder panel.
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
protected DItem |
current
The current tab. |
protected static java.awt.Dimension |
MINSMALLICONSIZE
The minimum size for small icons (16x16). |
protected java.util.Hashtable |
pages
The tab to component mapping. |
protected java.util.Vector |
tabs
The tabs. |
| Fields inherited from class dog.gui.DContainer |
cancelButton, CENTER, defaultButton, EAST, NORTH, NORTHEAST, NORTHWEST, reference, SOUTH, SOUTHEAST, SOUTHWEST, tooltip, WEST |
| 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 | |
DFolder()
Constructs a folder. |
|
| Method Summary | |
java.awt.Component |
add(java.awt.Component component)
Adds a component to the end of the folder with a tab labelled "New tab". |
java.awt.Component |
add(java.awt.Component component,
int index)
Adds a component to the folder at the specified index with a tab labelled "New tab". |
void |
add(java.awt.Component component,
java.lang.Object constraints)
Adds a component to the end of the folder with the specified constraints with a tab labelled "New tab". |
void |
add(java.awt.Component component,
java.lang.Object constraints,
int index)
Adds a component to the end of the folder at the specified index with the specified constraints with a tab labelled "New tab". |
java.awt.Component |
add(DItem tab,
java.awt.Component component)
Adds a component to the end of the folder with the specified tab. |
java.awt.Component |
add(DItem tab,
java.awt.Component component,
int index)
Adds a component to the folder with the specified tab at the specified index. |
void |
add(DItem tab,
java.awt.Component component,
java.lang.Object constraints)
Adds a component to the end of the folder with the specified tab and constraints. |
void |
add(DItem tab,
java.awt.Component component,
java.lang.Object constraints,
int index)
Adds a component to the end of the folder at the specified index with the specified tab and constraints. |
void |
addActionListener(java.awt.event.ActionListener listener)
Adds the specified action listener to receive action events from this folder. |
protected void |
addImpl(DItem tab,
java.awt.Component component,
java.lang.Object constraints,
int index)
Adds a component to the folder associated with the specified tab. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds the specified property change listener to receive property change events from this component. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds the specified vetoable change listener to receive vetoable change events from this component. |
void |
doLayout()
Lays out the folder. |
DItem |
getCurrent()
Returns the tab of the currently displayed page. |
java.awt.Dimension |
getMinimumSize()
|
java.awt.Component |
getPage()
Returns the currently displayed page. |
java.awt.Component |
getPage(DItem tab)
Returns the page with the specified tab. |
java.awt.Dimension |
getPreferredSize()
|
DItem[] |
getTabs()
Returns the tabs in this folder. |
void |
paint(java.awt.Graphics g)
Paints the folder. |
protected void |
processActionEvent(java.awt.event.ActionEvent event)
Processes action events on this choice by dispatching them to any registered ActionListeners. |
protected void |
processEvent(java.awt.AWTEvent event)
Processes events on this choice. |
protected void |
processFocusEvent(java.awt.event.FocusEvent event)
Process focus events. |
protected void |
processMouseEvent(java.awt.event.MouseEvent event)
Process mouse events. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
A tab may have changed state. |
void |
remove(java.awt.Component component)
Removes a component from the folder. |
void |
remove(DItem tab)
Removes the component associated with the specified tab from the folder. |
void |
remove(int index)
Removes the component at the specified index from the folder. |
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes the specified action listener so that it no longer receives action events from this folder. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the specified property change listener so it no longer receives property change events from this component. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes the specified vetoable change listener so it no longer receives vetoable change events from this component. |
void |
setCurrent(DItem tab)
Sets the page to be displayed by its tab. |
| Methods inherited from class java.awt.Container |
add, addContainerListener, addNotify, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, removeAll, 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, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleContext, 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, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final java.awt.Dimension MINSMALLICONSIZE
protected DItem current
protected java.util.Vector tabs
protected java.util.Hashtable pages
| Constructor Detail |
public DFolder()
| Method Detail |
public java.awt.Component add(java.awt.Component component)
add in class java.awt.Containercomponent - the component
public java.awt.Component add(DItem tab,
java.awt.Component component)
tab - the item used for the folder tab for this componentcomponent - the component
public java.awt.Component add(java.awt.Component component,
int index)
add in class java.awt.Containercomponent - the componentindex - the index of the tab and component
public java.awt.Component add(DItem tab,
java.awt.Component component,
int index)
tab - the item used for the folder tab for this componentcomponent - the componentindex - the index of the tab and component
public void add(java.awt.Component component,
java.lang.Object constraints)
add in class java.awt.Containercomponent - the componentconstraints - an Insets object defining the offsets from the inside of the folder area.
public void add(DItem tab,
java.awt.Component component,
java.lang.Object constraints)
tab - the item used for the folder tab for this componentcomponent - the componentconstraints - an Insets object defining the offsets from the inside of the folder area.
public void add(java.awt.Component component,
java.lang.Object constraints,
int index)
add in class java.awt.Containercomponent - the componentconstraints - an Insets object defining the offsets from the inside of the folder area.index - the index of the tab and component
public void add(DItem tab,
java.awt.Component component,
java.lang.Object constraints,
int index)
tab - the item used for the folder tab for this componentcomponent - the componentconstraints - an Insets object defining the offsets from the inside of the folder area.index - the index of the tab and component
protected void addImpl(DItem tab,
java.awt.Component component,
java.lang.Object constraints,
int index)
public void remove(java.awt.Component component)
remove in class java.awt.Containercomponent - the component to remove.public void remove(DItem tab)
tab - the tab of the component to remove.public void remove(int index)
remove in class java.awt.Containerindex - the index of the component to remove.public DItem getCurrent()
setCurrent(dog.gui.DItem)
public void setCurrent(DItem tab)
throws java.beans.PropertyVetoException
tab - the tab of the page to be displayedjava.beans.PropertyVetoException - if the page could not be changedgetCurrent()public java.awt.Component getPage()
public java.awt.Component getPage(DItem tab)
tab - the tab of the page requiredpublic DItem[] getTabs()
public java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Containerpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Containerpublic void doLayout()
doLayout in class java.awt.Containerpublic void paint(java.awt.Graphics g)
paint in class java.awt.Containerpublic void addActionListener(java.awt.event.ActionListener listener)
listener - the action listenerpublic void removeActionListener(java.awt.event.ActionListener listener)
listener - the action listenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in class DContainerlistener - the property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in class DContainerlistener - the property change listenerpublic void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - the vetoable change listenerpublic void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - the vetoable change listenerprotected void processEvent(java.awt.AWTEvent event)
processEvent in class DContainerevent - the eventprotected void processActionEvent(java.awt.event.ActionEvent event)
event - the action eventprotected void processFocusEvent(java.awt.event.FocusEvent event)
processFocusEvent in class java.awt.Componentprotected void processMouseEvent(java.awt.event.MouseEvent event)
processMouseEvent in class DContainerpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||