com.ibm.etools.systems.core.ui.validators
Class ValidatorRemoteSelection
java.lang.Object
com.ibm.etools.systems.core.ui.validators.ValidatorRemoteSelection
- All Implemented Interfaces:
- IValidatorRemoteSelection
- public abstract class ValidatorRemoteSelection
- extends Object
- implements IValidatorRemoteSelection
On remote selection dialogs, you can pass an instance of this class to validate that
it is ok to enable the OK button when the user selects a remote object. If you return
a SystemMessage, ok will be disabled and the message will be shown on the message line.
Return a SystemMessage with blank in the first level text to disable OK without showing
an error message.
This class must be subclassed.Alternatively you can just implement IValidatorRemoteSelection
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyright
public static final String copyright
- See Also:
- Constant Field Values
ValidatorRemoteSelection
public ValidatorRemoteSelection()
isValid
public abstract SystemMessage isValid(SystemConnection selectedConnection,
Object[] selectedObjects,
ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
- The user has selected a remote object. Return null if OK is to be enabled, or a SystemMessage
if it is not to be enabled. The message will be displayed on the message line.
- Specified by:
isValid
in interface IValidatorRemoteSelection
Copyright © 2005 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.