Coverage Report - org.openpermis.editor.policy.view.Editor
 
Classes in this File Line Coverage Branch Coverage Complexity
Editor
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) 2009, Swiss Federal Department of Defence Civil Protection and Sport
 3  
  *                     (http://www.vbs.admin.ch)
 4  
  * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch)
 5  
  * All rights reserved.
 6  
  *
 7  
  * Licensed under the Open Permis License which accompanies this distribution,
 8  
  * and is available at http://www.openpermis.org/BSDlicenceKent.txt
 9  
  */
 10  
 package org.openpermis.editor.policy.view;
 11  
 
 12  
 import org.openpermis.policy.bean.SerialNumber;
 13  
 
 14  
 /**
 15  
  * Extended view interface for editor views.
 16  
  * <p>Editor views are displayed in the working area. Their main purpose is to
 17  
  * present a portion of the model so that it can be edited, as such there may
 18  
  * be several editors of the same type open at the same time.</p>
 19  
  * @since 0.1.0
 20  
  */
 21  
 public interface Editor
 22  
         extends View
 23  
 {
 24  
 
 25  
         //---- Methods
 26  
         
 27  
         /**
 28  
          * Returns the serial number of the model this editor is editing.
 29  
          * @return the serial number requested, must not be {@code null}.
 30  
          * @since 0.1.0
 31  
          */
 32  
         public SerialNumber getModelSerialNumber ();
 33  
         
 34  
         /**
 35  
          * Disposes the editor which should remove all listeners it has added.
 36  
          * @since 0.1.0
 37  
          */
 38  
         public void dispose ();
 39  
         
 40  
 }