org.odlabs.wiquery.ui.button
Class ButtonElement<T extends Serializable>

java.lang.Object
  extended by org.odlabs.wiquery.ui.button.ButtonElement<T>
Type Parameters:
T - The model object type
All Implemented Interfaces:
Serializable

public class ButtonElement<T extends Serializable>
extends Object
implements Serializable

$Id$

Bean to specify a button element for the button set

Since:
1.1
Author:
Julien Roche
See Also:
Serialized Form

Constructor Summary
ButtonElement()
          Default constructor
ButtonElement(org.apache.wicket.model.IModel<T> model, org.apache.wicket.model.IModel<String> label)
          Constructor
 
Method Summary
 org.apache.wicket.model.IModel<String> getLabel()
           
 org.apache.wicket.model.IModel<T> getModel()
           
 void setLabel(org.apache.wicket.model.IModel<String> label)
          Set the model label
 void setModel(org.apache.wicket.model.IModel<T> model)
          Set the mode of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonElement

public ButtonElement()
Default constructor


ButtonElement

public ButtonElement(org.apache.wicket.model.IModel<T> model,
                     org.apache.wicket.model.IModel<String> label)
Constructor

Parameters:
model - Model of the object
label - Model for the button's label
Method Detail

getLabel

public org.apache.wicket.model.IModel<String> getLabel()
Returns:
the model of the label

getModel

public org.apache.wicket.model.IModel<T> getModel()
Returns:
the model of our object

setLabel

public void setLabel(org.apache.wicket.model.IModel<String> label)
Set the model label

Parameters:
label -

setModel

public void setModel(org.apache.wicket.model.IModel<T> model)
Set the mode of the object

Parameters:
model -


Copyright © 2012. All Rights Reserved.