code: protected CommonControlState getButtonType(Which state) {
          switch (state) {
  
          case BACKGROUND_DEFAULT:
          case BACKGROUND_DEFAULT_FOCUSED:
          case BACKGROUND_SELECTED:
          case BACKGROUND_SELECTED_FOCUSED:
              return CommonControlState.DEFAULT;
  
          case BACKGROUND_PRESSED_DEFAULT:
          case BACKGROUND_PRESSED_DEFAULT_FOCUSED:
              return CommonControlState.DEFAULT_PRESSED;
  
          case BACKGROUND_DISABLED:
              return CommonControlState.DISABLED;
  
          case BACKGROUND_ENABLED:
          case BACKGROUND_FOCUSED:
              return CommonControlState.ENABLED;
  
          case BACKGROUND_PRESSED:
          case BACKGROUND_PRESSED_FOCUSED:
          case BACKGROUND_PRESSED_SELECTED:
          case BACKGROUND_PRESSED_SELECTED_FOCUSED:
              return CommonControlState.PRESSED;
  
          case BACKGROUND_DISABLED_SELECTED:
              return CommonControlState.DISABLED_SELECTED;
          }
  
          return null;
      }
docs: Get the button colors for the state.
  
  @param  state the button state to paint.
  
  @return the button color set.