Examples of HtmlImage


Examples of com.gargoylesoftware.htmlunit.html.HtmlImage

    /**
     * Returns the value of the "width" property.
     * @return the value of the "width" property
     */
    public int jsxGet_width() {
        final HtmlImage img = (HtmlImage) getDomNodeOrDie();
        final String width = img.getWidthAttribute();
        try {
            return Integer.parseInt(width);
        }
        catch (final NumberFormatException e) {
            return 24; // anything else
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlImage

    /**
     * Returns the value of the "height" property.
     * @return the value of the "height" property
     */
    public int jsxGet_height() {
        final HtmlImage img = (HtmlImage) getDomNodeOrDie();
        final String height = img.getHeightAttribute();
        try {
            return Integer.parseInt(height);
        }
        catch (final NumberFormatException e) {
            return 24; // anything else
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlImage

        public ImageOnLoadAction(final Page page) {
            super(page);
        }
        @Override
        public void execute() throws Exception {
            final HtmlImage img = (HtmlImage) getDomNodeOrNull();
            if (img != null) {
                img.doOnLoad();
            }
        }
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlImage

    @Test
    public void testCalendarScrolling() throws Exception {
        HtmlPage page = environment.getPage("/calendarTest.jsf");

        HtmlImage calendarPopupButton = (HtmlImage) page.getElementById("form:calendarPopupButton");
        assertNotNull(calendarPopupButton);
        page = (HtmlPage) calendarPopupButton.click();
        HtmlElement calendarHeaderElement = page.getElementById("form:calendarHeader");
        assertNotNull("form:calendarHeader element missed.", calendarHeaderElement);

        HtmlTableDataCell nextTD = null;
        List<?> tds = calendarHeaderElement.getByXPath("table/tbody/tr/td");
View Full Code Here

Examples of net.sf.jwan.servlet.gui.elements.HtmlImage

  public HtmlImage getHtmlImage() {return htmlImage;}
  public void setHtmlImage(HtmlImage htmlImage) {this.htmlImage = htmlImage;}
 
  public StringBuffer render()
  {
    if(htmlImage==null){htmlImage = new HtmlImage("resources/images/jvdr/blank.gif",HtmlImage.ImgClass.iFull);}   
    StringBuffer sbContent = new StringBuffer();
    switch(mTyp)
    {
      case IMAGE: sbContent.append(htmlImage.render());
            sbContent.append("<em>");
View Full Code Here

Examples of net.wastl.webmail.ui.html.HTMLImage

                    /*
                     * What we will send is an image or some other sort of
                     * binary
                     */
                    if (content instanceof HTMLImage) {
                        final HTMLImage img = (HTMLImage) content;
                        /*
                         * the HTMLImage class provides us with most of the
                         * necessary information that we want to send
                         */
                        res.setHeader("Content-Type", img.getContentType());
                        res.setHeader("Content-Transfer-Encoding",
                                img.getContentEncoding());
                        res.setHeader("Content-Length", "" + img.size());
                        res.setHeader("Connection", "Keep-Alive");

                        /* Send 8k junks */
                        int offset = 0;
                        while (offset + chunk_size < img.size()) {
                            out.write(img.toBinary(), offset, chunk_size);
                            offset += chunk_size;
                        }
                        out.write(img.toBinary(), offset, img.size() - offset);
                        out.flush();

                        out.close();
                    } else {
                        final byte[] encoded_content =
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlImage

        for (int i = 0; i < level; i++) {
            final HtmlLink link = new HtmlLink();
            link.setModuleRelative(false);
            link.setUrl(DegreeCurricularPlanLayout.SPACER_IMAGE_PATH);

            final HtmlImage spacerImage = new HtmlImage();
            spacerImage.setSource(link.calculateUrl());

            final HtmlTableCell tabCell = row.createCell();
            tabCell.setClasses(getTabCellClass());
            tabCell.setBody(spacerImage);
        }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlImage

    @Override
    public HtmlComponent render(Object object, Class type) {
        File file = (File) object;

        HtmlImage image = new HtmlImage();

        image.setSource(file.getDownloadUrl());
        image.setTitle(file.getDisplayName());

        image.setClasses(classes);

        return image;
    }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlImage

        for (int i = 0; i < level; i++) {
            HtmlLink link = new HtmlLink();
            link.setModuleRelative(false);
            link.setUrl(StudentCurricularPlanLayout.SPACER_IMAGE_PATH);

            final HtmlImage spacerImage = new HtmlImage();
            spacerImage.setSource(link.calculateUrl());

            final HtmlTableCell tabCell = row.createCell();
            tabCell.setClasses(getTabCellClass());
            tabCell.setBody(spacerImage);
        }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlImage

        } else if (contact instanceof MobilePhone) {
            span.addChild(new HtmlText(((MobilePhone) contact).getNumber()));
        } else if (contact instanceof EmailAddress) {
            EmailAddress email = (EmailAddress) contact;
            if (isPublicSpace()) {
                HtmlImage img = new HtmlImage();
                img.setSource(RenderUtils.getContextRelativePath("") + "/publico/viewHomepage.do?method=emailPng&amp;email="
                        + email.getExternalId());
                span.addChild(img);
            } else {
                HtmlLink link = new HtmlLink();
                link.setModuleRelative(false);
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.