Exemplo n.º 1
0
 /**
  * Returns true if the checkbox is active and clickable.
  *
  * @return {@code true} indicates enabled, {@code false} disabled
  */
 public boolean Enabled() {
   if (resourceId != -1) {
     return container.$context().findViewById(resourceId).isEnabled();
   } else {
     return view.isEnabled();
   }
 }
Exemplo n.º 2
0
 @Override
 public CheckBoxBean dehydrate(final CheckBox checkBox) {
   CheckBoxBean bean =
       new CheckBoxBean(
           checkBox.getText().toString(), checkBox.isEnabled(), checkBox.getVisibility());
   return bean;
 }