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

Quick Search    Search Deep

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

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

public class CombiPane
extends dog.gui.DFrameset
implements ulu.view.ui.Groupable

Combined pane showing contents of a view plus details of the selected item.

It is simply a bit of glue around a ViewPane and an ItemPane, hooking together events so that the ItemPane switches to the highlighted element in the viewpane, rather than the parent container. It's a bit of a hack, there might be an easier way to combine components allowing arbitrary views to follow the selected child??


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
 ItemPane itemp
          itempane showing details of the container, or of a selected child item
(package private)  int pagelen
          page length (in number of items)
 ViewPane viewp
          the viewpane showing list of items in current container
 
Fields inherited from class dog.gui.DFrameset
allowUserResize, dimensions, dimpled, gap, HORIZONTAL, orientation, percentages, VERTICAL
 
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
CombiPane()
          constructor sets up the gui components and takes as argument the group to which groupable components belong
 
Method Summary
 java.lang.String getGroup()
          get Group this component belongs to, and pass it to children
 int getPageLength()
          get the current paging length
 ulu.view.View getView()
          get the current view
 boolean isSociable()
          test whether this Groupable is currently willing to follow the group, rather than stick to displaying its own view
 void setGroup(java.lang.String gr)
          set Group for this component by forcing its children to that group
 void setPageLength(int i)
          set the current page length (-1 is show all, no paging)
 void setSociable(boolean b)
          set whether this Groupable is currently willing to follow the group, rather than stick to displaying its own view
 void setView(ulu.view.View v)
          set the view being displayed
 void setView(ulu.view.View v, boolean broadcast)
          set the current view
 
Methods inherited from class dog.gui.DFrameset
addImpl, doLayout, getMinimumSize, getOrientation, getPreferredSize, isAllowUserResize, isDimpled, paint, processMouseEvent, processMouseMotionEvent, setAllowUserResize, setDimpled, setOrientation
 
Methods inherited from class dog.gui.DContainer
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, 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, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, 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

viewp

public ViewPane viewp
the viewpane showing list of items in current container


itemp

public ItemPane itemp
itempane showing details of the container, or of a selected child item


pagelen

int pagelen
page length (in number of items)

Constructor Detail

CombiPane

public CombiPane()
constructor sets up the gui components and takes as argument the group to which groupable components belong

Method Detail

getView

public ulu.view.View getView()
get the current view

Specified by:
getView in interface ulu.view.ui.Groupable

setView

public void setView(ulu.view.View v,
                    boolean broadcast)
set the current view

Specified by:
setView in interface ulu.view.ui.Groupable

setView

public void setView(ulu.view.View v)
set the view being displayed

Specified by:
setView in interface ulu.view.ui.Groupable

getGroup

public java.lang.String getGroup()
get Group this component belongs to, and pass it to children

Specified by:
getGroup in interface ulu.view.ui.Groupable

setGroup

public void setGroup(java.lang.String gr)
set Group for this component by forcing its children to that group

Specified by:
setGroup in interface ulu.view.ui.Groupable

isSociable

public boolean isSociable()
test whether this Groupable is currently willing to follow the group, rather than stick to displaying its own view

Specified by:
isSociable in interface ulu.view.ui.Groupable

setSociable

public void setSociable(boolean b)
set whether this Groupable is currently willing to follow the group, rather than stick to displaying its own view

Specified by:
setSociable in interface ulu.view.ui.Groupable

getPageLength

public int getPageLength()
get the current paging length


setPageLength

public void setPageLength(int i)
set the current page length (-1 is show all, no paging)