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

Quick Search    Search Deep

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

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended bydog.gui.DContainer
              extended byulu.view.ui.sirius.ClientPane
                  extended byulu.view.ui.sirius.AncestorChooser
All Implemented Interfaces:
dog.gui.DConstants, java.util.EventListener, ulu.view.ui.Groupable, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, dog.util.Referential, java.io.Serializable, ulu.view.UEventListener

public class AncestorChooser
extends ClientPane
implements java.awt.event.ItemListener

The AncestorChooser shows a dropdown menu presenting all parents of the current view. Same info as the AncestorPane, in a slightly different format for dialog boxes etc.


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
(package private)  dog.gui.DChoice choice
          dropdown component used to show ancestry tree
 
Fields inherited from class ulu.view.ui.sirius.ClientPane
GroupId, NamedGuiItems, pagelen, refreshable, sociable, UnnamedGuiItems, view
 
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
AncestorChooser()
          null-arg constructor
AncestorChooser(java.lang.String grp)
          constructor with a defined group to join (the group id will determine which container the view points at)
 
Method Summary
 void compareViews(ulu.view.View oldV, ulu.view.View newV)
          when comparing views, also check for difference and recreate if differ
 void itemStateChanged(java.awt.event.ItemEvent ev)
          implements itemlistener - will notify all other ClientPanes when the item choice is changed
(package private)  void recreate()
          recreate the ancestor hierarchy and repopulate the component
 void refreshAll()
          redraw the whole container because everything has changed
 
Methods inherited from class ulu.view.ui.sirius.ClientPane
addItems, getColHints, getColHints, getGroup, getItemCache, getLOD, getLODHints, getLODHints, getPageLength, getScrapbook, getView, handleRefresh, init, isSociable, makeDItem, makeDItem, makeDItem, modifyItems, refresh, refresh, removeDItem, removeItems, respond, revalidateParent, revalidateParent, revalidateParents, setGroup, setLOD, setPageLength, setSociable, setView, setView, syncProps, syncProps, syncProps
 
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

choice

dog.gui.DChoice choice
dropdown component used to show ancestry tree

Constructor Detail

AncestorChooser

public AncestorChooser()
null-arg constructor


AncestorChooser

public AncestorChooser(java.lang.String grp)
constructor with a defined group to join (the group id will determine which container the view points at)

Method Detail

compareViews

public void compareViews(ulu.view.View oldV,
                         ulu.view.View newV)
when comparing views, also check for difference and recreate if differ

Overrides:
compareViews in class ClientPane

recreate

void recreate()
recreate the ancestor hierarchy and repopulate the component


refreshAll

public void refreshAll()
redraw the whole container because everything has changed

Overrides:
refreshAll in class ClientPane

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent ev)
implements itemlistener - will notify all other ClientPanes when the item choice is changed

Specified by:
itemStateChanged in interface java.awt.event.ItemListener