Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }