wt.clients.replication.unit
Class DescribedByPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.replication.unit.DescribedByPanel
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class DescribedByPanel
extends Panel

Panel which displays the objects describing a given unit. This panel is built using the AssociationsPanel bean. This panel uses the DescribedByAssociationsModel to retrieve the objects describing a given unit. This panel is used in the UnitTaskPanel to display objects describing a given unit.

See Also:
AssociationsPanel, UnitTaskPanel, DescribedByAssociationsModel, Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  ThreadGroup contextThreadGroup
           
(package private)  AssociationsPanel describedByAssociationsPanel
           
(package private)  String mode
           
(package private)  DescribedByAssociationsModel model
           
protected static String RESOURCE
           
 
Fields inherited from class java.awt.Panel
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DescribedByPanel()
           
 
Method Summary
 void addHelpListener(PropertyChangeListener help_listener)
          Adds a PropertyChangeListener to listen for help events from this panel.
private  WTContext getContext()
          Return the WTContext associated with this panel
protected  void localize()
          Translate the multilist headings
 boolean save(UnitItem unit_to_save)
          Saves any changes made to which objects describe the UnitItem associated with this panel.
 void setMode(String mode)
          Sets the mode for this panel.
 void setUnitItem(UnitItem unit_item)
          Sets the unit item whose describing objects are displayed in this panel.
 void setUpdateMode(boolean mode)
          Sets whether or not this panel is updatedable.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, 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, 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, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

describedByAssociationsPanel

AssociationsPanel describedByAssociationsPanel

model

DescribedByAssociationsModel model

mode

String mode

RESOURCE

protected static String RESOURCE

contextThreadGroup

private ThreadGroup contextThreadGroup
Constructor Detail

DescribedByPanel

public DescribedByPanel()
Method Detail

localize

protected void localize()
Translate the multilist headings


setMode

public void setMode(String mode)
Sets the mode for this panel. The String values passed in to set the mode should be the same String defined constants used for setting the mode of an AssociationsPanel (e.g. AssociationsPanel.EDIT_MODE)

Parameters:
mode - the String mode of this panel
See Also:
AssociationsPanel

setUnitItem

public void setUnitItem(UnitItem unit_item)
Sets the unit item whose describing objects are displayed in this panel. This method will cause the list of describing objects to be populated.

Parameters:
unit_item - the UnitItem whose describing objects are displayed.

save

public boolean save(UnitItem unit_to_save)
             throws WTException
Saves any changes made to which objects describe the UnitItem associated with this panel.

Throws:
WTException - if an error occurs saving the changes

setUpdateMode

public void setUpdateMode(boolean mode)
Sets whether or not this panel is updatedable. If the given boolean is true, this panel will support updating. Otherwise, this panel will be view-only.

Parameters:
mode - if true, this panel will support updating.

addHelpListener

public void addHelpListener(PropertyChangeListener help_listener)
Adds a PropertyChangeListener to listen for help events from this panel.

Parameters:
help_listener - the PropertyChangeListener to be notified of help events.

getContext

private WTContext getContext()
Return the WTContext associated with this panel

Returns:
the WTContext associated with this panel