Package org.apache.wicket.behavior

Examples of org.apache.wicket.behavior.SimpleAttributeModifier


    WebMarkupContainer labelContainer = new WebMarkupContainer("labelContainer");
    labelContainer.setOutputMarkupId(true);
    add(labelContainer);
   
    WebMarkupContainer link = new WebMarkupContainer("highlightLink");
    link.add(new SimpleAttributeModifier("onclick", String.format("$().CAST_Highlighter('modify', '%c');return false;", type.getColor())));
    labelContainer.add(link);

    // The label may be editable, or may be retrieved from the properties file.
    IModel<String> labelModel;
    if (type.isEditable()) {
View Full Code Here


  protected void addChapterChoice() {
   
    // display only the titles in the dropdown
    ChoiceRenderer<XmlSection> renderer = new ChoiceRenderer<XmlSection>("title");
    chapterChoice = new DropDownChoice<XmlSection>("chapterChoice", new XmlSectionModel(currentChapterLoc.getSection()), mChapterList, renderer);
    chapterChoice.add(new SimpleAttributeModifier("autocomplete", "off"));
    chapterChoice.add(new SimpleAttributeModifier("ignore", "true"));

    Form<XmlSection> chapterSelectForm = new Form<XmlSection>("chapterSelectForm") {
      private static final long serialVersionUID = 1L;

      @Override
View Full Code Here

      @Override
      protected void populateItem(ListItem<ISIResponse> item) {

        // Anchor so links can jump to this id
        item.add(new WebMarkupContainer("responseAnchor")
        .add(new SimpleAttributeModifier("name", String.valueOf(item.getModelObject().getId()))));

        // Actual response
        item.add(factory.makeResponseViewComponent("response", item.getModel()));

        // Remove From Notebook button
View Full Code Here

        @Override
        public boolean isVisible() {
          return editing;
        }       
      }.setRequired(true).add(new SimpleAttributeModifier("maxlength", "32")).setOutputMarkupPlaceholderTag(true));
     
      editContainer.add (new AjaxButton("save") {
        private static final long serialVersionUID = 1L;

        @Override
View Full Code Here

          target.addChildren(getPage(), IDisplayFeedbackStatus.class);
        }       
      }
     
    };
    link.add(new SimpleAttributeModifier("href", ResponseFeedbackPanel.getDivName()));
   
    button = new Icon("button", new AbstractReadOnlyModel<String>() {
      private static final long serialVersionUID = 1L;

      @Override
View Full Code Here

    public NewWordForm(String id) {
      super(id);
      add(new TextArea<String>("wordText", mWord)
          .setRequired(true)
          .add(new SimpleAttributeModifier("maxlength", "50")));
      add(new AjaxButton("submit") {
        private static final long serialVersionUID = 1L;

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

    bpl.add(new Label("name", collectionName));
   
    // if the param collection name is the same as this one set the indicator that this is the item clicked
    if (haveSelectedCollection()) {
      if (paramCollectionName.equals(collectionName)) {
        bpl.add(new SimpleAttributeModifier("class", "selected"));
        bpl.setEnabled(false);
      }
    }
    return bpl;
  }
View Full Code Here

      int iteration = item.getIndex();

      // add the star image, which is either active (highlighted) or
      // inactive (no star)
      link.add(new WebMarkupContainer("star").add(new SimpleAttributeModifier("src",
        (onIsStarActive(iteration) ? getActiveStarUrl(iteration)
          : getInactiveStarUrl(iteration)))));
      item.add(link);
    }
View Full Code Here

        // build the filter form
        filterForm = new Form("filterForm");

        final IModel filterModel = new PropertyModel(getModel(), "filter");
        filterForm.add(filter = new TextField("filter", filterModel));
        filter.add(new SimpleAttributeModifier("title", String.valueOf(new ResourceModel(
                "ResourceKeyTreePanel.search", "Search").getObject())));
        filterForm.add(hiddenSubmit = hiddenSearchSubmit());
        filterForm.setDefaultButton(hiddenSubmit);

        return filterForm;
View Full Code Here

        // build the filter form
        filterForm = new Form("filterForm");
        add(filterForm);
        filterForm.add(filter = new TextField("filter", new Model()));
        filter.add(new SimpleAttributeModifier("title", String.valueOf(new ResourceModel(
                "GeoServerTablePanel.search", "Search").getObject())));
        filterForm.add(hiddenSubmit = hiddenSubmit());
        filterForm.setDefaultButton(hiddenSubmit);

        // setup the table
        listContainer.setOutputMarkupId(true);
        add(listContainer);
        dataView = new DataView("items", dataProvider) {

            @Override
            protected void populateItem(Item item) {
                final IModel itemModel = item.getModel();

                // odd/even style
                item.add(new SimpleAttributeModifier("class", item.getIndex() % 2 == 0 ? "even"
                        : "odd"));
               
                // add row selector (visible only if selection is active)
                WebMarkupContainer cnt = new WebMarkupContainer("selectItemContainer");
                cnt.add(selectOneCheckbox(item));
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.