All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.applib.events.ValidityEvent Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.nakedobjects.applib.events;

import org.nakedobjects.applib.Identifier;


/**
 * Represents a check to determine whether a proposed change is valid.
 * 
 * 

* Multiple subclasses, including: *

    *
  • modifying a property
  • *
  • adding to/removing from a collection
  • *
  • checking a single argument for an action invocation
  • *
  • checking all arguments for an action invocation
  • *
  • checking all properties for an object before saving
  • *
* *

* If {@link #getReason()} is null, then is usable; otherwise is disabled. * * @see AccessEvent * @see VisibilityEvent * @see UsabilityEvent */ public abstract class ValidityEvent extends InteractionEvent { private static final long serialVersionUID = 1L; public ValidityEvent(final Object source, final Identifier identifier) { super(source, identifier); } @Override public Object getSource() { return super.getSource(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy