usr/src/java/vpanels/panels/apache/org/opensolaris/os/vp/panels/apache/client/swing/ModuleControl.java
changeset 360 8943c58ad2f5
parent 350 1e9744735024
child 361 d3611020acea
equal deleted inserted replaced
359:2bd667ea3c04 360:8943c58ad2f5
    62     }
    62     }
    63 
    63 
    64     //
    64     //
    65     // Control methods
    65     // Control methods
    66     //
    66     //
       
    67 
       
    68     @Override
       
    69     protected UnsavedChangesAction getUnsavedChangesAction() {
       
    70 	// Automatically save changes to the Module -- let MainControl
       
    71 	// prompt the user to save them to the repo
       
    72 	return UnsavedChangesAction.SAVE;
       
    73     }
    67 
    74 
    68     @Override
    75     @Override
    69     public boolean isBrowsable() {
    76     public boolean isBrowsable() {
    70 	// This Control requires init parameters
    77 	// This Control requires init parameters
    71 	return false;
    78 	return false;
   134 	// Remove reference so it can be garbage collected if deleted
   141 	// Remove reference so it can be garbage collected if deleted
   135 	module = null;
   142 	module = null;
   136     }
   143     }
   137 
   144 
   138     //
   145     //
   139     // DefaultControl methods
       
   140     //
       
   141 
       
   142     @Override
       
   143     protected UnsavedChangesAction getUnsavedChangesAction() {
       
   144 	// Automatically save changes to the Module -- let MainControl
       
   145 	// prompt the user to save them to the repo
       
   146 	return UnsavedChangesAction.SAVE;
       
   147     }
       
   148 
       
   149     //
       
   150     // SwingControl methods
   146     // SwingControl methods
   151     //
   147     //
   152 
   148 
   153     @Override
   149     @Override
   154     protected ModulePanel createComponent() {
   150     protected ModulePanel createComponent() {