org.apache.wicket.behavior
Class SimpleAttributeModifier
java.lang.Object
org.apache.wicket.behavior.AbstractBehavior
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
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
afterRender, beforeRender, bind, cleanup, detach, exception, getStatelessHint, isEnabled, isTemporary, onException, onRendered, renderHead, unbind |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleAttributeModifier
public SimpleAttributeModifier(java.lang.String attribute,
java.lang.CharSequence value)
- Construct.
- Parameters:
attribute
- The attributevalue
- The value
getAttribute
public final java.lang.String getAttribute()
- Returns:
- the attribute
getValue
public final java.lang.CharSequence getValue()
- Returns:
- the value to set
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 currentlytag
- 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.