Results 1 to 3 of 3

Thread: Property Constraint dependent on another property

  1. #1

    Default Property Constraint dependent on another property

    How can I implement a constraint that is dependent on the input of another property? I've searched through the sample apps and haven't found anything. Here's what i'm trying:

    Code:
    add("hitpoints", new Constraint() {
      public boolean test(Object object) {
        Integer value = (Integer) object;
        //need to lookup another property to determine if this is a valid input.
      }
    }

  2. #2
    Join Date
    Jun 2006
    Posts
    14

    Default

    you need to use 'PropertiesConstraint'

  3. #3

    Default

    the PropertiesConstraint works great. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •