wtanaka.praya
Class EditorManager

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--wtanaka.praya.EditorManager
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, EditorListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.io.Serializable

Deprecated. does not appear to be used

public class EditorManager
extends javax.swing.JPanel
implements java.awt.event.ActionListener, EditorListener, java.awt.event.FocusListener, java.awt.event.ItemListener

The EditorManager manages a set of editors. It contains a single line textfield, and a choice which allows you to switch to other editors that will appear in new windows and deactivate the single line editor.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/10/14 18:07:12 $
Author:
$Author: wtanaka $
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.ActionStandin, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardState
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
private  boolean autoPin
          Deprecated. This is true if the pin should be reset when a message is sent.
private  Recipient currentRecipient
          Deprecated.  
(package private)  javax.swing.JComboBox editorChoice
          Deprecated.  
private  java.util.Vector editorListeners
          Deprecated.  
(package private)  java.util.Vector editors
          Deprecated.  
(package private)  Editor floatingEditor
          Deprecated.  
(package private)  boolean isPinned
          Deprecated.  
private  boolean nonUIPin
          Deprecated. This is true if the pin condition did not come from the user clicking on the checkbox.
(package private)  javax.swing.JTextField oneLineEditor
          Deprecated.  
(package private)  MessageTargetDescriber parent
          Deprecated.  
(package private)  javax.swing.JCheckBox pin
          Deprecated.  
(package private)  javax.swing.JButton sendButton
          Deprecated.  
(package private)  javax.swing.JTextField sendDescription
          Deprecated.  
 
Fields inherited from class javax.swing.JPanel
defaultLayout, uiClassID
 
Fields inherited from class javax.swing.JComponent
_bounds, accessibleContext, actionMap, ACTIONMAP_CREATED, alignmentX, alignmentY, ANCESTOR_INPUTMAP_CREATED, ANCESTOR_USING_BUFFER, ancestorInputMap, ancestorNotifier, autoscroller, border, changeSupport, clientProperties, CREATED_DOUBLE_BUFFER, flags, FOCUS_INPUTMAP_CREATED, focusInputMap, HAS_FOCUS, htmlKey, htmlView, inputVerifier, IS_DOUBLE_BUFFERED, IS_OPAQUE, IS_PAINTING_TILE, IS_PRINTING, IS_PRINTING_ALL, KEY_EVENTS_ENABLED, KEYBOARD_BINDINGS_KEY, listenerList, maximumSize, minimumSize, NEXT_FOCUS, paintImmediatelyClip, paintingChild, preferredSize, readObjectCallbacks, REQUEST_FOCUS_DISABLED, tmpRect, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, verifyInputWhenFocusTarget, vetoableChangeSupport, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, WHEN_IN_FOCUSED_WINDOW_BINDINGS, WIF_INPUTMAP_CREATED, windowInputMap
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
EditorManager(MessageTargetDescriber p)
          Deprecated.  
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Deprecated.  
 void addEditor(Editor editor)
          Deprecated. Adds an editor to this editorManager Syncrhonized because it touches editors.
 void addEditorListener(EditorListener list)
          Deprecated.  
 void editorEventPerformed(EditorEvent evt)
          Deprecated. this is the means for distributing events to the other editorlisteners.
 void focusGained(java.awt.event.FocusEvent evt)
          Deprecated.  
 void focusLost(java.awt.event.FocusEvent evt)
          Deprecated.  
 void itemStateChanged(java.awt.event.ItemEvent evt)
          Deprecated.  
 void resetToOneLineEditor()
          Deprecated.  
protected  void sendEvent(EditorEvent evt)
          Deprecated.  
 void updateSendTarget()
          Deprecated. Queries the main praya object to determine a description for where the message will be sent.
 void updateSendTarget(boolean force)
          Deprecated.  
 
Methods inherited from class javax.swing.JPanel
, getAccessibleContext, getUIClassID, paramString, updateUI, writeObject
 
Methods inherited from class javax.swing.JComponent
_paintImmediately, addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, adjustPaintFlags, alwaysOnTop, checkIfChildObscuredBySibling, clearFocusOwners, componentInputMapChanged, computeVisibleRect, computeVisibleRect, compWriteObjectNotify, contains, createToolTip, disable, enable, enableSerialization, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperties, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getCreatedDoubleBuffer, getDebugGraphicsOptions, getFlag, getGraphics, getHeight, getInputMap, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paintWithBuffer, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyBindings, processKeyBindingsForAllComponents, processKeyEvent, processMouseMotionEvent, putClientProperty, readObject, rectangleIsObscured, rectangleIsObscuredBySibling, registerKeyboardAction, registerKeyboardAction, registerWithKeyboardManager, registerWithKeyboardManager, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setCreatedDoubleBuffer, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFlag, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPaintingChild, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, shouldDebugGraphics, superProcessMouseMotionEvent, unregisterKeyboardAction, unregisterWithKeyboardManager, unregisterWithKeyboardManager, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getLayout, getMouseEventTarget, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFocusOwner, setLayout, transferFocus, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, constructComponentName, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, getWindowForObject, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, isLightweight, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resetGC, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

editors

java.util.Vector editors
Deprecated. 

sendDescription

javax.swing.JTextField sendDescription
Deprecated. 

oneLineEditor

javax.swing.JTextField oneLineEditor
Deprecated. 

editorChoice

javax.swing.JComboBox editorChoice
Deprecated. 

sendButton

javax.swing.JButton sendButton
Deprecated. 

parent

MessageTargetDescriber parent
Deprecated. 

pin

javax.swing.JCheckBox pin
Deprecated. 

isPinned

boolean isPinned
Deprecated. 

nonUIPin

private boolean nonUIPin
Deprecated. 
This is true if the pin condition did not come from the user clicking on the checkbox. todo: fix the race condition on this variable

autoPin

private boolean autoPin
Deprecated. 
This is true if the pin should be reset when a message is sent.

floatingEditor

Editor floatingEditor
Deprecated. 

editorListeners

private java.util.Vector editorListeners
Deprecated. 

currentRecipient

private Recipient currentRecipient
Deprecated. 
Constructor Detail

EditorManager

public EditorManager(MessageTargetDescriber p)
Deprecated. 
Method Detail

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent evt)
Deprecated. 
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

resetToOneLineEditor

public void resetToOneLineEditor()
Deprecated. 

addEditor

public void addEditor(Editor editor)
               throws java.lang.ClassCastException,
                      DuplicateEditorException
Deprecated. 
Adds an editor to this editorManager Syncrhonized because it touches editors. editor can not have the same getEditorDescription as any other editor currently in the manager.
Throws:
DuplicateEditorException - if another editor by that name exists.
NullPointerException - if editorClass == null
java.lang.ClassCastException - if editorClass doesn't extend wtanaka.praya.Editor

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Deprecated. 
Specified by:
actionPerformed in interface java.awt.event.ActionListener

editorEventPerformed

public void editorEventPerformed(EditorEvent evt)
Deprecated. 
this is the means for distributing events to the other editorlisteners. don't add this as a listener to itself, it will get into an infinite loop. I probably should have named it something else. =(
Specified by:
editorEventPerformed in interface EditorListener

focusGained

public void focusGained(java.awt.event.FocusEvent evt)
Deprecated. 
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent evt)
Deprecated. 
Specified by:
focusLost in interface java.awt.event.FocusListener

addEditorListener

public void addEditorListener(EditorListener list)
Deprecated. 

sendEvent

protected void sendEvent(EditorEvent evt)
Deprecated. 

updateSendTarget

public void updateSendTarget()
Deprecated. 
Queries the main praya object to determine a description for where the message will be sent.
See Also:
MessageTargetDescriber.getSendRecipient()

updateSendTarget

public void updateSendTarget(boolean force)
Deprecated.