Package org.cast.isi.panel

Examples of org.cast.isi.panel.StudentFlagPanel


    public DisplayRowFragment(String id, final IModel<User> mUser) {
      super(id, "displayRowFragment", ManageClasses.this, mUser);
      setOutputMarkupId(true);
     
      // Labels to display student information when not actively editing
      add(new StudentFlagPanel("studentFlagPanelLabel", mUser.getObject(), flagMap));
      add(new Label("lastName", mUser.getObject().getLastName()));
      add(new Label("firstName", mUser.getObject().getFirstName()));
      add(new Label("email", mUser.getObject().getEmail()));
      add(new Label("username", mUser.getObject().getUsername()));
      add(new Label("password", new Model<String>("******")));
 
View Full Code Here


    public FormRowFragment(String id, final IModel<User> mUser) {
      super(id, "editRowFragment", ManageClasses.this, mUser);
      setOutputMarkupId(true);
      newStudent = mUser.getObject().isTransient();
     
      add(new StudentFlagPanel("studentFlagPanel", mUser.getObject(), flagMap).setVisible(!newStudent));

      TextField<String> lastName = new TextField<String>("lastName", new PropertyModel<String>(mUser, "lastName"));
      lastName.setRequired(true);
      lastName.add(new SimpleAttributeModifier("maxlength", "32"));
      add(lastName);
View Full Code Here

          // for each student add the following fields
          @Override
          protected void populateItem(ListItem<User> userItem) {
            final User student = userItem.getModelObject();
            userItem.add(new StudentFlagPanel("flagPanel", student, mFlagMap.getObject()));
            userItem.add(new Label("studentName", student.getSortName()));

            // The cells in the table are status indications
            userItem.add(new ListView<ISIXmlSection>("statusCell", rootSection.getSectionChildren()) {
              private static final long serialVersionUID = 1L;
View Full Code Here

TOP

Related Classes of org.cast.isi.panel.StudentFlagPanel

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.