de.cbse.jeasy
Interface JECallBack

All Known Implementing Classes:
JEDefaultJECallBack

public interface JECallBack

The interface JECallBack defines all callBack methods the jeasy components will call when an event occurs.

Author:
Harry Pfohl

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.
 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)
          All component events of JEParentComponents will call this method
 void callBackContextHelp(int mode, java.lang.String id)
          If a jeasy id will get the focus or a mouse will enter a component its 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
 

Method Detail

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.

Parameters:
WindowEvent - the event send by the window
id - the id of the JEObject

callBack

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.

Parameters:
AWTEvent - the event send by the component
id - the id of the JEObject

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.

Parameters:
AWTEvent - 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

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

Parameters:
ChangeEvent - the event send when a tabbedpane element is activated
id - the id of the JEObject

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.

Parameters:
DocumentEvent - the event send by the component
id - the id of the JEObject

callBack

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

Parameters:
xmi - xmi String that will be invoked or null if nothing is to do

callBack

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.

Parameters:
e - the event send by the component
id - the id of the JEObject

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.

Parameters:
ListSelectionEvent - the event send by the Table
id - the id of the JEObject
ListSelectionModelID_parent - the id of the JEObject where the component was added

callBack

void callBack(java.awt.event.MouseEvent e,
              java.lang.String id,
              javax.swing.tree.DefaultMutableTreeNode dmt)
All mouse events from treenodes.

Parameters:
MouseEvent - the event send by the swing component
id - the id of the JETree
dmt - the DefaultMutableTreeNode clicked on. Its userObject is the JEasy JETreeNode

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.

Parameters:
TableModelEvent - the event send by the TableModel
id - the id of the JEObject

callBack

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

Parameters:
TreeExpansionEvent -
id - of the sending JEObject

callBack

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

Parameters:
TreeModelEvent -
id - of the sending JEObject

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

Parameters:
e - TreeSelectionEvent
id - of the sending JEObject
tp - TreePath

callBackComponentEvent

void callBackComponentEvent(java.awt.event.ComponentEvent e,
                            java.lang.String id)
All component events of JEParentComponents will call this method

Parameters:
e - Component Event
id - JEasy id

callBackInputVerifier

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

Parameters:
id - the id of the JEObject
text - of the input component
error -

callBackInvoke

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

Parameters:
xmi - xmi String that will be invoked or null if nothing is to do

callBackTimerTask

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.

Parameters:
id -
Returns:

callBackContextHelp

void callBackContextHelp(int mode,
                         java.lang.String id)
If a jeasy id will get the focus or a mouse will enter a component its id and mode is send to this callback. It may be used to show a context sensitiv help. modes: JEObject.CONTEXT_HELP_FOCUS_GAINED JEObject.CONTEXT_HELP_FOCUS_LOST JEObject.CONTEXT_HELP_MOUSE_ENTERED JEObject.CONTEXT_HELP_MOUSE_EXITED

Parameters:
mode -
id - jeasy id

initJECallBack

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