org.openmdx.portal.servlet.view
Class EditObjectView

java.lang.Object
  extended by org.openmdx.portal.servlet.view.View
      extended by org.openmdx.portal.servlet.view.ObjectView
          extended by org.openmdx.portal.servlet.view.EditObjectView
All Implemented Interfaces:
Serializable

public class EditObjectView
extends ObjectView
implements Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openmdx.portal.servlet.view.ObjectView
attributePane, favoriteActions, historyActions, inspectorControl, lookupType, objectReference, restrictToElements, rootObjectActions
 
Fields inherited from class org.openmdx.portal.servlet.view.View
application, containerElementId, controlFactory, id, macro, object, REQUEST_ID_FORMAT_NONE, REQUEST_ID_FORMAT_TEMPLATE, REQUEST_ID_FORMAT_UID, REQUEST_ID_TEMPLATE, requestId, setGuiModeActions, VIEW_EDIT_OBJECT, VIEW_SHOW_OBJECT, VIEW_USER_DEFINED
 
Constructor Summary
EditObjectView(String id, String containerElementId, org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object, String editObjectRefMofId, ApplicationContext application, Map historyActions, String lookupType, Map restrictToElements, boolean isModal, ControlFactory controlFactory)
           
EditObjectView(String id, String containerElementId, org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object, String editObjectRefMofId, ApplicationContext application, Map historyActions, String lookupType, Map restrictToElements, org.openmdx.base.accessor.jmi.cci.RefObject_1_0 parent, String forReference, boolean isModal, ControlFactory controlFactory)
          editObjectRefMofId != null ==> 1.
 
Method Summary
 Action getCancelAction()
           
 EditInspectorControl getEditInspectorControl()
           
 String getEditObjectRefMofId()
           
 String getForReference()
           
 String getIconKey()
           
 org.openmdx.base.accessor.jmi.cci.RefObject_1_0 getLookupObject()
           
 org.openmdx.base.accessor.jmi.cci.RefObject_1_0 getParent()
           
 org.openmdx.base.accessor.jmi.cci.RefObject_1_0 getParentObject()
           
 Action getSaveAction()
           
 String getType()
           
 boolean isEditMode()
           
 boolean isModal()
           
 void refresh(boolean refreshData)
          Refresh view.
 void storeObject(Map parameterMap, Map attributeMap)
           
 
Methods inherited from class org.openmdx.portal.servlet.view.ObjectView
getAttributePane, getBackAction, getHistoryAction, getHistoryActions, getLayout, getLookupType, getObjectReference, getPreviousView, getRefObject, getRestrictToElements, getSelectParentAction, getSelectRootObjectActions
 
Methods inherited from class org.openmdx.portal.servlet.view.View
createControl, createControl, createRequestId, getApplicationContext, getContainerElementId, getControlFactory, getEncodedHRef, getEncodedHRef, getEncodedHRef, getEvalHRef, getEvalHRef, getEvalHRef, getFindObjectAction, getId, getLogoffAction, getMacro, getObject, getPanelState, getQuickAccessActions, getRequestId, getSaveSettingsAction, getSetGuiModeActions, getSetPanelStateAction, getSetRoleActions, handleCanNotCommitException, setMacro, structToMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditObjectView

public EditObjectView(String id,
                      String containerElementId,
                      org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object,
                      String editObjectRefMofId,
                      ApplicationContext application,
                      Map historyActions,
                      String lookupType,
                      Map restrictToElements,
                      boolean isModal,
                      ControlFactory controlFactory)

EditObjectView

public EditObjectView(String id,
                      String containerElementId,
                      org.openmdx.base.accessor.jmi.cci.RefObject_1_0 object,
                      String editObjectRefMofId,
                      ApplicationContext application,
                      Map historyActions,
                      String lookupType,
                      Map restrictToElements,
                      org.openmdx.base.accessor.jmi.cci.RefObject_1_0 parent,
                      String forReference,
                      boolean isModal,
                      ControlFactory controlFactory)
editObjectRefMofId != null ==> 1. read object with given refMofId 2. apply changes to this object 3. commit

editObjectRefMofId == null ==> parent == null (edit mode) 1. apply changes to object 2. commit parent != null (new mode) 1. add object to parent.reference 2. commit

Method Detail

isEditMode

public boolean isEditMode()

getParent

public org.openmdx.base.accessor.jmi.cci.RefObject_1_0 getParent()

refresh

public void refresh(boolean refreshData)
             throws org.openmdx.base.exception.ServiceException
Description copied from class: ObjectView
Refresh view. refreshData ==> do refresh data. Do not refresh rendering information.

Overrides:
refresh in class ObjectView
Throws:
org.openmdx.base.exception.ServiceException

storeObject

public void storeObject(Map parameterMap,
                        Map attributeMap)

getIconKey

public String getIconKey()

getType

public String getType()
Specified by:
getType in class View

getCancelAction

public Action getCancelAction()

getSaveAction

public Action getSaveAction()

getEditInspectorControl

public EditInspectorControl getEditInspectorControl()

getParentObject

public org.openmdx.base.accessor.jmi.cci.RefObject_1_0 getParentObject()

getForReference

public String getForReference()

isModal

public boolean isModal()

getEditObjectRefMofId

public String getEditObjectRefMofId()

getLookupObject

public org.openmdx.base.accessor.jmi.cci.RefObject_1_0 getLookupObject()
Specified by:
getLookupObject in class ObjectView


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