code: private CommonControlState getButtonType(Which state) {
          switch (state) {
  
          case BACKGROUND_DISABLED:
              return CommonControlState.DISABLED;
  
          case BACKGROUND_ENABLED:
              return CommonControlState.ENABLED;
  
          case BACKGROUND_ENABLED_FOCUSED:
              return CommonControlState.ENABLED;
  
          case BACKGROUND_PRESSED:
              return CommonControlState.PRESSED;
  
          case BACKGROUND_ENABLED_SORTED:
              return CommonControlState.ENABLED;
  
          case BACKGROUND_ENABLED_FOCUSED_SORTED:
              return CommonControlState.ENABLED;
  
          case BACKGROUND_DISABLED_SORTED:
              return CommonControlState.DISABLED;
          }
  
          return null;
      }
docs: Get the common state from the specific state.
  
  @param  state the state.
  
  @return the common state.