Example #1
0
 /** Returns true if this node is a radio button. */
 public boolean isRadioButton() {
   if (!isToggle()) return false;
   final String selectionGroup = moduleInfo.getSelectionGroup();
   return selectionGroup != null && !selectionGroup.isEmpty();
 }
Example #2
0
 /** Returns true if this node is a checkbox. */
 public boolean isCheckBox() {
   if (!isToggle()) return false;
   final String selectionGroup = moduleInfo.getSelectionGroup();
   return selectionGroup == null || selectionGroup.isEmpty();
 }