org.apache.wicket.behavior
Class SimpleAttributeModifier

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.SimpleAttributeModifier
All Implemented Interfaces:
java.io.Serializable, IClusterable, IComponentAwareEventSink, IComponentAwareHeaderContributor

Deprecated. use AttributeModifier.replace(String, java.io.Serializable) instead

@Deprecated
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

Constructor Summary
SimpleAttributeModifier(java.lang.String attribute, java.lang.CharSequence value)
          Deprecated. Construct.
 
Method Summary
 java.lang.String getAttribute()
          Deprecated.  
 java.lang.CharSequence getValue()
          Deprecated.  
 void onComponentTag(Component component, ComponentTag tag)
          Deprecated. Called any time a component that has this behavior registered is rendering the component tag.
 
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
 

Constructor Detail

SimpleAttributeModifier

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

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

getAttribute

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

getValue

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

onComponentTag

public void onComponentTag(Component component,
                           ComponentTag tag)
Deprecated. 
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 currently
tag - the tag that is rendered
See Also:
Behavior.onComponentTag(org.apache.wicket.Component, org.apache.wicket.markup.ComponentTag)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.