Package org.projectforge.web.user

Examples of org.projectforge.web.user.UserSelectPanel


    super.init();
    gridBuilder.newSplitPanel(GridSize.COL66);
    {
      // Assignee
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("plugins.todo.assignee"));
      final UserSelectPanel assigneeSelectPanel = new UserSelectPanel(fs.newChildId(), new Model<PFUserDO>() {
        @Override
        public PFUserDO getObject()
        {
          return userGroupCache.getUser(getSearchFilter().getAssigneeId());
        }

        @Override
        public void setObject(final PFUserDO object)
        {
          if (object == null) {
            getSearchFilter().setAssigneeId(null);
          } else {
            getSearchFilter().setAssigneeId(object.getId());
          }
        }
      }, parentPage, "assigneeId");
      fs.add(assigneeSelectPanel);
      assigneeSelectPanel.setDefaultFormProcessing(false);
      assigneeSelectPanel.init().withAutoSubmit(true);
    }
    gridBuilder.newSplitPanel(GridSize.COL33);
    {
      // Reporter
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("plugins.todo.reporter"));
      final UserSelectPanel reporterSelectPanel = new UserSelectPanel(fs.newChildId(), new Model<PFUserDO>() {

        @Override
        public PFUserDO getObject()
        {
          return userGroupCache.getUser(getSearchFilter().getReporterId());
        }

        @Override
        public void setObject(final PFUserDO object)
        {
          if (object == null) {
            getSearchFilter().setReporterId(null);
          } else {
            getSearchFilter().setReporterId(object.getId());
          }
        }
      }, parentPage, "reporterId");
      fs.add(reporterSelectPanel);
      reporterSelectPanel.setDefaultFormProcessing(false);
      reporterSelectPanel.init().withAutoSubmit(true);
    }
    {
      gridBuilder.newSplitPanel(GridSize.COL100);
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("task")).suppressLabelForWarning();
      final TaskSelectPanel taskSelectPanel = new TaskSelectPanel(fs, new Model<TaskDO>() {
View Full Code Here


      fs.add(skillChoice);

      // User
      gridBuilder.newSplitPanel(GridSize.COL50);
      fs = gridBuilder.newFieldset(getString("plugins.skillmatrix.skillrating.user"));
      @SuppressWarnings("serial")
      final UserSelectPanel userSelectPanel = new UserSelectPanel(fs.newChildId(), new Model<PFUserDO>() {
        @Override
        public PFUserDO getObject()
        {
          return userGroupCache.getUser(getSearchFilter().getUserId());
        }

        @Override
        public void setObject(final PFUserDO object)
        {
          if (object == null) {
            getSearchFilter().setUserId(null);
          } else {
            getSearchFilter().setUserId(object.getId());
          }
        }
      }, parentPage, "userId");
      fs.add(userSelectPanel);
      userSelectPanel.setDefaultFormProcessing(false);
      userSelectPanel.init().withAutoSubmit(true);

      // Skill
      gridBuilder.newSplitPanel(GridSize.COL50);
      fs = gridBuilder.newFieldset(getString("plugins.skillmatrix.skillrating.skill"));
      @SuppressWarnings("serial")
View Full Code Here

    super.init();
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      // User
      final FieldsetPanel fs = gridBuilder.newFieldset(EmployeeDO.class, "user");
      final UserSelectPanel userSelectPanel = new UserSelectPanel(fs.newChildId(), new PropertyModel<PFUserDO>(data, "user"), parentPage,
          "userId");
      userSelectPanel.setShowSelectMeButton(false).setRequired(true);
      fs.add(userSelectPanel);
      userSelectPanel.init();
    }
    {
      // cost 1
      final FieldsetPanel fs = gridBuilder.newFieldset(EmployeeDO.class, "kost1");
      fs.add(new Kost1FormComponent(InputPanel.WICKET_ID, new PropertyModel<Kost1DO>(data, "kost1"), true));
View Full Code Here

TOP

Related Classes of org.projectforge.web.user.UserSelectPanel

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.