code: public void setCompactMode(int mode) {
  
          switch (mode) {
              case COMPACT_MODE_FIRST_COLUMN:
                  m_compacteModeStyle.setValue(formCss().firstColumn());
                  break;
              case COMPACT_MODE_SECOND_COLUMN:
                  m_compacteModeStyle.setValue(formCss().secondColumn());
                  break;
              case COMPACT_MODE_NESTED:
                  m_compacteModeStyle.setValue(formCss().compactView());
                  break;
              case COMPACT_MODE_SINGLE_LINE:
                  m_compacteModeStyle.setValue(formCss().singleLine());
                  break;
              default:
  
          }
          updateWidth();
      }
docs: Sets the compact view mode.<p>
  
  @param mode the mode to set