wicket.behavior
Class SimpleAttributeModifier

java.lang.Object
  extended by wicket.behavior.AbstractBehavior
      extended by wicket.behavior.SimpleAttributeModifier
All Implemented Interfaces:
java.io.Serializable, IBehavior

public class SimpleAttributeModifier
extends AbstractBehavior

A lightweight version of the attribute modifier. This is convenient for simpler situations where you know the value upfront and you do not need a pull-based model.

Author:
Igor Vaynberg (ivaynberg)
See Also:
Serialized Form

Constructor Summary
SimpleAttributeModifier(java.lang.String attribute, java.lang.CharSequence value)
          Construct.
 
Method Summary
protected  boolean isEnabled()
           
 void onComponentTag(Component component, ComponentTag tag)
          Called any time a component that has this behavior registered is rendering the component tag.
 
Methods inherited from class wicket.behavior.AbstractBehavior
bind, cleanup, detachModel, exception, onException, onRendered, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAttributeModifier

public SimpleAttributeModifier(java.lang.String attribute,
                               java.lang.CharSequence value)
Construct.

Parameters:
attribute - The attribute
value - The value
Method Detail

onComponentTag

public void onComponentTag(Component component,
                           ComponentTag tag)
Description copied from interface: IBehavior
Called any time a component that has this behavior registered is rendering the component tag.

Specified by:
onComponentTag in interface IBehavior
Overrides:
onComponentTag in class AbstractBehavior
Parameters:
component - the component that renders this tag currently
tag - the tag that is rendered
See Also:
AbstractBehavior.onComponentTag(wicket.Component, wicket.markup.ComponentTag)

isEnabled

protected boolean isEnabled()
Returns:
True to enable the modifier, false to disable


Copyright © 2004-2007 Wicket developers. All Rights Reserved.