|
|||||||||
| 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.DGroup
A container with an optional label.
If the label is set, the group shows a border.
| 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 int |
align
The alignment of the label. |
protected java.awt.Insets |
insets
The additional insets for this group. |
protected java.lang.String |
label
The label. |
| 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 | |
DGroup()
Constructs a group with no label or border. |
|
DGroup(java.lang.String label)
Constructs a group with the specified label and centre alignment. |
|
DGroup(java.lang.String label,
int align)
Constructs a bordered group with the specified label and alignment. |
|
| Method Summary | |
int |
getAlign()
Returns the label alignment. |
java.awt.Insets |
getInsets()
Returns the insets of this group. |
java.lang.String |
getLabel()
Returns this group's label. |
void |
paint(java.awt.Graphics g)
Paints this component. |
protected java.lang.String |
paramString()
Returns additional parameters about the component. |
void |
setAlign(int align)
Sets the label alignment. |
void |
setInsets(java.awt.Insets insets)
Sets the additional insets for this group. |
void |
setLabel(java.lang.String label)
Sets this group's label. |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, 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, processFocusEvent, 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 int align
protected java.lang.String label
protected java.awt.Insets insets
| Constructor Detail |
public DGroup()
public DGroup(java.lang.String label)
label - the label to display
public DGroup(java.lang.String label,
int align)
label - the label to displayalign - the alignment of the label (NORTH, NORTHEAST, NORTHWEST, SOUTH, SOUTHEAST, or SOUTHWEST)| Method Detail |
public java.lang.String getLabel()
setLabel(java.lang.String)public void setLabel(java.lang.String label)
label - the desired labelgetLabel()public int getAlign()
setAlign(int)public void setAlign(int align)
align - the alignment of the label (NORTH, NORTHEAST, NORTHWEST, SOUTH, SOUTHEAST, or SOUTHWEST)getAlign()public void setInsets(java.awt.Insets insets)
public java.awt.Insets getInsets()
getInsets in class java.awt.Containerpublic void paint(java.awt.Graphics g)
paint in class java.awt.Containerprotected java.lang.String paramString()
DContainerparamString in class DContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||