IBM DB2 UDB
Plugin Interface
for Extending the Control Center

com.ibm.db2.tools.cc.navigator
Interface Defaultable


Deprecated. This interface is deprecated as of the version 8.1 of DB2.

public interface Defaultable

The Defaultable interface allows users to specify that the Default button in Configuration dialogs is disabled for CCObjects of type UDB_DATABASE or UDB_INSTANCE.

The configuration dialogs for UDB databases and instances contain buttons for settings the values back to the DB2 defaults. If you have your own set of defaults and do not want users mistakenly hitting these buttons, you can disable the buttons using a plugin. Create an object that implements CCObject and set its type to UDB_DATABASE or UDB_INSTANCE. Have it also implement this Defaultable interface. This interface contains a method called hasConfigurationDefaults. Return false from this method and all default buttons for the configuration dialog will be disabled.

See Also:
CCObject

Method Summary
 boolean hasConfigurationDefaults()
          Deprecated. Implement this method for a CCObject of type UDB_INSTANCE or UDB_DATABASE (see CCObject.getType()) and return false to indicate that buttons for restoring to defaults should be disabled in the instance or database configuration dialogs.
 

Method Detail

hasConfigurationDefaults

public boolean hasConfigurationDefaults()
Deprecated. 
Implement this method for a CCObject of type UDB_INSTANCE or UDB_DATABASE (see CCObject.getType()) and return false to indicate that buttons for restoring to defaults should be disabled in the instance or database configuration dialogs.

Returns:
false if the default button should be disabled for configuration dialogs. Return true to leave the Control Center behaviour unchanged.

IBM DB2 UDB
Plugin Interface
for Extending the Control Center

(C)Copyright IBM Corp. 2002, 2004. All rights reserved.

Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.