Interface NetEditorListener
- All Known Implementing Classes:
DjNetViewer,ItlkEditor,ItlkViewer,NetEditorFrame
public interface NetEditorListener
An interface to handle the interaction between the editor and the main program.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancelCreate(NetEditor src) Triggered when the creation mode is canceled only if the editor is editable.voidlinkClicked(NetEditor src, NetObject obj, int childIdx, MouseEvent e) Trigerred when the user click on a link if the editor is not editable.voidobjectClicked(NetEditor src, NetObject obj, MouseEvent e) Trigerred when the user click on an object only if the editor is not editable.voidsizeChanged(NetEditor src, Dimension d) Trigerred when the scheme size change, after a load or a call to computePreferredSize.voidvalueChanged(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 Details
-
valueChanged
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:
-
objectClicked
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:
-
linkClicked
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:
-
sizeChanged
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:
-
cancelCreate
Triggered when the creation mode is canceled only if the editor is editable.- Parameters:
src- NetEditor that has trigerred the event.- See Also:
-