components/visual-panels/core/src/java/vpanels/panel/com/oracle/solaris/vp/panel/common/smf/InstanceManagedObject.java
branchs11-update
changeset 2805 4888f6212f94
parent 827 0944d8c0158b
equal deleted inserted replaced
2804:7546c836fd87 2805:4888f6212f94
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 
    21 
    22 /*
    22 /*
    23  * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
    23  * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
    24  */
    24  */
    25 
    25 
    26 package com.oracle.solaris.vp.panel.common.smf;
    26 package com.oracle.solaris.vp.panel.common.smf;
    27 
    27 
    28 import java.beans.PropertyChangeEvent;
    28 import java.beans.PropertyChangeEvent;
   131 	/* More or less true */
   131 	/* More or less true */
   132 	return state != state.DISABLED;
   132 	return state != state.DISABLED;
   133     }
   133     }
   134 
   134 
   135     public void setEnabled(boolean enable) throws ScfException {
   135     public void setEnabled(boolean enable) throws ScfException {
   136 	ServiceMXBean bean = getService();
   136 	ServiceBean bean = getService();
   137 	if (bean != null) {
   137 	if (bean != null) {
   138 	    bean.setPersistentlyEnabled(enable);
   138 	    bean.setPersistentlyEnabled(enable);
   139 	}
   139 	}
   140     }
   140     }
   141 }
   141 }