Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ulu.view.ui.sirius
Class UncContainer  view UncContainer download UncContainer.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended bydog.gui.DContainer
              extended byulu.view.ui.sirius.UncContainer
All Implemented Interfaces:
java.awt.event.ContainerListener, dog.gui.DConstants, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, dog.util.Referential, java.io.Serializable
Direct Known Subclasses:
SDialog, Sirius

public abstract class UncContainer
extends dog.gui.DContainer
implements java.awt.event.ContainerListener

This is a generic base-class for unc-enabled GUI Containers in the Sirius framework. It manages all Groupable GUI components added to it, defining an automatic group name for all Groupable components added to it, and joining them to the group when added to the GUI component.

Of course, not all components within a container wiull always wish to move in lock step in this way, so we can override it, but its a common enough way of doing things to warrant making it easy here.


Nested Class Summary
 
Nested classes inherited from class dog.gui.DContainer
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected static int counter
          counts number of instances of this type of container, and uses to assign each a unique id
protected  java.lang.String grp
          group id for this container ulu.view.ui.GroupManager
 
Fields inherited from class dog.gui.DContainer
cancelButton, defaultButton, reference, tooltip
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface dog.gui.DConstants
CENTER, CENTER_TILE, EAST, INTEGER_TILE, MAXIMIZE, MAXIMIZE_ASPECT, MAXIMIZE_HORIZONTAL, MAXIMIZE_VERTICAL, NORTH, NORTHEAST, NORTHWEST, SOUTH, SOUTHEAST, SOUTHWEST, TILE, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
UncContainer()
          no-arg constructor initialises the Dialog with a default group name that doesn't point at anything
UncContainer(ulu.view.View v)
          constructor taking a View as an argument
 
Method Summary
(package private)  void alignComp(java.awt.Component comp)
          helper method allows recursive checking of all components and subcomponents Note that an UncContainer added inside another will be aligned to the parent one, so if this isn't what you want, call setView() on the child after adding it
 void componentAdded(java.awt.event.ContainerEvent ev)
          called when a component is added to the container, adds to the group if its Groupable
 void componentRemoved(java.awt.event.ContainerEvent ev)
          called when a component removed to the container - remove from the group if its Groupable
 java.lang.String getGroupName()
          get the group name for this component
abstract  java.lang.String getRootName()
          get the default group name used for this type of container (e.g.
 ulu.view.View getView()
          get the view for this group
 void setView(ulu.view.View v)
          set the view for this group
(package private)  void unalignComp(java.awt.Component comp)
          helper allows recursive checking of all components and subcomponents
 
Methods inherited from class dog.gui.DContainer
addImpl, addPropertyChangeListener, alignParamString, drawActiveButtonBorder, drawActiveOptionBorder, drawArrow, drawBorder, drawButtonBorder, drawCheckbox, drawDarkBorder, drawDefaultButtonBorder, drawDisabledBorder, drawDisabledCheckbox, drawDisabledOption, drawExpander, drawFocusBorder, drawImage, drawLabel, drawOption, drawOptionBorder, drawPressedBorder, getCancelButton, getComponent, getDefaultButton, getDefaultToolkit, getImage, getImage, getImage, getReference, getRootPane, getTooltip, isPreloadImages, paramString, processCancelAction, processDefaultAction, processEvent, processMouseEvent, processMouseMotionEvent, removePropertyChangeListener, setCancelButton, setDefaultButton, setEnabled, setPreloadImages, setReference, setTooltip, toString
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

counter

protected static int counter
counts number of instances of this type of container, and uses to assign each a unique id


grp

protected java.lang.String grp
group id for this container ulu.view.ui.GroupManager

Constructor Detail

UncContainer

public UncContainer()
no-arg constructor initialises the Dialog with a default group name that doesn't point at anything


UncContainer

public UncContainer(ulu.view.View v)
constructor taking a View as an argument

Method Detail

getRootName

public abstract java.lang.String getRootName()
get the default group name used for this type of container (e.g. 'dialog')


getGroupName

public java.lang.String getGroupName()
get the group name for this component


getView

public ulu.view.View getView()
get the view for this group


setView

public void setView(ulu.view.View v)
set the view for this group


componentAdded

public void componentAdded(java.awt.event.ContainerEvent ev)
called when a component is added to the container, adds to the group if its Groupable

Specified by:
componentAdded in interface java.awt.event.ContainerListener

alignComp

void alignComp(java.awt.Component comp)
helper method allows recursive checking of all components and subcomponents Note that an UncContainer added inside another will be aligned to the parent one, so if this isn't what you want, call setView() on the child after adding it


componentRemoved

public void componentRemoved(java.awt.event.ContainerEvent ev)
called when a component removed to the container - remove from the group if its Groupable

Specified by:
componentRemoved in interface java.awt.event.ContainerListener

unalignComp

void unalignComp(java.awt.Component comp)
helper allows recursive checking of all components and subcomponents