org.wicketstuff.minis.behavior
Class DependentModelBehavior<D>

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.wicketstuff.minis.behavior.DependentModelBehavior<D>
Type Parameters:
D - the type of the model this behavior depends on
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable
Direct Known Subclasses:
EnabledModelBehavior, VisibleModelBehavior

public abstract class DependentModelBehavior<D>
extends org.apache.wicket.behavior.Behavior

Behavior that uses the value of the dependent model. The dependent model is detached when the behavior is detached.

See Also:
Serialized Form

Constructor Summary
DependentModelBehavior(org.apache.wicket.model.IModel<D> dependentModel)
          Constructor.
 
Method Summary
 void detach(org.apache.wicket.Component component)
           
protected  org.apache.wicket.model.IModel<D> getDependentModel()
          Returns the model the behavior depends on.
 
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, renderHead, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependentModelBehavior

public DependentModelBehavior(org.apache.wicket.model.IModel<D> dependentModel)
Constructor.

Parameters:
dependentModel - model the behavior is dependent on
Method Detail

detach

public void detach(org.apache.wicket.Component component)
Overrides:
detach in class org.apache.wicket.behavior.Behavior

getDependentModel

protected org.apache.wicket.model.IModel<D> getDependentModel()
Returns the model the behavior depends on.

Returns:
the model the behavior depends on


Copyright © 2018. All rights reserved.