Class CommandButton

  • All Implemented Interfaces:
    com.googlecode.wicket.jquery.core.IJsonFactory, Serializable, org.apache.wicket.util.io.IClusterable
    Direct Known Subclasses:
    SecuredCommandButton

    public class CommandButton
    extends AbstractButton
    Provides a command button object that can be used in DataTable column
    Author:
    Sebastien Briquet - sebfz1
    See Also:
    Serialized Form
    • Constructor Detail

      • CommandButton

        public CommandButton​(String name)
        Constructor for either built-in commands or linked to 'id' property (default)
        Parameters:
        name - the button's name
      • CommandButton

        public CommandButton​(String name,
                             org.apache.wicket.model.IModel<String> text)
        Constructor for either built-in commands or linked to 'id' property (default)
        Parameters:
        name - the button's name
        text - the button's text
      • CommandButton

        public CommandButton​(String name,
                             String property)
        Constructor
        Parameters:
        name - the button's name
        property - the property used to retrieve the row's object value
      • CommandButton

        public CommandButton​(String name,
                             org.apache.wicket.model.IModel<String> text,
                             String property)
        Constructor
        Parameters:
        name - the button's name
        text - the button's text
        property - the property used to retrieve the row's object value
    • Method Detail

      • toString

        public String toString​(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior)
      • toJSONObject

        public com.github.openjson.JSONObject toJSONObject()
      • onClick

        public void onClick​(org.apache.wicket.ajax.AjaxRequestTarget target,
                            String value)
        Triggered when the column-button is clicked
        Parameters:
        target - the AjaxRequestTarget
        value - the row's object value