com.cbse.jeasy
Class JENotepad

java.lang.Object
  extended by com.cbse.jeasy.JEObject
      extended by com.cbse.jeasy.JENotepad
All Implemented Interfaces:
JECallBack

public class JENotepad
extends JEObject
implements JECallBack


Field Summary
 
Fields inherited from class com.cbse.jeasy.JEObject
DEVELOPPING, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_TIME, INPUT_ERRORS, NO_INPUT_ERROR, RUNNING
 
Constructor Summary
JENotepad(java.lang.String ownerID)
           
 
Method Summary
 boolean accept(java.io.File f)
           
 void callBack(java.awt.AWTEvent e, java.lang.String ID, java.lang.String ID_parent)
          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, java.lang.String ID_parent, int row, int column)
          All Mouse events from the JETable are send to this callBack.
 void callBack(java.awt.AWTEvent e, java.lang.String ID, java.lang.String ID_parent, java.lang.Object selected)
          All mouseclick events from treenodes or lists are send to this callBack.
 void callBack(javax.swing.event.ChangeEvent e, java.lang.String ID, java.lang.String ID_parent)
          The events from a tabbedpane are send to this callBack.
 void callBack(javax.swing.event.DocumentEvent e, java.lang.String ID, java.lang.String ID_parent)
          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, java.lang.String ID_parent)
          All returns from JEEditorPane HyperlinkListener will call this method
 void callBack(javax.swing.event.ListSelectionEvent e, java.lang.String ID, java.lang.String ID_parent, javax.swing.ListSelectionModel lsm)
          All Selection events from the JETable are send to this callBack.
 void callBack(javax.swing.event.TableModelEvent e, java.lang.String ID, java.lang.String ID_parent)
          All events from the TableModel of the JETable are send to this callBack.
 void callBack(javax.swing.event.TreeExpansionEvent e, java.lang.String ID, java.lang.String ID_parent)
          All Expansion events from a JETreeNode are send to this callBack
 void callBack(javax.swing.event.TreeSelectionEvent e, java.lang.String ID, java.lang.String ID_parent, java.lang.String selectedItem)
          All Selection events from a JETreeNode are send to this callBack
 boolean callBackInputVerifier(java.lang.String ID, java.lang.String ID_parentId, java.lang.String text, int error)
          Input Verifiers in SDK 1.3 and FocusLost in SDK 1.2 in will send to this Callback
 void callBackInvoke(java.lang.String xmi)
          All returns from JEMethodinvocation will call this method
 java.lang.String chooseFile()
           
 void edit(java.lang.String ownerID, java.lang.String jeasyID)
           
 void initJECallBack()
          Should be called before first user action and after initializing all JEObjects
 java.lang.String readFile(java.lang.String gUrl)
           
 
Methods inherited from class com.cbse.jeasy.JEObject
backupEntry, clear, deserializeValue, getApplet, getApplLocale, getCenter, getComponent, getEast, getElementAt, getElementSize, getId, getJCallBack, getJClass, getLabel, getMode, getName, getNorth, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getSouth, getStarted, getTitle, getType, getWest, getXMLtag, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, isVisible, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEaddTab, removeProperties, removeProperty, restoreEntry, serializeValue, setApplet, setApplLocale, setEditable, setEditable, setEnabled, setEnabled, setFocus, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, setVisible, start, wasEntryChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JENotepad

public JENotepad(java.lang.String ownerID)
Method Detail

edit

public void edit(java.lang.String ownerID,
                 java.lang.String jeasyID)

callBack

public void callBack(java.awt.AWTEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent)
Description copied from interface: JECallBack
All events from the swing components like menus, buttons, checkboxes, datafields are send to this callBack.

Specified by:
callBack in interface JECallBack
ID - the id of the JEObject
ID_parent - the id of the JEObject where the component was added

callBack

public void callBack(javax.swing.event.DocumentEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent)
Description copied from interface: JECallBack
All events from the text components like datafields and dataareas are send to this callBack.

Specified by:
callBack in interface JECallBack
ID - the id of the JEObject
ID_parent - the id of the JEObject where the component was added

callBack

public void callBack(javax.swing.event.TableModelEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent)
Description copied from interface: JECallBack
All events from the TableModel of the JETable are send to this callBack.

Specified by:
callBack in interface JECallBack
ID - the id of the JEObject
ID_parent - the id of the JEObject where the component was added

callBack

public void callBack(javax.swing.event.TreeSelectionEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent,
                     java.lang.String selectedItem)
Description copied from interface: JECallBack
All Selection events from a JETreeNode are send to this callBack

Specified by:
callBack in interface JECallBack
ID - of the sending JEObject
ID_parent - the id of the JEObject where the component was added

callBack

public void callBack(javax.swing.event.TreeExpansionEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent)
Description copied from interface: JECallBack
All Expansion events from a JETreeNode are send to this callBack

Specified by:
callBack in interface JECallBack
ID - of the sending JEObject
ID_parent - the id of the JEObject where the component was added

callBack

public void callBack(javax.swing.event.ListSelectionEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent,
                     javax.swing.ListSelectionModel lsm)
Description copied from interface: JECallBack
All Selection events from the JETable are send to this callBack.

Specified by:
callBack in interface JECallBack
ID - the id of the JEObject
ID_parent - the id of the JEObject where the component was added

callBack

public void callBack(java.awt.AWTEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent,
                     int row,
                     int column)
Description copied from interface: JECallBack
All Mouse events from the JETable are send to this callBack.

Specified by:
callBack in interface JECallBack
ID - the id of the JEObject
ID_parent - the id of the JEObject where the component was added
row - the row of the tableModel
column - the column of the tableModel

callBack

public void callBack(java.awt.AWTEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent,
                     java.lang.Object selected)
Description copied from interface: JECallBack
All mouseclick events from treenodes or lists are send to this callBack.

Specified by:
callBack in interface JECallBack
ID - the id of the JEObject
ID_parent - the id of the JEObject where the component was added

callBack

public void callBack(javax.swing.event.ChangeEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent)
Description copied from interface: JECallBack
The events from a tabbedpane are send to this callBack.

Specified by:
callBack in interface JECallBack
ID - the id of the JEObject
ID_parent - the id of the JEObject where the component was added

callBack

public void callBack(javax.swing.event.HyperlinkEvent e,
                     java.lang.String ID,
                     java.lang.String ID_parent)
Description copied from interface: JECallBack
All returns from JEEditorPane HyperlinkListener will call this method

Specified by:
callBack in interface JECallBack

callBackInputVerifier

public boolean callBackInputVerifier(java.lang.String ID,
                                     java.lang.String ID_parentId,
                                     java.lang.String text,
                                     int error)
Description copied from interface: JECallBack
Input Verifiers in SDK 1.3 and FocusLost in SDK 1.2 in will send to this Callback

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

callBackInvoke

public void callBackInvoke(java.lang.String xmi)
Description copied from interface: JECallBack
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 nothimg is to do

initJECallBack

public void initJECallBack()
Description copied from interface: JECallBack
Should be called before first user action and after initializing all JEObjects

Specified by:
initJECallBack in interface JECallBack

readFile

public java.lang.String readFile(java.lang.String gUrl)

chooseFile

public java.lang.String chooseFile()

accept

public boolean accept(java.io.File f)
Parameters:
f -
Returns: