|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEditableElement
the IEditableElement interface defines methods for use when visually editing an object, so each construct in our .lap files is represented as some object that implements this interface, so when it is selected in the IDE the right sequence of actions to present this on the GUI is taken.
Method Summary | |
---|---|
JTreeNode |
buildTree(JTreeNode root,
LearnableActionPattern lap,
boolean detailed,
boolean expanded)
Build the tree structure of the file |
void |
onSelect(JAbode mainGui,
JEditorWindow subGui,
JDiagram diagram)
When we click this Action Element in the GUI populate the properties panel with the various attributes and setup listeners to catch modifications that are made. |
void |
showContextMenu(JTreeNode showOn,
LearnableActionPattern lap,
JEditorWindow window,
JDiagram diagram)
Produce and show a context menu for this object |
Method Detail |
---|
void onSelect(JAbode mainGui, JEditorWindow subGui, JDiagram diagram)
mainGui
- The reference to the outer GUIsubGui
- The internal frame we're referring todiagram
- The diagram we're being select on.JTreeNode buildTree(JTreeNode root, LearnableActionPattern lap, boolean detailed, boolean expanded)
void showContextMenu(JTreeNode showOn, LearnableActionPattern lap, JEditorWindow window, JDiagram diagram)
showOn
- The tree node invoking uslap
- The file we're a part ofwindow
- The window we're being dispalyed indiagram
- The diagram in the window we'return being shown on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |