org.apache.wicket.behavior
Class SimpleAttributeModifier

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

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
 java.lang.String getAttribute()
           
 java.lang.CharSequence getValue()
           
 boolean isEnabled()
          Deprecated. use isEnabled(Component) now.
 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 org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, bind, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onException, onRendered, rendered, renderHead
 
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

getAttribute

public final java.lang.String getAttribute()
Returns:
the attribute

getValue

public final java.lang.CharSequence getValue()
Returns:
the value to set

isEnabled

public final boolean isEnabled()
Deprecated. use isEnabled(Component) now.

This method is deprecated, use the isEnabled(Component)

Returns:
true

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(org.apache.wicket.Component, org.apache.wicket.markup.ComponentTag)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.