org.openmdx.portal.servlet.control
Class InspectorControl

java.lang.Object
  extended by org.openmdx.portal.servlet.control.Control
      extended by org.openmdx.portal.servlet.control.InspectorControl
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EditInspectorControl, ShowInspectorControl

public abstract class InspectorControl
extends Control
implements Serializable

See Also:
Serialized Form

Field Summary
protected  AttributePaneControl attributePaneControl
           
protected  Inspector inspector
           
 
Fields inherited from class org.openmdx.portal.servlet.control.Control
controlFactory, id, locale, localeAsIndex
 
Constructor Summary
InspectorControl(String id, String locale, int localeAsIndex, ControlFactory controlFactory, Inspector inspector)
           
 
Method Summary
 void createCompositionHierarchy(org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 ofType, Map hierarchy)
          Returns classes which are in the composition hierarchy of the specified type.
 AttributePaneControl getAttributePaneControl()
           
 String getId()
          Each view has an id and a childId.
 Inspector getInspector()
           
 Action getSetPanelStateAction(String panelName, int panelState)
           
 void structToMap(javax.jmi.reflect.RefStruct from, Map to, org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 structDef)
           
 
Methods inherited from class org.openmdx.portal.servlet.control.Control
getControlFactory, getCurrentLocale, getPropertyName, getTexts, paint, paint, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inspector

protected final Inspector inspector

attributePaneControl

protected final AttributePaneControl attributePaneControl
Constructor Detail

InspectorControl

public InspectorControl(String id,
                        String locale,
                        int localeAsIndex,
                        ControlFactory controlFactory,
                        Inspector inspector)
Method Detail

getAttributePaneControl

public AttributePaneControl getAttributePaneControl()

getSetPanelStateAction

public Action getSetPanelStateAction(String panelName,
                                     int panelState)

getId

public String getId()
Each view has an id and a childId. Normally all views of the same 'layer' have the same id, i.e. a view which creates a 'next' view inherits the id. getChild(), createNewChild() allows the create new view layers.

A JSP wants to create a ShowObject dialog in a new window. This can be done by creating a new child id and then issuing an event (e.g. EVENT_FIND_OBJECT) which creates a view with the new child id.

Overrides:
getId in class Control

createCompositionHierarchy

public void createCompositionHierarchy(org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 ofType,
                                       Map hierarchy)
                                throws org.openmdx.base.exception.ServiceException
Returns classes which are in the composition hierarchy of the specified type. Returns a map with the class name as key and a set of reference names as members, whereas the references are composite references of the class.

Throws:
org.openmdx.base.exception.ServiceException

structToMap

public void structToMap(javax.jmi.reflect.RefStruct from,
                        Map to,
                        org.openmdx.model1.accessor.basic.cci.ModelElement_1_0 structDef)
                 throws org.openmdx.base.accessor.jmi.cci.JmiServiceException
Throws:
org.openmdx.base.accessor.jmi.cci.JmiServiceException

getInspector

public Inspector getInspector()


This software is published under the BSD license. Copyright © 2006-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.