stella.jview
Class JObjectDisplay.SubComponentHandler

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by util.rmi.RmiPropertyContainer
                  extended by util.rmi.AbstractRmiCaster
                      extended by jview.SubComponentNotify
                          extended by stella.jview.JObjectDisplay.SubComponentHandler
All Implemented Interfaces:
ActionListener, ItemListener, MouseListener, PropertyChangeListener, Cloneable, Remote, EventListener, ChangeListener, ListSelectionListener, SubComponentCaster, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, RmiCaster, RmiPropertyBearing
Enclosing class:
JObjectDisplay

private class JObjectDisplay.SubComponentHandler
extends SubComponentNotify
implements PropertyChangeListener, ActionListener, ChangeListener, MouseListener, ItemListener, ListSelectionListener

The helper class for access via rmi. Also contains all the listeners that are important for the object display.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
 
Fields inherited from class util.rmi.AbstractRmiCaster
ALTERNATEHOST, ALTERNATEPORT, KEY_BINDNAME, KEY_EXPORTPORT, KEY_REGISTRYHOST, KEY_REGISTRYPORT
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
private JObjectDisplay.SubComponentHandler(Map<String,String> prop, String bindname)
          Only used in the object display.
 
Method Summary
 void actionPerformed(ActionEvent ae)
          We listen on the checkboxes.
 void addSubComponentListener(SubComponentListener notify)
          Registers a new sub-component listener.
protected  JObjectComponent.ObjectKey currentState()
          Detects the current state of the display.
 void itemStateChanged(ItemEvent ie)
          We change the order in the object list.
 void mouseClicked(MouseEvent e)
          If the user clicks on the data canvas, we try to infer the unique pick out of it.
 void mouseEntered(MouseEvent e)
          Empty.
 void mouseExited(MouseEvent e)
          Empty.
 void mousePressed(MouseEvent e)
          Empty.
 void mouseReleased(MouseEvent e)
          Empty.
 void propertyChange(PropertyChangeEvent pch)
           
 void stateChanged(ChangeEvent ce)
           
 void valueChanged(ListSelectionEvent lse)
          If the user selects items in the list, we try to look the period up.
 
Methods inherited from class jview.SubComponentNotify
fireKey, removeSubComponentListener, respondTo
 
Methods inherited from class util.rmi.AbstractRmiCaster
bindAlternate, bindToRegistry, bindToRegistry, bindToRegistry, casterExit, casterExit, exit, getBindName, getBindName, isValid, unbindFromRegistry, unbindFromRegistry
 
Methods inherited from class util.rmi.RmiPropertyContainer
containsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemoteProperty
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Constructor Detail

JObjectDisplay.SubComponentHandler

private JObjectDisplay.SubComponentHandler(Map<String,String> prop,
                                           String bindname)
                                    throws RemoteException
Only used in the object display.

Throws:
RemoteException
Method Detail

mouseEntered

public void mouseEntered(MouseEvent e)
Empty.

Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Empty.

Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
Empty.

Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Empty.

Specified by:
mouseReleased in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent e)
If the user clicks on the data canvas, we try to infer the unique pick out of it. This is done by querying the unique key of the closest plotted point and retrieving the other pick data from the database.

Specified by:
mouseClicked in interface MouseListener

valueChanged

public void valueChanged(ListSelectionEvent lse)
If the user selects items in the list, we try to look the period up.

Specified by:
valueChanged in interface ListSelectionListener

itemStateChanged

public void itemStateChanged(ItemEvent ie)
We change the order in the object list. Item changes in the user list and sorting order changes are treated here.

Specified by:
itemStateChanged in interface ItemListener

propertyChange

public void propertyChange(PropertyChangeEvent pch)
Specified by:
propertyChange in interface PropertyChangeListener

stateChanged

public void stateChanged(ChangeEvent ce)
Specified by:
stateChanged in interface ChangeListener

actionPerformed

public void actionPerformed(ActionEvent ae)
We listen on the checkboxes.

Specified by:
actionPerformed in interface ActionListener

addSubComponentListener

public void addSubComponentListener(SubComponentListener notify)
                             throws RemoteException
Description copied from class: SubComponentNotify
Registers a new sub-component listener. On registering, the current view of the caster should be fired to the listener. Whenever the caster's component view changes, the listener is notified with its SubComponentListner#newKey method.

Specified by:
addSubComponentListener in interface SubComponentCaster
Overrides:
addSubComponentListener in class SubComponentNotify
Throws:
RemoteException

currentState

protected JObjectComponent.ObjectKey currentState()
Detects the current state of the display.