code: private int getComponentState(JComponent c, Region region) {
          if (region == SeaGlassRegion.SEARCH_FIELD_CANCEL_BUTTON && c.isEnabled()) {
              if (((JTextComponent) c).getText().length() == 0) {
                  return DISABLED;
              } else if (isCancelArmed) {
                  return PRESSED;
              }
  
              return ENABLED;
          }
  
          return SeaGlassLookAndFeel.getComponentState(c);
      }
docs: DOCUMENT ME!
  
  @param  c      DOCUMENT ME!
  @param  region DOCUMENT ME!
  
  @return DOCUMENT ME!