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
void onCreate(CATDialog iDialog, CATNotification iNotification, Object iData)
void onDocumentChanged(CATDialog iDialog, CATNotification iNotification, Object iData)
void showStatusMessage(boolean iCmdOk, String iObjectID)
void showStatusMessage(boolean iCmdOk)
void raiseObjectUpdatedNotification(ENOVIDataObject iObject)
void showNoSelectionMessage(boolean iSingleSelect)
void addToRelationshipNavigator(ENOVIDataObject iObject)
void addToRelationshipNavigator(ENOVIDataObject[] iObjects)
void addToRelationshipNavigator(PortalUID[] rootIDs)


Field Detail

Constructor Detail

LCANavDialogController

    LCANavDialogController()


Method Detail

onCreate

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


onDocumentChanged

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


showStatusMessage

    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.


showStatusMessage

    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.


    raiseObjectUpdatedNotification

        void raiseObjectUpdatedNotification(ENOVIDataObject iObject)
    
    
    Raises a update notification for the given object


    showNoSelectionMessage

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


    addToRelationshipNavigator

        void addToRelationshipNavigator(ENOVIDataObject iObject)
    
    
    Adds an object to the relationship navigator component.


    addToRelationshipNavigator

        void addToRelationshipNavigator(ENOVIDataObject[] iObjects)
    
    
    Adds a list of objects to the relationship navigator component.


    addToRelationshipNavigator

        void addToRelationshipNavigator(PortalUID[] rootIDs)
    
    
    Adds a list of objects to the relationship navigator component.



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