Class BmButtonDefaultModel

All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>, IEditableModel, IEmfAttribute<IBmObject>, IModel, IEmfValueAttribute<Boolean,IBmObject>, IValue<Boolean>, IValidable, IModelApiAwareModel, IFormValue<Boolean,Button>

public class BmButtonDefaultModel extends FormBmValue<Boolean,Button>
Button default model.
  • Constructor Details

    • BmButtonDefaultModel

      public BmButtonDefaultModel(Form form, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IFormButtonService buttonService)
      Constructor.
      Parameters:
      form - the form, can not be null
      the - object, can not be null
      the - feature, can not be null
      buttonService - the button service, can not be null
  • Method Details

    • createTask

      protected IModelApiTaskN<Void> createTask(IBmObject object, org.eclipse.emf.ecore.EStructuralFeature feature, Boolean valueToApply)
      Description copied from class: BmValue
      Creates an IModelApiTaskN that executes during applying changes.
      Overrides:
      createTask in class BmValue<Boolean>
      Parameters:
      object - the object to change, cannot be null.
      feature - the feature the feature to change, cannot be null.
      valueToApply - the value to apply.
      Returns:
      the created IModelApiTaskN.