lib
Interface IEditableElement

All Known Implementing Classes:
ActionElement, ActionPattern, Competence, CompetenceElement, DriveCollection, DriveElement, LearnableActionPattern, TimeUnit

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.

Version:
1.0
Author:
CobaltSoftware (abode.devteam@cobaltsoftware.net)

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

onSelect

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.

Parameters:
mainGui - The reference to the outer GUI
subGui - The internal frame we're referring to
diagram - The diagram we're being select on.

buildTree

JTreeNode buildTree(JTreeNode root,
                    LearnableActionPattern lap,
                    boolean detailed,
                    boolean expanded)
Build the tree structure of the file

Returns:
Tree node representing this node and the relevent sub-tree for the specified diagram rendering settings

showContextMenu

void showContextMenu(JTreeNode showOn,
                     LearnableActionPattern lap,
                     JEditorWindow window,
                     JDiagram diagram)
Produce and show a context menu for this object

Parameters:
showOn - The tree node invoking us
lap - The file we're a part of
window - The window we're being dispalyed in
diagram - The diagram in the window we'return being shown on