예제 #1
0
  public DepartmentAdminPage() {
    super(
        new ResourceModel("admin.dept.title"),
        new ResourceModel("admin.dept.addDepartment"),
        new ResourceModel("admin.dept.editDepartment"),
        new ResourceModel("admin.dept.noEditEntrySelected"));

    List<UserDepartment> departments;
    departments = getUserDepartments();

    Fragment deptListHolder = getDepartmentListHolder(departments);

    GreyRoundedBorder greyBorder =
        new GreyRoundedBorder("entrySelectorFrame", new ResourceModel("admin.dept.title"));
    add(greyBorder);

    entrySelectorPanel = new EntrySelectorPanel(DEPT_SELECTOR_ID, deptListHolder);
    greyBorder.add(entrySelectorPanel);
  }
예제 #2
0
  public UserAdmin() {
    super(
        new ResourceModel("admin.user.title"),
        new ResourceModel("admin.user.addUser"),
        new ResourceModel("admin.user.editUser"),
        new ResourceModel("admin.user.noEditEntrySelected"),
        "admin.user.help.header",
        "admin.user.help.body");

    List<User> users;
    users = getUsers();

    Fragment userListHolder = getUserListHolder(users);

    GreyRoundedBorder greyBorder =
        new GreyRoundedBorder(
            "entrySelectorFrame", new ResourceModel("admin.user.title"), WebGeo.W_ENTRY_SELECTOR);
    add(greyBorder);

    selectorPanel =
        new EntrySelectorPanel(
            "userSelector", userListHolder, new ResourceModel("admin.user.hideInactive"));
    greyBorder.add(selectorPanel);
  }