fr.esrf.tangoatk.widget.util.interlock
Interface NetEditorListener

All Known Implementing Classes:
NetEditorFrame

public interface NetEditorListener

An interface to handle the interaction between the editor and the main program.


Method Summary
 void cancelCreate(NetEditor src)
          Triggered when the creation mode is canceled only if the editor is editable.
 void linkClicked(NetEditor src, NetObject obj, int childIdx, java.awt.event.MouseEvent e)
          Trigerred when the user click on a link if the editor is not editable.
 void objectClicked(NetEditor src, NetObject obj, java.awt.event.MouseEvent e)
          Trigerred when the user click on an object only if the editor is not editable.
 void sizeChanged(NetEditor src, java.awt.Dimension d)
          Trigerred when the scheme size change, after a load or a call to computePreferredSize.
 void valueChanged(NetEditor src)
          Trigerred when the scheme change, it means that when the user do something that affects the scheme currently edited, this function is called.
 

Method Detail

valueChanged

void valueChanged(NetEditor src)
Trigerred when the scheme change, it means that when the user do something that affects the scheme currently edited, this function is called. This is also true when load/saveFile or showOpen/SaveFileDialg are called.

Parameters:
src - NetEditor that has trigerred the event.
See Also:
NetEditor.loadFile(java.lang.String), NetEditor.showOpenFileDialog(java.lang.String, fr.esrf.tangoatk.widget.util.interlock.NetFileFilter), NetEditor.showSaveFileDialog(java.lang.String, fr.esrf.tangoatk.widget.util.interlock.NetFileFilter)

objectClicked

void objectClicked(NetEditor src,
                   NetObject obj,
                   java.awt.event.MouseEvent e)
Trigerred when the user click on an object only if the editor is not editable.

Parameters:
src - NetEditor that has trigerred the event.
obj - Clicked object.
e - Original MouseEvent
See Also:
NetEditor.setEditable(boolean)

linkClicked

void linkClicked(NetEditor src,
                 NetObject obj,
                 int childIdx,
                 java.awt.event.MouseEvent e)
Trigerred when the user click on a link if the editor is not editable.

Parameters:
src - NetEditor that has trigerred the event.
obj - Clicked object.
childIdx - Child index.
e - Original MouseEvent
See Also:
NetEditor.setEditable(boolean)

sizeChanged

void sizeChanged(NetEditor src,
                 java.awt.Dimension d)
Trigerred when the scheme size change, after a load or a call to computePreferredSize. It the editor component is within a JSCrollPane, a call to revalidate on this scrollPane may be needed. This is the main purpose of this function.

Parameters:
src - NetEditor that has trigerred the event.
d - New dimension (in pixel coordinates)
See Also:
NetEditor.computePreferredSize(), NetEditor.loadFile(java.lang.String)

cancelCreate

void cancelCreate(NetEditor src)
Triggered when the creation mode is canceled only if the editor is editable.

Parameters:
src - NetEditor that has trigerred the event.
See Also:
NetEditor.setEditable(boolean)