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

Quick Search    Search Deep

ulu.view.ui.sirius
Class NavBar  view NavBar download NavBar.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.NavBar
All Implemented Interfaces:
dog.gui.DConstants, java.util.EventListener, ulu.view.ui.Groupable, java.awt.image.ImageObserver, java.awt.MenuContainer, dog.util.Referential, java.io.Serializable, ulu.view.UEventListener

public class NavBar
extends ClientPane

A buttonbar containing useful buttons of various kinds for navigating around a Uncle Unc tree of nodes. Basically a GUI wrapper around the ulu.view.ui.Navigator object, with a few extra bits for accessing scrapbooks, history lists, 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
static int BUTTON_ABOUT
          flag denoting presence or otherwise of the about box button
static int BUTTON_HISTORY
          flag denoting presence or otherwise of the history list button
static int BUTTON_HOME
          flag denoting presence of a 'home' button
static int BUTTON_LOD
          flag denoting presence of a level-of-detail button
static int BUTTON_NAVIGATE
          flag denoting presence or otherwise of the navigation buttons (up,next,back)
static int BUTTON_NEW_WINDOW
          flag denoting presence or otherwise of the new window button
static int BUTTON_SCRAPBOOK
          flag denoting presence or otherwise of scrapbook button
(package private)  ulu.view.ui.Navigator nav
          navigator object used to manage history list flow
 
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
NavBar()
          default constructor adds standard button set
NavBar(int flags)
          constructor for explicitly specifying which buttons to add
 
Method Summary
private  void init(int flags)
          initialise this component
(package private)  dog.gui.DButton makeButton(java.lang.String id, java.awt.event.ActionListener list, dog.gui.DContainer parent)
          make a DButton and add a listener
 void setView(ulu.view.View v)
          add a view to history when setting it
 void setView(ulu.view.View v, boolean broadcast)
          add a view to history when setting it
 
Methods inherited from class ulu.view.ui.sirius.ClientPane
addItems, compareViews, getColHints, getColHints, getGroup, getItemCache, getLOD, getLODHints, getLODHints, getPageLength, getScrapbook, getView, handleRefresh, init, isSociable, makeDItem, makeDItem, makeDItem, modifyItems, refresh, refresh, refreshAll, removeDItem, removeItems, respond, revalidateParent, revalidateParent, revalidateParents, setGroup, setLOD, setPageLength, setSociable, 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

BUTTON_NAVIGATE

public static final int BUTTON_NAVIGATE
flag denoting presence or otherwise of the navigation buttons (up,next,back)

See Also:
Constant Field Values

BUTTON_SCRAPBOOK

public static final int BUTTON_SCRAPBOOK
flag denoting presence or otherwise of scrapbook button

See Also:
Constant Field Values

BUTTON_HISTORY

public static final int BUTTON_HISTORY
flag denoting presence or otherwise of the history list button

See Also:
Constant Field Values

BUTTON_ABOUT

public static final int BUTTON_ABOUT
flag denoting presence or otherwise of the about box button

See Also:
Constant Field Values

BUTTON_NEW_WINDOW

public static final int BUTTON_NEW_WINDOW
flag denoting presence or otherwise of the new window button

See Also:
Constant Field Values

BUTTON_HOME

public static final int BUTTON_HOME
flag denoting presence of a 'home' button

See Also:
Constant Field Values

BUTTON_LOD

public static final int BUTTON_LOD
flag denoting presence of a level-of-detail button

See Also:
Constant Field Values

nav

ulu.view.ui.Navigator nav
navigator object used to manage history list flow

Constructor Detail

NavBar

public NavBar()
default constructor adds standard button set


NavBar

public NavBar(int flags)
constructor for explicitly specifying which buttons to add

Method Detail

init

private void init(int flags)
initialise this component


makeButton

dog.gui.DButton makeButton(java.lang.String id,
                           java.awt.event.ActionListener list,
                           dog.gui.DContainer parent)
make a DButton and add a listener


setView

public void setView(ulu.view.View v)
add a view to history when setting it

Specified by:
setView in interface ulu.view.ui.Groupable
Overrides:
setView in class ClientPane

setView

public void setView(ulu.view.View v,
                    boolean broadcast)
add a view to history when setting it

Specified by:
setView in interface ulu.view.ui.Groupable
Overrides:
setView in class ClientPane