Example usage for org.apache.wicket.markup.html.form Radio getDefaultModelObject

List of usage examples for org.apache.wicket.markup.html.form Radio getDefaultModelObject

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.form Radio getDefaultModelObject.

Prototype

public final Object getDefaultModelObject() 

Source Link

Document

Gets the backing model object.

Usage

From source file:org.cast.isi.component.SingleSelectItem.java

License:Open Source License

/**
 * Is this item currently selected?// w  ww.  j  a  va 2 s  .  c  o  m
 * @return true if so
 */
public boolean isSelected() {
    @SuppressWarnings("unchecked")
    Radio<String> radio = (Radio<String>) get("radio");
    return (radio.getDefaultModelObject().equals(findParent(RadioGroup.class).getDefaultModelObject()));
}