org.openbp.guiclient.objectvalidators
Class DescriptionObjectValidator

java.lang.Object
  extended by org.openbp.guiclient.objectvalidators.ValidatorBase
      extended by org.openbp.guiclient.objectvalidators.DescriptionObjectValidator
All Implemented Interfaces:
PropertyValidator, ObjectValidator
Direct Known Subclasses:
DisplayObjectValidator

public class DescriptionObjectValidator
extends ValidatorBase

Object validator for the DescriptionObject class. Checks if the name is a valid identifier.

Author:
Heiko Erhardt

Constructor Summary
DescriptionObjectValidator()
           
 
Method Summary
 boolean validateProperty(java.lang.String propertyName, java.lang.Object propertyValue, java.lang.Object editedObject, PropertyEditor propertyEditor, boolean complete)
          Property validator method.
 
Methods inherited from class org.openbp.guiclient.objectvalidators.ValidatorBase
displayErrorMsg, displayMsgContainer, validateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptionObjectValidator

public DescriptionObjectValidator()
Method Detail

validateProperty

public boolean validateProperty(java.lang.String propertyName,
                                java.lang.Object propertyValue,
                                java.lang.Object editedObject,
                                PropertyEditor propertyEditor,
                                boolean complete)
Property validator method. Ensures that an object name is given and that the name is a valid identifier.

Specified by:
validateProperty in interface PropertyValidator
Overrides:
validateProperty in class ValidatorBase
Parameters:
propertyName - Name of the edited property
propertyValue - Current value of the property
editedObject - Edited object that contains the property
propertyEditor - Property editor that edits the property value
complete - true The value has been completely entered. This is the case if the user wishes to leave the field.
false The value is being typed/edited.
Returns:
true The property value is valid.
false The property value is invalid. In this case, the focus should not be set to the next component.


Copyright © 2011. All Rights Reserved.