edu.mit.ai.psg.traveler
Class TravelerCallRenderer.ResultRenderer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--edu.mit.ai.psg.ui.outliner.OutlineRendererDefault
                          |
                          +--edu.mit.ai.psg.ui.outliner.OutlineRendererCaching
                                |
                                +--edu.mit.ai.psg.ui.outliner.CallOutlineRendererCaching
                                      |
                                      +--edu.mit.ai.psg.traveler.TravelerCallRenderer.ResultRenderer
Enclosing class:
TravelerCallRenderer

public class TravelerCallRenderer.ResultRenderer
extends CallOutlineRendererCaching

Class for renderer of result partner

See Also:
Serialized Form

Inner classes inherited from class edu.mit.ai.psg.ui.outliner.OutlineRendererDefault
OutlineRendererDefault.OutlineText
 
Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Fields inherited from class edu.mit.ai.psg.ui.outliner.OutlineRendererDefault
defaultToolTipText, labelComponent, myOutlineMaker, objectComponent
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Method Summary
 void addCompletionObserver(ObservableRecord callRecord, OutlineNode outlineNode)
          add an observer to be notified of changes to the call record so that the result value can be decached and recomputed when the record completes.
 void addPopupMenuItems(PopupMenu menu, OutlineNode outlineNode, TreePath treePath, JTree jTree)
          add to popup menu any commands specific to objects handled by this generator.
 String computeLabelText(OutlineNode node)
          Override this method to tailor text for node label.
 String computeObjectText(OutlineNode outlineNode)
          Override this method to tailor text for node tooltip.
 
Methods inherited from class edu.mit.ai.psg.ui.outliner.CallOutlineRendererCaching
generatePartner, makeOutlineNode, notifyInserted, notifyRemoving
 
Methods inherited from class edu.mit.ai.psg.ui.outliner.OutlineRendererCaching
decacheLabelText, decacheObjectText, decacheToolTipText, getLabelText, getLabelTextCacheKey, getObjectText, getObjectTextCacheKey, getToolTipText, getToolTipTextCacheKey, makeLabelTextCache, makeObjectTextCache, makeToolTipTextCache
 
Methods inherited from class edu.mit.ai.psg.ui.outliner.OutlineRendererDefault
addPopupMenuTitle, computeLabelText, computeObjectText, computeToolTipText, equals, getLabelComponent, getObjectComponent, getOutlineMaker, getTreeCellRendererComponent, isShowing, makeChildOutlineNodes, makeNoteOutlineNode, makeOutlineNode, paint, toString
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

computeLabelText

public String computeLabelText(OutlineNode node)
Description copied from class: OutlineRendererDefault
Override this method to tailor text for node label. This method:
Object label = node.getLabel();
return label == null ? "" : label.toString()+":  ";
Overrides:
computeLabelText in class OutlineRendererDefault

computeObjectText

public String computeObjectText(OutlineNode outlineNode)
Description copied from class: OutlineRendererDefault
Override this method to tailor text for node tooltip. This method:
Object object = node.getObject();      
return object == null ? "null" : object.toString();
Overrides:
computeObjectText in class OutlineRendererDefault

addCompletionObserver

public void addCompletionObserver(ObservableRecord callRecord,
                                  OutlineNode outlineNode)
add an observer to be notified of changes to the call record so that the result value can be decached and recomputed when the record completes. The outlineNode should be part of a model; observer will remove itself if it receives a notification and OutlineModel.getModel(outlineNode) is null. The observer also removes itself after the record is completed.

addPopupMenuItems

public void addPopupMenuItems(PopupMenu menu,
                              OutlineNode outlineNode,
                              TreePath treePath,
                              JTree jTree)
Description copied from interface: OutlineRenderer
add to popup menu any commands specific to objects handled by this generator. (Separate from adding title so generators which inherit title behavior can add more specific menu commands first before adding superclass commands).
Overrides:
addPopupMenuItems in class OutlineRendererDefault
Tags copied from interface: OutlineRenderer
See Also:
OutlineCommand

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu