Package org.apache.wicket.behavior

Examples of org.apache.wicket.behavior.SimpleAttributeModifier


        m = new ClassMessage();
        m.setMessage((new StringResourceModel("ManageClasses.noClassMessage", this, null, "No Class Message").getString()));
     
      setDefaultModel(new CompoundPropertyModel<ClassMessage>(m));
      classMessageForm.setModel(new CompoundPropertyModel<ClassMessage>(m));
      add(new SimpleAttributeModifier("style", "display:block"));
      super.onBeforeRender();
    }
View Full Code Here


      TextField<String> periodName = new TextField<String>("name", new PropertyModel<String>(getModel(), "name"));
      add(periodName);
     
      // Ensure that no two periods in the same site have the same name.
      periodName.add(new UniqueDataFieldValidator<String>(Period.class, "name").limitScope("site", ISISession.get().getCurrentSiteModel()));
      periodName.add(new SimpleAttributeModifier("maxlength", "32"));
      periodName.setRequired(true);
      periodName.setOutputMarkupId(true);

      final FeedbackPanel feedback = new FeedbackPanel("feedback", new ContainerFeedbackMessageFilter(this));
      feedback.setMaxMessages(1);
View Full Code Here

    dialogBorder = newDialogBorder("dialogBorder", new PropertyModel<String>(this, "title"));

    // This allows us to add components directly to the panel, even though they are enclosed in the DialogBorder
    dialogBorder.setTransparentResolver(true);
    dialogBorder.setMoveContainer(this);   
    dialogBorder.getContentContainer().add(new SimpleAttributeModifier("class", "visuraloverlaycontent modalContainer modalBody"));
    add(dialogBorder);
  }
View Full Code Here

        // Delete Link
        item.add(new WebMarkupContainer("delete").add(dialog.getClickToOpenBehavior())
          .setVisible(ISISession.get().getUser().equals(m.getAuthor())));

        if (m.getAuthor().getRole().equals(Role.STUDENT)) {
          item.add(new SimpleAttributeModifier("class", "respStudent"));
        } else if (m.getAuthor().getRole().equals(Role.TEACHER)){
          item.add(new SimpleAttributeModifier("class", "respTeacher"));
        }
      }     
    };
    responseContainer = new WebMarkupContainer("responseContainer");
    responseContainer.setOutputMarkupPlaceholderTag(true);
View Full Code Here

    public NewQuestionForm(String id) {
      super(id);
      TextArea<String> questionTextArea = new TextArea<String>("text", textModel);
      questionTextArea.add(new QuestionNameValidator(null))
          .setRequired(true)
          .add(new SimpleAttributeModifier("maxlength", "250"));
      add(new FormComponentLabel("questionLabel", questionTextArea));
      add(questionTextArea);
      add(new AjaxButton("submit") {
        private static final long serialVersionUID = 1L;
View Full Code Here

      addContent();
    }

    private void addContent() {
      TextField<String> questionName = new TextField<String>("text");
      questionName.add(new SimpleAttributeModifier("maxlength", "250"));
      questionName.add(new QuestionNameValidator(selectedQuestion));
      questionName.setRequired(true);
      add(questionName);

      add(new AjaxFallbackLink<Object>("cancel") {
View Full Code Here

    if (isCurrent)
      link.setEnabled(false);
   
    if (q.getOwner() != null) {
      if (isCurrent) {
        link.add(new SimpleAttributeModifier("class", "selected"));
      }
      else
        item.add(new SimpleAttributeModifier("class", "questionP"));
    } else {
      if (isCurrent)
        link.add(new ClassAttributeModifier("selected"));

    }
View Full Code Here

    };
      periodStudentSelectForm.setOutputMarkupId(true);
     
      // Period Chooser
      periodChoice = new PeriodChoice("periodChoice", ISISession.get().getCurrentPeriodModel()); // Set default period from session
      periodChoice.add(new SimpleAttributeModifier("autocomplete", "off"));
    periodChoice.setOutputMarkupId(true);
   
    // Set Period onChange Behavior
    periodChoice.add(new AjaxFormComponentUpdatingBehavior("onchange") {
      private static final long serialVersionUID = 1L;
View Full Code Here

          WebMarkupContainer superSectionContainer = new WebMarkupContainer(superSectionRepeater.newChildId());
          superSectionRepeater.add(superSectionContainer);
          if (rootChild.isSuperSection()) {
            superSectionContainer.add(new Label("superSectionTitle", rootChild.getTitle()));
            if (rootChild.getChildren().size() > 1) {
              superSectionContainer.add(new SimpleAttributeModifier("colspan", String.valueOf(rootChild.getChildren().size())));
            }
          } else {
            superSectionContainer.add(new EmptyPanel("superSectionTitle"));
          }
        }
View Full Code Here

    public NewQuestionForm(String id) {
      super(id);
      add(new TextArea<String>("text", textModel)
          .add(new QuestionNameValidator(null))
          .setRequired(true)
          .add(new SimpleAttributeModifier("maxlength", "250")));
      add(new AjaxButton("submit") {
        private static final long serialVersionUID = 1L;

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
View Full Code Here

TOP

Related Classes of org.apache.wicket.behavior.SimpleAttributeModifier

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.