Package org.projectforge.user

Examples of org.projectforge.user.UserPrefDO


       *      java.lang.String, org.apache.wicket.model.IModel)
       */
      @Override
      public void populateItem(final Item<ICellPopulator<UserPrefDO>> item, final String componentId, final IModel<UserPrefDO> rowModel)
      {
        final UserPrefDO userPref = rowModel.getObject();
        final String label;
        if (userPref.getArea() != null) {
          label = getString(userPref.getArea().getI18nKey());
        } else {
          label = "";
        }
        item.add(new ListSelectActionPanel(componentId, rowModel, UserPrefEditPage.class, userPref.getId(), UserPrefListPage.this, label));
        cellItemListener.populateItem(item, componentId, rowModel);
        addRowClick(item);
      }
    });
    columns.add(new CellItemListenerPropertyColumn<UserPrefDO>(new Model<String>(getString("userPref.name")), "name", "name",
View Full Code Here


        @Override
        protected void onSelectionChanged(final String newSelection)
        {
          if (StringUtils.isNotEmpty(newSelection) == true) {
            // Fill fields with selected template values:
            final UserPrefDO userPref = userPrefDao.getUserPref(UserPrefArea.TIMESHEET_TEMPLATE, newSelection);
            if (userPref != null) {
              data.setKost2(null).setTask(null);
              locationTextField.processInput(); // Update model.
              descriptionArea.processInput(); // Update model.
              if (recentUserPref != null) {
View Full Code Here

   * @see UserPrefDao#addUserPrefParameters(UserPrefDO, Object)
   */
  public UserPrefEditPage(final UserPrefArea area, final Object object)
  {
    super(new PageParameters(), "userPref");
    final UserPrefDO userPref = new UserPrefDO();
    initUserPref(userPref, area, object);
    super.init(userPref);
  }
View Full Code Here

    super(parameters, "userPref");
    final String areaId = WicketUtils.getAsString(parameters, PARAMETER_AREA);
    if (areaId != null) {
      final UserPrefArea area = UserPrefAreaRegistry.instance().getEntry(areaId);
      if (area != null) {
        final UserPrefDO userPref = new UserPrefDO();
        initUserPref(userPref, area, null);
        super.init(userPref);
        return;
      }
    }
View Full Code Here

          @Override
          protected void onSelectionChanged(final String newSelection)
          {
            if (StringUtils.isNotEmpty(newSelection) == true) {
              // Fill fields with selected template values:
              final UserPrefDO userPref = userPrefDao.getUserPref(ToDoPlugin.USER_PREF_AREA, newSelection);
              if (userPref != null) {
                userPrefDao.fillFromUserPrefParameters(userPref, data);
              }
              templateName = "";
              // Mark all form components as model changed.
View Full Code Here

  public F getCurrentFavorite()
  {
    if (StringUtils.isEmpty(selected) == true) {
      return null;
    }
    final UserPrefDO userPref = userPrefDao.getUserPref(userPrefArea, selected);
    if (userPref != null) {
      final F favorite = newFavoriteInstance(null);
      userPrefDao.fillFromUserPrefParameters(userPref, favorite);
      return favorite;
    }
View Full Code Here

TOP

Related Classes of org.projectforge.user.UserPrefDO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.