Package org.projectforge.user

Examples of org.projectforge.user.UserPrefArea


   * @return Created and registered UserPrefArea.
   * @see UserPrefArea#UserPrefArea(String, Class, String)
   */
  protected UserPrefArea registerUserPrefArea(final String areaId, final Class< ? > cls, final String i18nSuffix)
  {
    final UserPrefArea userPrefArea = new UserPrefArea(areaId, cls, i18nSuffix);
    UserPrefAreaRegistry.instance().register(userPrefArea);
    return userPrefArea;
  }
View Full Code Here


  public UserPrefListPage(final PageParameters parameters)
  {
    super(parameters, "userPref");
    final String area = WicketUtils.getAsString(parameters, "area");
    if (area != null) {
      final UserPrefArea userPrefArea = UserPrefAreaRegistry.instance().getEntry(area);
      form.getSearchFilter().setArea(userPrefArea);
    }
  }
View Full Code Here

  protected AbstractEditPage< ? , ? , ? > redirectToEditPage(PageParameters params)
  {
    if (params == null) {
      params = new PageParameters();
    }
    final UserPrefArea area = form.getSearchFilter().getArea();
    if (area != null) {
      params.add(UserPrefEditPage.PARAMETER_AREA, area.getId());
    }
    return super.redirectToEditPage(params);
  }
View Full Code Here

  public UserPrefEditPage(final PageParameters parameters)
  {
    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

TOP

Related Classes of org.projectforge.user.UserPrefArea

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.