Package org.apache.wicket.markup.html.image

Examples of org.apache.wicket.markup.html.image.Image


                    attrhead.add(new Label("propagation", propTO.getStatus() != null
                            ? propTO.getStatus().toString()
                            : "UNDEFINED"));

                    final Image image;
                    final String alt, title;

                    switch (propTO.getStatus()) {
                        case SUCCESS:
                        case SUBMITTED:
                        case CREATED:
                            image = new Image("icon", "statuses/active.png");
                            alt = "success icon";
                            title = "success";
                            break;
                        default:
                            image = new Image("icon", "statuses/inactive.png");
                            alt = "failure icon";
                            title = "failure";
                    }

                    image.add(new Behavior() {

                        private static final long serialVersionUID = 1469628524240283489L;

                        @Override
                        public void onComponentTag(final Component component, final ComponentTag tag) {
View Full Code Here


     * @param id component id to be replaced with the fragment content.
     * @param objectTO connector object TO.
     * @return fragment.
     */
    private Fragment getStatusIcon(final String id, final ConnObjectTO objectTO) {
        final Image image;
        final String alt, title;

        switch (statusUtils.getRemoteStatus(objectTO).getStatus()) {
            case ACTIVE:
                image = new Image("status", "statuses/active.png");
                alt = "active icon";
                title = "Enabled";
                break;
            case SUSPENDED:
                image = new Image("status", "statuses/inactive.png");
                alt = "inactive icon";
                title = "Disabled";
                break;
            default:
                image = null;
                alt = null;
                title = null;
        }

        final Fragment frag;

        if (image != null) {
            image.add(new Behavior() {

                private static final long serialVersionUID = 1469628524240283489L;

                @Override
                public void onComponentTag(final Component component, final ComponentTag tag) {
View Full Code Here

      protected void onComponentTag(ComponentTag tag)
      {
        super.onComponentTag(tag);
        tag.getAttributes().put("onclick", Palette.this.getDownOnClickJS());
      }
    }.add(new Image("image", DOWN_IMAGE));
  }
View Full Code Here

      protected void onComponentTag(ComponentTag tag)
      {
        super.onComponentTag(tag);
        tag.getAttributes().put("onclick", Palette.this.getUpOnClickJS());
      }
    }.add(new Image("image", UP_IMAGE));
  }
View Full Code Here

      protected void onComponentTag(ComponentTag tag)
      {
        super.onComponentTag(tag);
        tag.getAttributes().put("onclick", Palette.this.getRemoveOnClickJS());
      }
    }.add(new Image("image", REMOVE_IMAGE));
  }
View Full Code Here

      protected void onComponentTag(ComponentTag tag)
      {
        super.onComponentTag(tag);
        tag.getAttributes().put("onclick", Palette.this.getAddOnClickJS());
      }
    }.add(new Image("image", ADD_IMAGE));
  }
View Full Code Here

    final FeedbackPanel feedback = new FeedbackPanel("feedback",
        new ContainerFeedbackMessageFilter(AbstractCaptchaForm.this));
    form.add(feedback);

    captchaImageResource = createCaptchImageResource();
    final Image captchaImage = new Image("image", captchaImageResource);
    captchaImage.setOutputMarkupId(true);
    form.add(captchaImage);

    AjaxLink<Void> changeCaptchaLink = new AjaxLink<Void>("changeLink")
    {
      @Override
View Full Code Here

  /**
   * Construct.
   */
  public LiveSessionsPage()
  {
    add(new Image("bug"));

    add(new ApplicationView("application", Application.get()));

    Link link = new Link("togglelink")
    {
View Full Code Here

      protected void onComponentTag(ComponentTag tag)
      {
        super.onComponentTag(tag);
        tag.getAttributes().put("onclick", Palette.this.getDownOnClickJS());
      }
    }.add(new Image("image", DOWN_IMAGE));
  }
View Full Code Here

      protected void onComponentTag(ComponentTag tag)
      {
        super.onComponentTag(tag);
        tag.getAttributes().put("onclick", Palette.this.getUpOnClickJS());
      }
    }.add(new Image("image", UP_IMAGE));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.image.Image

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.