code: public void setMode(int mode) {
          model.setMode(mode);
          asCategoryButton.setSelected(PropertySheet.VIEW_AS_CATEGORIES == mode);
      }
docs: Set the current mode, either {@link PropertySheet#VIEW_AS_CATEGORIES} or
  {@link PropertySheet#VIEW_AS_FLAT_LIST}.
  
  @param mode