Package com.dassault_systemes.pprnblcabase.controller

   
Class LCANavDialogController

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.pprnblcabase.controller.LCABaseController
        |
        +-com.dassault_systemes.pprnblcabase.controller.LCABaseDialogController
              |
              +-com.dassault_systemes.pprnblcabase.controller.LCANavDialogController
Class Location

Framework : PPRJNavigatorBase

Module : PPRNBLcaBase

Class Description

public class LCANavDialogController

Base controller to support command controllers which operate on a single object.

Field Summary

Constructor Summary
LCANavDialogController()

Method Summary
protected void addToRelationshipNavigator(ENOVIDataObject iObject)
Adds an object to the relationship navigator component.
protected void addToRelationshipNavigator(ENOVIDataObject[] iObjects)
Adds a list of objects to the relationship navigator component.
protected void addToRelationshipNavigator(PortalUID[] rootIDs)
Adds a list of objects to the relationship navigator component.
public void onCreate(CATDialog iDialog, CATNotification iNotification, Object iData)
public void onDocumentChanged(CATDialog iDialog, CATNotification iNotification, Object iData)
public void raiseObjectUpdatedNotification(ENOVIDataObject iObject)
Raises a update notification for the given object
public void showNoSelectionMessage(boolean iSingleSelect)
Shows the "no selected object(s)" message, allowing the caller to specify if the plural should be used.
protected void showStatusMessage(boolean iCmdOk)
Sets the command status message.
protected void showStatusMessage(boolean iCmdOk, String iObjectID)
Pass objectID to the message in case of multiple objects (Multiupdate) This method is called for each object for which the command failed A regular showStatusMessage( boolean iCmdOk) is always called.


Field Detail

Constructor Detail

LCANavDialogController

    LCANavDialogController()


Method Detail

addToRelationshipNavigator

    protected void addToRelationshipNavigator(ENOVIDataObject iObject)

Adds an object to the relationship navigator component.


addToRelationshipNavigator

    protected void addToRelationshipNavigator(ENOVIDataObject[] iObjects)

Adds a list of objects to the relationship navigator component.


addToRelationshipNavigator

    protected void addToRelationshipNavigator(PortalUID[] rootIDs)

Adds a list of objects to the relationship navigator component.


onCreate

    public void onCreate(CATDialog iDialog, CATNotification iNotification, Object iData)


onDocumentChanged

    public void onDocumentChanged(CATDialog iDialog, CATNotification iNotification, Object iData)


raiseObjectUpdatedNotification

    public void raiseObjectUpdatedNotification(ENOVIDataObject iObject)

Raises a update notification for the given object


showNoSelectionMessage

    public void showNoSelectionMessage(boolean iSingleSelect)

Shows the "no selected object(s)" message, allowing the caller to specify if the plural should be used.


showStatusMessage

    protected void showStatusMessage(boolean iCmdOk)

Sets the command status message.
  • The current message stack is captured for details.
  • The status message is computed based on the given success/failure of the command.
  • The status message is computed as follows
    1. The command message catalog (if it exists) will be searched for a status message.
      for success: Command..StatusSucceeded
      for failure: Command..StatusFailed
    2. If a status message is not found in the command message catalog we will look for a status message in the current dialogs' CATNls file.
      for success: Message.StatusSucceeded
      for failure: Message.StatusFailed
    3. If we still do not have a status message, we will create one by concatenating the command label with a generic success or failure message.


    showStatusMessage

        protected void showStatusMessage(boolean iCmdOk, String iObjectID)
    
    
    Pass objectID to the message in case of multiple objects (Multiupdate) This method is called for each object for which the command failed A regular showStatusMessage( boolean iCmdOk) is always called.



    Copyright © 2000, Dassault Systèmes. All rights reserved