de.cbse.jeasy
Class JEDefaultJECallBack

java.lang.Object
  extended by de.cbse.jeasy.JEDefaultJECallBack
All Implemented Interfaces:
JECallBack, java.beans.PropertyChangeListener, java.util.EventListener

public class JEDefaultJECallBack
extends java.lang.Object
implements JECallBack, java.beans.PropertyChangeListener

Implementation of a JECallBack interface. Used to be extended by the CallBack classes of the application.

Author:
Harry Pfohl

Constructor Summary
JEDefaultJECallBack()
           
 
Method Summary
 void callBack(java.awt.AWTEvent e, java.lang.String id)
          All events from the swing components like menus, buttons, checkboxes, datafields are send to this callBack.
 void callBack(java.awt.AWTEvent e, java.lang.String id, int row, int column)
          All Mouse events from the JETable are send to this callBack.
 void callBack(javax.swing.event.ChangeEvent e, java.lang.String id)
          The events from a tabbedpane are send to this callBack.
 void callBack(javax.swing.event.DocumentEvent e, java.lang.String id)
          All events from the text components like datafields and dataareas are send to this callBack.
 void callBack(javax.swing.event.HyperlinkEvent e, java.lang.String id)
          All returns from JEEditorPane HyperlinkListener will call this method
 void callBack(java.awt.event.ItemEvent e, java.lang.String id)
          All ItemEvents from the swing components like comboboxes, radiobuttons, checkboxes are send to this callBack.
 void callBack(javax.swing.event.ListSelectionEvent e, java.lang.String id, javax.swing.ListSelectionModel lsm)
          All Selection events from the JETable are send to this callBack.
 void callBack(java.awt.event.MouseEvent e, java.lang.String id, javax.swing.tree.DefaultMutableTreeNode dmt)
          All mouse events from treenodes or lists are send to this callBack.
 void callBack(javax.swing.event.TableModelEvent e, java.lang.String id)
          All events from the TableModel of the JETable are send to this callBack.
 void callBack(javax.swing.event.TreeExpansionEvent e, java.lang.String id)
          All Expansion events from a JETreeNode are send to this callBack
 void callBack(javax.swing.event.TreeModelEvent e, java.lang.String id)
          All TreeModel events from a JETreeNode are send to this callBack
 void callBack(javax.swing.event.TreeSelectionEvent e, java.lang.String id, javax.swing.tree.TreePath tp)
          All Selection events from a JETreeNode are send to this callBack
 void callBack(java.awt.event.WindowEvent e, java.lang.String id)
          All events from windows like focus lost or gained are send to this callBack.
 void callBackComponentEvent(java.awt.event.ComponentEvent e, java.lang.String id)
          A low-level event which indicates that a component moved, changed size, or changed visibility (also, the root class for the other component-level events).
 void callBackContextHelp(int mode, java.lang.String id)
          If a jeasy id will get the focus or a mouse will enter a component hge id and mode is send to this callback.
 boolean callBackInputVerifier(java.lang.String id, java.lang.String text, int error)
          Input Verifiers will send to this callback
 void callBackInvoke(java.lang.String xmi)
          All returns from JEMethodinvocation will call this method
 boolean callBackTimerTask(java.lang.String id)
          If a TimerTask for this object was created, this method will be called time by time.
 void initJECallBack()
          Should be called before first user action and after initializing all JEObjects
 void propertyChange(java.beans.PropertyChangeEvent evt)
          A "PropertyChange" event gets delivered whenever a bean changes a "bound" or "constrained" property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEDefaultJECallBack

public JEDefaultJECallBack()
Method Detail

initJECallBack

public void initJECallBack()
Should be called before first user action and after initializing all JEObjects

Specified by:
initJECallBack in interface JECallBack

callBack

public void callBack(java.awt.event.WindowEvent e,
                     java.lang.String id)
All events from windows like focus lost or gained are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
WindowEvent - the event send by the window
id - the id of the JEObject

callBack

public void callBack(java.awt.AWTEvent e,
                     java.lang.String id)
All events from the swing components like menus, buttons, checkboxes, datafields are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
e - the event send by the component
id - the id of the JEObject

callBack

public void callBack(java.awt.event.ItemEvent e,
                     java.lang.String id)
All ItemEvents from the swing components like comboboxes, radiobuttons, checkboxes are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
e - the event send by the component
id - the id of the JEObject

callBack

public void callBack(javax.swing.event.DocumentEvent e,
                     java.lang.String id)
All events from the text components like datafields and dataareas are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
e - the event send by the component
id - the id of the JEObject

callBack

public void callBack(javax.swing.event.TableModelEvent e,
                     java.lang.String id)
All events from the TableModel of the JETable are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
e - the event send by the TableModel
id - the id of the JEObject

callBack

public void callBack(javax.swing.event.TreeSelectionEvent e,
                     java.lang.String id,
                     javax.swing.tree.TreePath tp)
All Selection events from a JETreeNode are send to this callBack

Specified by:
callBack in interface JECallBack
Parameters:
e - TreeSelectionEvent
id - of the sending JEObject
tp - TreePath

callBack

public void callBack(javax.swing.event.TreeModelEvent e,
                     java.lang.String id)
All TreeModel events from a JETreeNode are send to this callBack

Specified by:
callBack in interface JECallBack
Parameters:
e -
id - of the sending JEObject

callBack

public void callBack(javax.swing.event.TreeExpansionEvent e,
                     java.lang.String id)
All Expansion events from a JETreeNode are send to this callBack

Specified by:
callBack in interface JECallBack
Parameters:
e -
id - of the sending JEObject

callBack

public void callBack(javax.swing.event.ListSelectionEvent e,
                     java.lang.String id,
                     javax.swing.ListSelectionModel lsm)
All Selection events from the JETable are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
e - the event send by the Table
id - the id of the JEObject
lsm - the id of the JEObject where the component was added

callBack

public void callBack(java.awt.AWTEvent e,
                     java.lang.String id,
                     int row,
                     int column)
All Mouse events from the JETable are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
e - the event send by the Table
id - the id of the JEObject
row - the row of the tableModel
column - the column of the tableModel

callBack

public void callBack(java.awt.event.MouseEvent e,
                     java.lang.String id,
                     javax.swing.tree.DefaultMutableTreeNode dmt)
All mouse events from treenodes or lists are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
e - the event send by the swing component
id - the id of the JEObject
dmt - the DefaultMutableTreeNode clicked on

callBack

public void callBack(javax.swing.event.ChangeEvent e,
                     java.lang.String id)
The events from a tabbedpane are send to this callBack.

Specified by:
callBack in interface JECallBack
Parameters:
e - the event send when a tabbedpane element is activated
id - the id of the JEObject

callBackInputVerifier

public boolean callBackInputVerifier(java.lang.String id,
                                     java.lang.String text,
                                     int error)
Input Verifiers will send to this callback

Specified by:
callBackInputVerifier in interface JECallBack
Parameters:
id - the id of the JEObject
text - of the input component
error -

callBackInvoke

public void callBackInvoke(java.lang.String xmi)
All returns from JEMethodinvocation will call this method

Specified by:
callBackInvoke in interface JECallBack
Parameters:
xmi - xmi String that will be invoked or null if nothing is to do

callBack

public void callBack(javax.swing.event.HyperlinkEvent e,
                     java.lang.String id)
All returns from JEEditorPane HyperlinkListener will call this method

Specified by:
callBack in interface JECallBack

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
A "PropertyChange" event gets delivered whenever a bean changes a "bound" or "constrained" property.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

callBackComponentEvent

public void callBackComponentEvent(java.awt.event.ComponentEvent e,
                                   java.lang.String id)
A low-level event which indicates that a component moved, changed size, or changed visibility (also, the root class for the other component-level events).

Specified by:
callBackComponentEvent in interface JECallBack
Parameters:
e - Component Event
id - JEasy id

callBackTimerTask

public boolean callBackTimerTask(java.lang.String id)
If a TimerTask for this object was created, this method will be called time by time. You must return false to destroy the timer.

Specified by:
callBackTimerTask in interface JECallBack
Parameters:
id -
Returns:

callBackContextHelp

public void callBackContextHelp(int mode,
                                java.lang.String id)
If a jeasy id will get the focus or a mouse will enter a component hge id and mode is send to this callback. It may be used to show a context sensitiv help

Specified by:
callBackContextHelp in interface JECallBack
Parameters:
mode -
id - jeasy id