List of usage examples for org.apache.wicket.markup.html.form Radio getDefaultModelObject
public final Object getDefaultModelObject()
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())); }