Examples of AttributeModifier


Examples of org.apache.wicket.AttributeModifier

    });

    // add the new tabbed panel, attribute modifier only used to switch
    // between different css variations
    add(new TabbedPanel("tabs", tabs).add(new AttributeModifier("class", true,
      TabbedPanelPage.this.getDefaultModel())));

  }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

            labelIfRegular.add(new CssClassAppender("mandatory"));
        }

        final String describedAs = getModel().getDescribedAs();
        if(describedAs != null) {
            labelIfRegular.add(new AttributeModifier("title", Model.of(describedAs)));
        }
       
        final Label scalarName = new Label(ID_SCALAR_NAME, getRendering().getLabelCaption(checkBox));
        labelIfRegular.add(scalarName);
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

        entityLink.syncVisibilityAndUsability();
    }

    private void setTitleAttribute(final String titleAttribute) {
        entityLink.add(new AttributeModifier("title", Model.of(titleAttribute)));
    }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

        final FormComponentLabel labelIfRegular = new FormComponentLabel(ID_SCALAR_IF_REGULAR, entityLink);
        labelIfRegular.add(entityLink);
       
        final String describedAs = getModel().getDescribedAs();
        if(describedAs != null) {
            labelIfRegular.add(new AttributeModifier("title", Model.of(describedAs)));
        }
       
        final Label scalarName = new Label(ID_SCALAR_NAME, getRendering().getLabelCaption(entityLink));
        labelIfRegular.add(scalarName);
       
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

    private static final long serialVersionUID = 1L;

    private Container(String id) {
      super(id);
      add(new Label("percent", String.format("%d%%", percent)));
      add(new AttributeModifier("style", true, getStyleModel()));
    }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

      // link to file in content directory
      return new ResourceLink<Object> (wicketId, getRelativeRef(elt.getAttribute("href")));
     
    } else if (wicketId.startsWith("sectionIcon_")) {   
      WebComponent icon = ISIApplication.get().makeIcon(wicketId, elt.getAttribute("class"));
      icon.add(new AttributeModifier("class", true, new Model<String>("sectionIcon")));
      return icon;
 
    } else if (wicketId.startsWith("thumbRating_")) {
      ContentLoc loc = new ContentLoc(getModel().getObject());
      String thumbId = elt.getAttribute("id");
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

  protected IFeatureService featureService;
 
  public SectionCompleteToggleTextLink(String id, IModel<XmlSection> model,
      IModel<User> targetUserModel) {
    super(id, model, targetUserModel);
    add(new AttributeModifier("class", true, new Model<String>(){

        private static final long serialVersionUID = 1L;
       
        @Override
        public String getObject() {
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

          else
            return "img/icons/view_feedback.png";
      }     
    });

    link.add(new AttributeModifier("title", true, new AbstractReadOnlyModel<String>() {
      private static final long serialVersionUID = 1L;

      @Override
      public String getObject() {
        if (role.equals(Role.STUDENT))
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

      protected void onModelChanging()
      {
        AjaxEditableMultiLineLabel.this.onModelChanging();
      }
    };
    editor.add(new AttributeModifier("rows", new AbstractReadOnlyModel<Integer>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Integer getObject()
      {
        return new Integer(rows);
      }
    }));
    editor.add(new AttributeModifier("cols", new AbstractReadOnlyModel<Integer>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Integer getObject()
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

    if (!(RequestCycle.get().getRequest() instanceof UploadWebRequest))
    {
      log.warn("UploadProgressBar will not work without an UploadWebRequest. See the javadoc for details.");
    }

    form.add(new AttributeModifier("onsubmit", true, new Model<String>()
    {

      private static final long serialVersionUID = 1L;

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.