org.wamblee.wicket.behavior
Class OnClickConfirmationBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.AttributeModifier
          extended by org.wamblee.wicket.behavior.OnClickConfirmationBehavior
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.IHeaderContributor

public class OnClickConfirmationBehavior
extends org.apache.wicket.AttributeModifier

Attribute modifier to add onclick confirmation to buttons.

Author:
Erik Brakkee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.AttributeModifier
VALUELESS_ATTRIBUTE_ADD, VALUELESS_ATTRIBUTE_REMOVE
 
Constructor Summary
OnClickConfirmationBehavior(org.apache.wicket.model.IModel<?> aMsgModel)
          Constructs the behavior.
OnClickConfirmationBehavior(java.lang.String aMsg)
          Constructs the behavior.
 
Method Summary
protected  java.lang.String newValue(java.lang.String aCurrentValue, java.lang.String aReplacementValue)
           
 
Methods inherited from class org.apache.wicket.AttributeModifier
detach, getAddAttributeIfNotPresent, getAttribute, getContextRelativeValue, getPattern, getReplaceModel, isEnabled, isEnabled, onComponentTag, replaceAttibuteValue, replaceAttributeValue, setEnabled, toString
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, bind, cleanup, detachModel, exception, getStatelessHint, isTemporary, onException, onRendered, rendered, renderHead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnClickConfirmationBehavior

public OnClickConfirmationBehavior(java.lang.String aMsg)
Constructs the behavior.

Parameters:
aMsg - Confirmation message.

OnClickConfirmationBehavior

public OnClickConfirmationBehavior(org.apache.wicket.model.IModel<?> aMsgModel)
Constructs the behavior.

Parameters:
aMsgModel - Confirmation message.
Method Detail

newValue

protected java.lang.String newValue(java.lang.String aCurrentValue,
                                    java.lang.String aReplacementValue)
Overrides:
newValue in class org.apache.wicket.AttributeModifier


Copyright © 2022. All Rights Reserved.