code: public void setColorSelectMode(int mode) {
  
          if (!isAttached()) {
              return;
          }
          m_colorA.setResource(m_cpImageBundle.bar_white());
          m_colorB.setResource(m_cpImageBundle.bar_white());
          m_colorC.setResource(m_cpImageBundle.bar_white());
          switch (mode) {
              case SATURATIN:
                  m_colorD.setResource(m_cpImageBundle.bar_saturation());
                  break;
  
              case BRIGHTNESS:
                  m_colorD.setResource(m_cpImageBundle.bar_brightness());
                  break;
  
              case HUE:
                  m_colorD.setResource(m_cpImageBundle.bar_hue());
                  break;
  
              case RED:
                  m_colorA.setResource(m_cpImageBundle.bar_red_tl());
                  m_colorB.setResource(m_cpImageBundle.bar_red_tr());
                  m_colorC.setResource(m_cpImageBundle.bar_red_br());
                  m_colorD.setResource(m_cpImageBundle.bar_red_bl());
                  break;
  
              case GREEN:
                  m_colorA.setResource(m_cpImageBundle.bar_green_tl());
                  m_colorB.setResource(m_cpImageBundle.bar_green_tr());
                  m_colorC.setResource(m_cpImageBundle.bar_green_br());
                  m_colorD.setResource(m_cpImageBundle.bar_green_bl());
                  break;
  
              case BLUE:
                  m_colorA.setResource(m_cpImageBundle.bar_blue_tl());
                  m_colorB.setResource(m_cpImageBundle.bar_blue_tr());
                  m_colorC.setResource(m_cpImageBundle.bar_blue_br());
                  m_colorD.setResource(m_cpImageBundle.bar_blue_bl());
                  break;
              default:
                  break;
          }
      }
docs: Sets the color selection mode. <p>
  @param mode Can be one of: ColorBar.Saturation, ColorBar.Hue, ColorBar.Brightness, ColorBar.Red, ColorBar.Green, ColorBar.Blue, ColorBar.Red.