Examples of ClassResource


Examples of com.vaadin.server.ClassResource

        buttonLayout2.setSpacing(true);
        buttonPanel2.setContent(buttonLayout2);
        mainLayout.addComponent(buttonPanel2);

        refreshButton = new Button("Refresh");
        refreshButton.setIcon(new ClassResource(QueryItemStatusColumnGenerator.class, "images/table_refresh.png"));
        refreshButton.addClickListener(this);
        buttonLayout.addComponent(refreshButton);

        editButton = new Button("Edit");
        editButton.setIcon(new ClassResource(QueryItemStatusColumnGenerator.class, "images/table_edit.png"));
        editButton.addClickListener(this);
        buttonLayout.addComponent(editButton);

        addPropertyButton = new Button("Add Column");
        addPropertyButton.setIcon(new ClassResource(QueryItemStatusColumnGenerator.class, "images/tab_add.png"));
        addPropertyButton.addClickListener(this);
        buttonLayout.addComponent(addPropertyButton);

        removeAllItemsButton = new Button("Remove All Rows");
        removeAllItemsButton.setIcon(new ClassResource(QueryItemStatusColumnGenerator.class, "images/delete.png"));
        removeAllItemsButton.addClickListener(this);
        buttonLayout.addComponent(removeAllItemsButton);

        saveButton = new Button("Save");
        saveButton.setIcon(new ClassResource(QueryItemStatusColumnGenerator.class, "images/table_save.png"));
        saveButton.addClickListener(this);
        saveButton.setEnabled(false);
        buttonLayout2.addComponent(saveButton);

        cancelButton = new Button("Cancel");
        cancelButton.setIcon(new ClassResource(QueryItemStatusColumnGenerator.class, "images/cancel.png"));
        cancelButton.addClickListener(this);
        cancelButton.setEnabled(false);
        buttonLayout2.addComponent(cancelButton);

        addItemButton = new Button("Add Row");
        addItemButton.setIcon(new ClassResource(QueryItemStatusColumnGenerator.class, "images/table_row_insert.png"));
        addItemButton.addClickListener(this);
        addItemButton.setEnabled(false);
        buttonLayout2.addComponent(addItemButton);

        removeItemButton = new Button("Remove Row");
        removeItemButton.setIcon(new ClassResource(QueryItemStatusColumnGenerator.class, "images/table_row_delete.png"));
        removeItemButton.addClickListener(this);
        removeItemButton.setEnabled(false);
        buttonLayout2.addComponent(removeItemButton);

        table = new Table();
View Full Code Here

Examples of com.vaadin.terminal.ClassResource

      */
        StreamResource resource = new StreamResource(this, "/home/matrix/Desktop/pv.pdf", __app);
       
        // Set the right MIME type
        resource.setMIMEType(resource.getMIMEType());
        e.setSource(new ClassResource(resource.getFilename(), __app));
        window.addComponent(e);
        __app.getMainWindow().addWindow(window);
    }
View Full Code Here

Examples of com.vaadin.terminal.ClassResource

         */
        StreamResource resource = new StreamResource(this, "/home/matrix/Desktop/pv.pdf", __app);
       
        // Set the right MIME type
        resource.setMIMEType(resource.getMIMEType());
        e.setSource(new ClassResource(resource.getFilename(), __app));
        __app.getMainWindow().addComponent(e);
    }
View Full Code Here

Examples of com.vaadin.terminal.ClassResource

    return new FieldWithHelp(field, icon);
  }

  public Resource helpIcon(Integer i) {
    if(!helpIcons.containsKey(i)){
      helpIcons.put(i, new ClassResource(HelpUtility.class, "/img/help" + (i == null ? "" : i) + ".png", application));
    }
    return helpIcons.get(i);
  }
View Full Code Here

Examples of com.vaadin.terminal.ClassResource

  @Override
  public Component render() {
    vl = new VerticalLayout();
        Button refreshDocumentList = new Button(getMessage("pt.ext.cmis.list.refresh"));
        refreshDocumentList.setIcon(new ClassResource(CmisDocumentListWidget.class, "/img/load-repository.png", getApplication()));
        refreshDocumentList.setImmediate(true);
        refreshDocumentList.setStyleName(BaseTheme.BUTTON_LINK);
        refreshDocumentList.addListener(new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
View Full Code Here

Examples of com.vaadin.terminal.ClassResource

        }
        return b;
    }

    public static ClassResource imageResource(Application application, String fileName) {
        return new ClassResource(VaadinUtility.class, "/img/" + fileName, application);
    }
View Full Code Here

Examples of com.vaadin.terminal.ClassResource

    public static ClassResource imageResource(Application application, String fileName) {
        return new ClassResource(VaadinUtility.class, "/img/" + fileName, application);
    }

    public static Embedded embedded(Application application, String fileName) {
        return new Embedded(null, new ClassResource(VaadinUtility.class, fileName, application));
    }
View Full Code Here

Examples of com.vaadin.terminal.ClassResource

    return resourceCache.get(path);
  }

  public Resource getImage(String path) {
    if (!resourceCache.containsKey(path)) {
      resourceCache.put(path, new ClassResource(getClass(), path, application));
    }
    return resourceCache.get(path);
  }
View Full Code Here

Examples of org.carrot2.util.resource.ClassResource

    @Override
    protected IResource getXsltResource()
    {
        if (solrXsltAdapter == null) {
            return new ClassResource(SolrDocumentSource.class, "solr-to-c2.xsl");
        } else {
            return solrXsltAdapter;
        }
    }
View Full Code Here

Examples of org.carrot2.util.resource.ClassResource

    private static final int ALL_SOURCES_COUNT = 10;

    @Override
    protected IResource getXsltResource()
    {
        return new ClassResource(EToolsDocumentSource.class, "etools-to-c2.xsl");
    }
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.