Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.modama.gui.entities
Class EntityCtrl  view EntityCtrl download EntityCtrl.java

java.lang.Object
  extended byorg.modama.gui.entities.EntityCtrl
Direct Known Subclasses:
ImageEntityCtrl, ImageListCtrl

public class EntityCtrl
extends java.lang.Object

THis is the controller for entities. it need an entity-model to create itself. it will automatic detect, which view-class is needed and initialize it it will create an JInternalFrame and add the viewer to it


Nested Class Summary
(package private)  class EntityCtrl.DeleteAction
           
 
Field Summary
static java.lang.String BASIC_GROUP
          Actions
(package private)  org.modama.framework.AbstractFrameworkModel entity
          the model
(package private)  EntityView entityview
          the view for the model
(package private)  org.modama.gui.tools.FrameViewWrapper jif
          a JInternalFrame that wrapes the viewer panel
(package private)  java.awt.event.MouseAdapter popup_popper
          the mouselistener the shows an hide the popupmenu
the EView class hase to register this for every component that should show the popupmenu
 
Constructor Summary
EntityCtrl()
           
EntityCtrl(org.modama.framework.AbstractFrameworkModel entity)
           
 
Method Summary
protected  void create()
           
 void dispose()
           
 org.modama.gui.tools.FrameViewWrapper getFrameView()
           
 org.modama.framework.AbstractFrameworkModel getModel()
           
 java.awt.event.MouseAdapter getPopupPopper()
           
 EntityView getView()
           
 void init(org.modama.framework.AbstractFrameworkModel entity)
          this should be called if the empty constructor was used
 void setPopupPopper(java.awt.event.MouseAdapter popup_popper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entity

org.modama.framework.AbstractFrameworkModel entity
the model


entityview

EntityView entityview
the view for the model


jif

org.modama.gui.tools.FrameViewWrapper jif
a JInternalFrame that wrapes the viewer panel


popup_popper

java.awt.event.MouseAdapter popup_popper
the mouselistener the shows an hide the popupmenu
the EView class hase to register this for every component that should show the popupmenu


BASIC_GROUP

public static final java.lang.String BASIC_GROUP
Actions

See Also:
Constant Field Values
Constructor Detail

EntityCtrl

public EntityCtrl()

EntityCtrl

public EntityCtrl(org.modama.framework.AbstractFrameworkModel entity)
Method Detail

init

public void init(org.modama.framework.AbstractFrameworkModel entity)
this should be called if the empty constructor was used


create

protected void create()

dispose

public void dispose()

getFrameView

public org.modama.gui.tools.FrameViewWrapper getFrameView()

getView

public EntityView getView()

getModel

public org.modama.framework.AbstractFrameworkModel getModel()

getPopupPopper

public java.awt.event.MouseAdapter getPopupPopper()

setPopupPopper

public void setPopupPopper(java.awt.event.MouseAdapter popup_popper)