adapforms.runtime.state
Class AdaptationCycle

java.lang.Object
  extended by adapforms.runtime.state.AdaptationCycle

public class AdaptationCycle
extends java.lang.Object

Holds information, primarily consisting of a list of adaptations, which is relevant only within a single adaptation cycle.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Constructor Summary
AdaptationCycle(FormInstance instance, StateTree state)
           
 
Method Summary
 void adaptReadOnly(FormPath path)
           
 void adaptRelevant(FormPath path)
           
 void adaptStatus()
           
 void adaptSubmitActionTitle()
           
 void adaptValidation(FormPath path)
           
 void adaptValue(FormPath path)
           
 void appendAdaptation(Adaptation adaptation)
          Convenience method to append adaptations to the cycle list.
 java.util.List<Adaptation> compileAdaptationList()
          This will turn all the relevant contained meta-data into an ordered list of adaptations that reflect every change relevant to the client within this cycle.
 void prependAdaptation(Adaptation adaptation)
          Convenience method to append adaptations to the cycle list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptationCycle

public AdaptationCycle(FormInstance instance,
                       StateTree state)
Method Detail

adaptValidation

public void adaptValidation(FormPath path)

adaptValue

public void adaptValue(FormPath path)

adaptRelevant

public void adaptRelevant(FormPath path)

adaptReadOnly

public void adaptReadOnly(FormPath path)

adaptSubmitActionTitle

public void adaptSubmitActionTitle()

adaptStatus

public void adaptStatus()

appendAdaptation

public void appendAdaptation(Adaptation adaptation)
Convenience method to append adaptations to the cycle list. Used by external components to insert adaptations at the correct point in time, compared to the "internal" adaptations.


prependAdaptation

public void prependAdaptation(Adaptation adaptation)
Convenience method to append adaptations to the cycle list. Used by external components to insert adaptations at the correct point in time, compared to the "internal" adaptations.


compileAdaptationList

public java.util.List<Adaptation> compileAdaptationList()
This will turn all the relevant contained meta-data into an ordered list of adaptations that reflect every change relevant to the client within this cycle.

Returns:
Accumulated list of adaptations