All Packages Class Hierarchy This Package Previous Next Index
Interface com.sgi.sysadm.ui.taskData.TaskDataVerifier
- public interface TaskDataVerifier
TaskDataVerifier verifies one or more TaskData attributes for validity
and consistency.
-
MAY_BE_EMPTY
- Use this as the first parameter to dataOK() if the TaskData attributes
do not need to be set.
Deprecated.
-
MUST_BE_SET
- Use this as the first parameter to dataOK() if the TaskData attributes
must be set by the user.
-
dataOK(int, Object, ResultListener)
- Determine if the TaskData attributes associated with this verifier
are valid and consistent.
MAY_BE_EMPTY
public static final int MAY_BE_EMPTY
- Note: MAY_BE_EMPTY is deprecated.
MAY_BE_EMPTY is no longer used.
- Use this as the first parameter to dataOK() if the TaskData attributes
do not need to be set. In other words, null strings or zero values
are valid.
MUST_BE_SET
public static final int MUST_BE_SET
- Use this as the first parameter to dataOK() if the TaskData attributes
must be set by the user.
dataOK
public abstract void dataOK(int browseFlag,
Object context,
ResultListener listener)
- Determine if the TaskData attributes associated with this verifier
are valid and consistent.
If the verifier fails, it should create a new ResultEvent and call
ResultEvent.setReason() with a localized error message. The ResultEvent
should then be passed to listener.failed().
If the verifier succeeds but the user should be warned of some
condition, the verifier should post a warning dialog and wait to
call listener.succeeded() until the user confirms the dialog.
- Parameters:
- browseFlag - MAY_BE_EMPTY if null strings or zero values are
valid, MUST_BE_SET if a valid value must be entered.
- context - An object the verifier can use to behave differently
in different contexts. The verifier must accept null
for this parameter in order to be usable with the
default verification process.
- listener - A ResultListener to be notified when the verification
succeeds or fails.
All Packages Class Hierarchy This Package Previous Next Index