SRJRCFrames
v0.1.296

de.schwarzrot.ui.validation.constraints
Class VCTaskExecutedSuccessfully<E extends Entity>

java.lang.Object
  extended by de.schwarzrot.ui.validation.constraints.AbstractValidationConstraint<E>
      extended by de.schwarzrot.ui.validation.constraints.VCTaskExecutedSuccessfully<E>
Type Parameters:
E - - bean (not used by this class)
All Implemented Interfaces:
ValidationConstraint

public class VCTaskExecutedSuccessfully<E extends Entity>
extends AbstractValidationConstraint<E>

checks executation state and execution result of a task

Author:
Reinhard Mantey

Constructor Summary
VCTaskExecutedSuccessfully(com.jgoodies.binding.PresentationModel<E> model, String taskClassname, Task task2Check)
          constructs a validation constraint, that checks execution state and execution result of a task.
 
Method Summary
 boolean matches()
          the validation kernel
 
Methods inherited from class de.schwarzrot.ui.validation.constraints.AbstractValidationConstraint
getLogger, getModel, getPropertyName, getValue, getValue, setModel, setPropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCTaskExecutedSuccessfully

public VCTaskExecutedSuccessfully(com.jgoodies.binding.PresentationModel<E> model,
                                  String taskClassname,
                                  Task task2Check)
constructs a validation constraint, that checks execution state and execution result of a task. As no property of the bean is used, use the classname of the task to check as parameter, so the error message becomes a bit more meaningful.

Parameters:
model - - not used
taskClassname - - class name of the task to check
task2Check - - the task to check
Method Detail

matches

public boolean matches()
Description copied from interface: ValidationConstraint
the validation kernel

Returns:
true - if the property passed validation

false - if the property failed on validation


SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.