Package org.jboss.errai.workspaces.client.api

Examples of org.jboss.errai.workspaces.client.api.ResourceFactory


    if (!isOpen) // & selectedTool.multipleAllowed()==false
    {
      final ToolTabPanel panelTool = new ToolTabPanel(toolSetId, selectedTool);
      panelTool.invalidate();

      ResourceFactory resourceFactory = GWT.create(ResourceFactory.class);
      ErraiImageBundle erraiImageBundle = GWT.create(ErraiImageBundle.class);
      ImageResource resource = resourceFactory.createImage(selectedTool.getName()) != null ?
          resourceFactory.createImage(selectedTool.getName()) : erraiImageBundle.application();

      deck.tabLayout.add(
          panelTool,
          AbstractImagePrototype.create(resource).getHTML() + " " + selectedTool.getName(),
          true
View Full Code Here


  }

  public void addLink(final String name, final Tool tool)
  {
    ResourceFactory resourceFactory = GWT.create(ResourceFactory.class);
    ErraiImageBundle erraiImageBundle = GWT.create(ErraiImageBundle.class);
    ImageResource resource = resourceFactory.createImage(tool.getName()) != null ?
        resourceFactory.createImage(tool.getName()) : erraiImageBundle.application();

    WSLaunchButton button = new WSLaunchButton(resource, name);
    button.addClickListener(
        new ClickHandler()
        {         
View Full Code Here

    return toolId;
  }

  private Image createIcon(String toolName, String icon)
  {
    ResourceFactory resourceFactory = GWT.create(ResourceFactory.class);

    Image img;
    ImageResource imgres = resourceFactory.createImage(toolName);

    if(imgres!=null)
      img = new Image(imgres);
    else
      img = new Image(erraiImageBundle.application());
View Full Code Here

  }

  public void addLink(final String name, final Tool tool)
  {
    ResourceFactory resourceFactory = GWT.create(ResourceFactory.class);
    ErraiImageBundle erraiImageBundle = GWT.create(ErraiImageBundle.class);
    ImageResource resource = resourceFactory.createImage(tool.getName()) != null ?
        resourceFactory.createImage(tool.getName()) : erraiImageBundle.application();

    WSLaunchButton button = new WSLaunchButton(resource, name);
    button.addClickListener(
        new ClickHandler()
        {         
View Full Code Here

        final String toolId = name.replaceAll(" ", "_") + "." + toolCounter++;
        return toolId;
    }

    private Image createIcon(String toolName, String icon) {
        ResourceFactory resourceFactory = GWT.create(ResourceFactory.class);

        Image img;
        ImageResource imgres = resourceFactory.createImage(toolName);

        if (imgres != null)
            img = new Image(imgres);
        else
            img = new Image(erraiImageBundle.application());
View Full Code Here

        if (!isOpen) // & selectedTool.multipleAllowed()==false
        {
            final ToolTabPanel panelTool = new ToolTabPanel(toolSetId, selectedTool);
            panelTool.invalidate();

            ResourceFactory resourceFactory = GWT.create(ResourceFactory.class);
            ErraiImageBundle erraiImageBundle = GWT.create(ErraiImageBundle.class);
            ImageResource resource = resourceFactory.createImage(selectedTool.getName()) != null ?
                    resourceFactory.createImage(selectedTool.getName()) : erraiImageBundle.application();

            deck.tabLayout.add(
                    panelTool,
                    AbstractImagePrototype.create(resource).getHTML() + " " + selectedTool.getName(),
                    true
View Full Code Here

TOP

Related Classes of org.jboss.errai.workspaces.client.api.ResourceFactory

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.