org.apache.wicket.behavior
Class SimpleAttributeModifier
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.SimpleAttributeModifier
- All Implemented Interfaces:
- Serializable, IEventSink, IClusterable, IHeaderContributor
public class SimpleAttributeModifier
- extends Behavior
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.Behavior |
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, renderHead, unbind |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleAttributeModifier
public SimpleAttributeModifier(String attribute,
CharSequence value)
- Construct.
- Parameters:
attribute
- The attributevalue
- The value
getAttribute
public final String getAttribute()
- Returns:
- the attribute
getValue
public final CharSequence getValue()
- Returns:
- the value to set
onComponentTag
public void onComponentTag(Component component,
ComponentTag tag)
- Description copied from class:
Behavior
- Called any time a component that has this behavior registered is rendering the component tag.
- Overrides:
onComponentTag
in class Behavior
- Parameters:
component
- the component that renders this tag currentlytag
- the tag that is rendered- See Also:
Behavior.onComponentTag(org.apache.wicket.Component,
org.apache.wicket.markup.ComponentTag)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.