MetaDone
metadone.client.MetadoneDesktopPane Class Reference
Inheritance diagram for metadone.client.MetadoneDesktopPane:
Collaboration diagram for metadone.client.MetadoneDesktopPane:

List of all members.

Classes

class  ContextMenuSubscriber
class  EngineObserver

Public Member Functions

 MetadoneDesktopPane ()
JMenu getModelMenu ()
JInternalFrame addNewFrame (final EngineInterpreter interpreter)
JInternalFrame add (JInternalFrame iframe, EngineInterpreter interpreter)
Component addComponent (Component comp)
Component add (Component comp)
Component add (Component comp, int index)
void add (Component comp, Object constraints)
void add (Component comp, Object constraints, int index)
Component add (String name, Component comp)
void remove (Component comp)
void remove (int index)
void removeAll ()

Protected Member Functions

final void updateForSelectedFrame ()
void updateForSelectedFrame (EngineInterpreter interpreter)

Package Functions

 [instance initializer]

Private Member Functions

boolean updateModelMenuItems (JPopupMenu menu, Engine engine)
void updateModelMenuItemsAutoCreate (JPopupMenu menu, Engine engine) throws BadPreCondition
void updatePopupMenuItems (JPopupMenu popup_menu, Engine engine)
void addComponentInternal (JInternalFrame iframe, EngineInterpreter interpreter)
void removeComponentInternal (Component comp)

Static Private Member Functions

static void addSortedMenuItems (JMenu menu, List<?extends JMenuItem > items)

Private Attributes

Logger logger = Logger.getLogger(MetadoneDesktopPane.class)
final JMenu menu_model = new JMenu("Model")
EngineInterpreter menu_model_current = null
final transient
InternalFrameListener 
frame_listener
Map< JInternalFrame,
EngineInterpreter
models = new Hashtable<JInternalFrame, EngineInterpreter>()

Static Private Attributes

static final long serialVersionUID = 1L

Detailed Description

The desktop pane for Metadone.

It contains the GrasylaInterpreter views.

Grasyla script feature options
Two feature options are used for the menus. The first is "auto-create" which will create menus for creating metaobjects for the currently selected model. The other is "auto-edit" which will add a menu starting a generated editor for the selected property.
Author:
kma

Constructor & Destructor Documentation

metadone.client.MetadoneDesktopPane.MetadoneDesktopPane ( )

Member Function Documentation

metadone.client.MetadoneDesktopPane.[instance initializer] ( ) [package]
JInternalFrame metadone.client.MetadoneDesktopPane.add ( JInternalFrame  iframe,
EngineInterpreter  interpreter 
)

Adds a frame with linked models.

You should use addNewFrame(AbstractInterpreter) to create a context menu on the frame.

Parameters:
iframeThe frame to add
interpreterThe interpreter
Returns:
The frame argument
See also:
#addNewFrame(GrasylaInterpreterConfiguration)

References metadone.client.MetadoneDesktopPane.addComponentInternal(), and metadone.client.MetadoneDesktopPane.logger.

Referenced by metadone.client.MetadoneDesktopPane.addNewFrame().

Component metadone.client.MetadoneDesktopPane.add ( String  name,
Component  comp 
)
Component metadone.client.MetadoneDesktopPane.add ( Component  comp)
Component metadone.client.MetadoneDesktopPane.add ( Component  comp,
int  index 
)
void metadone.client.MetadoneDesktopPane.add ( Component  comp,
Object  constraints 
)
void metadone.client.MetadoneDesktopPane.add ( Component  comp,
Object  constraints,
int  index 
)
Component metadone.client.MetadoneDesktopPane.addComponent ( Component  comp)
void metadone.client.MetadoneDesktopPane.addComponentInternal ( JInternalFrame  iframe,
EngineInterpreter  interpreter 
) [private]
JInternalFrame metadone.client.MetadoneDesktopPane.addNewFrame ( final EngineInterpreter  interpreter)
static void metadone.client.MetadoneDesktopPane.addSortedMenuItems ( JMenu  menu,
List<?extends JMenuItem >  items 
) [static, private]
void metadone.client.MetadoneDesktopPane.remove ( Component  comp)
void metadone.client.MetadoneDesktopPane.remove ( int  index)
void metadone.client.MetadoneDesktopPane.removeComponentInternal ( Component  comp) [private]
final void metadone.client.MetadoneDesktopPane.updateForSelectedFrame ( ) [protected]
void metadone.client.MetadoneDesktopPane.updateModelMenuItemsAutoCreate ( JPopupMenu  menu,
Engine  engine 
) throws BadPreCondition [private]

Member Data Documentation

final transient InternalFrameListener metadone.client.MetadoneDesktopPane.frame_listener [private]
Initial value:
 new InternalFrameAdapter() {
        @Override
        public void internalFrameActivated(InternalFrameEvent e) {
            final JInternalFrame comp = e.getInternalFrame();
            updateForSelectedFrame(models.get(comp));
        }

        @Override
        public void internalFrameDeactivated(InternalFrameEvent e) {
            updateForSelectedFrame();
        };
    }

Referenced by metadone.client.MetadoneDesktopPane.addComponentInternal(), and metadone.client.MetadoneDesktopPane.removeComponentInternal().

final long metadone.client.MetadoneDesktopPane.serialVersionUID = 1L [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations