Examples of UIFactory


Examples of com.sun.jaf.ui.UIFactory

        "handleAbout");
  }

  private void createToolBar()
  {
    UIFactory factory = UIFactory.getInstance();

    JToolBar toolbar = factory.createToolBar("main-toolbar");

    toolbar.setFloatable(false);
    if (toolbar != null)
      add(toolbar, BorderLayout.NORTH);
  }
View Full Code Here

Examples of com.sun.jaf.ui.UIFactory

      add(toolbar, BorderLayout.NORTH);
  }

  private void createMenuBar()
  {
    UIFactory factory = UIFactory.getInstance();

    JMenuBar menubar = factory.createMenuBar("main-menu");
    if (menubar != null)
      setJMenuBar(menubar);
  }
View Full Code Here

Examples of org.ufacekit.ui.UIFactory

    public DefaultCamelContext getCamelContext() {
        return camelContext;
    }

    public void createBrowserUI(UIComposite root) {
        UIFactory ui = root.getFactory();
        UIComposite splitter = ui.newHorizontalSplitPanel(root, new GridLayoutData(GridLayoutData.ALIGN_CENTER, GridLayoutData.ALIGN_CENTER));

        UITable tree = createEndpointTableUI(splitter);

        BeanForm selectionForm = new BeanForm();

        UITable table = ui.newTable(splitter, new UITable.TableUIInfo(new GridLayoutData(GridLayoutData.ALIGN_FILL, GridLayoutData.ALIGN_FILL, true, true)));
        selectionForm.add(table, new UITable.TableBindingInfo(selectionForm.detailList("exchanges", Collection.class)));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                Exchange exchange = (Exchange) object;
                return exchange.getIn().getBody(String.class);
            }
        }));
        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                Exchange exchange = (Exchange) object;
                return exchange.getIn().getHeaders().toString();
            }
        }));
View Full Code Here

Examples of org.ufacekit.ui.UIFactory

    }

    protected UITable createEndpointTableUI(UIComposite root) {
        BeanForm form = new BeanForm();

        UIFactory ui = root.getFactory();
        AttributeDescriptor bindingData = form.detailList("endpoints", Collection.class);

        UITable table = ui.newTable(root, new UITable.TableUIInfo(null));
        form.add(table, new UITable.TableBindingInfo(bindingData));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                BrowsableEndpoint endpoint = (BrowsableEndpoint) object;
                return endpoint.getEndpointUri();
            }
        }));
View Full Code Here

Examples of org.ufacekit.ui.UIFactory

    public DefaultCamelContext getCamelContext() {
        return camelContext;
    }

    public void createBrowserUI(UIComposite root) {
        UIFactory ui = root.getFactory();
        UIComposite splitter = ui.newHorizontalSplitPanel(root, new GridLayoutData(GridLayoutData.ALIGN_CENTER, GridLayoutData.ALIGN_CENTER));

        UITable tree = createEndpointTableUI(splitter);

        BeanForm selectionForm = new BeanForm();

        UITable table = ui.newTable(splitter, new UITable.TableUIInfo(new GridLayoutData(GridLayoutData.ALIGN_FILL, GridLayoutData.ALIGN_FILL, true, true)));
        selectionForm.add(table, new UITable.TableBindingInfo(selectionForm.detailList("exchanges", Collection.class)));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                Exchange exchange = (Exchange) object;
                return exchange.getIn().getBody(String.class);
            }
        }));
        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                Exchange exchange = (Exchange) object;
                return exchange.getIn().getHeaders().toString();
            }
        }));
View Full Code Here

Examples of org.ufacekit.ui.UIFactory

    }

    protected UITable createEndpointTableUI(UIComposite root) {
        BeanForm form = new BeanForm();

        UIFactory ui = root.getFactory();
        AttributeDescriptor bindingData = form.detailList("endpoints", Collection.class);

        UITable table = ui.newTable(root, new UITable.TableUIInfo(null));
        form.add(table, new UITable.TableBindingInfo(bindingData));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                BrowsableEndpoint endpoint = (BrowsableEndpoint) object;
                return endpoint.getEndpointUri();
            }
        }));
View Full Code Here

Examples of org.zkoss.zk.ui.sys.UiFactory

          wapp, sess, desktop, request,
          PageDefinitions.getLocator(wapp, path));
        sess.setAttribute(Attributes.GAE_FIX, new Integer(0));
        ((SessionCtrl)sess).notifyClientRequest(true);

        final UiFactory uf = wappc.getUiFactory();
        if (uf.isRichlet(ri, bRichlet)) {
          final Richlet richlet = uf.getRichlet(ri, path);
          if (richlet == null)
            return false; //not found

          final Page page = WebManager.newPage(uf, ri, richlet, response, path);
          final Execution exec = new ExecutionImpl(
            _ctx, request, response, desktop, page);
          wappc.getUiEngine().execNewPage(exec, richlet, page, out);
            //no need to set device type here, since UiEngine will do it later
        } else {
          final PageDefinition pagedef = uf.getPageDefinition(ri, path);
          if (pagedef == null)
            return false; //not found

          final Page page = WebManager.newPage(uf, ri, pagedef, response, path);
          final Execution exec = new ExecutionImpl(
View Full Code Here

Examples of org.zkoss.zk.ui.sys.UiFactory

        return;

      final RequestInfo ri = new RequestInfoImpl(
        wapp, sess, desktop, request, null);
      ((SessionCtrl)sess).notifyClientRequest(true);
      final UiFactory uf = wappc.getUiFactory();
      final PageDefinition pagedef =
        uf.getPageDefinitionDirectly(ri, content, _ext);

      final Page page = WebManager.newPage(uf, ri, pagedef, response, path);
      final Execution exec =
        new ExecutionImpl(_ctx, request, response, desktop, page);
      final StringWriter out = new StringWriter(4096*2);
 
View Full Code Here

Examples of org.zkoss.zk.ui.sys.UiFactory

        wapp, sess, desktop, request,
        PageDefinitions.getLocator(wapp, path));
      sess.setAttribute(Attributes.GAE_FIX, new Integer(0));
      ((SessionCtrl)sess).notifyClientRequest(true);

      final UiFactory uf = wappc.getUiFactory();
      final Richlet richlet = new StandaloneRichlet(comp);

      final Page page = WebManager.newPage(uf, ri, richlet, response, path);
      exec = new ExecutionImpl(ctx, request, response, desktop, page);
      exec.setAttribute(Attributes.PAGE_REDRAW_CONTROL, "page");
View Full Code Here

Examples of org.zkoss.zk.ui.sys.UiFactory

        ((SessionCtrl)sess).notifyClientRequest(true);

        final Page page;
        final PageRenderPatch patch = getRenderPatch();
        final Writer out = patch.beforeRender(ri);
        final UiFactory uf = wappc.getUiFactory();
        if (uf.isRichlet(ri, bRichlet)) {
          final Richlet richlet = uf.getRichlet(ri, path);
          if (richlet == null)
            return false; //not found

          page = WebManager.newPage(uf, ri, richlet, httpres, path);
          final Execution exec =
            new ExecutionImpl(svlctx, httpreq, httpres, desktop, page);
          fixContentType(response);
          wappc.getUiEngine().execNewPage(exec, richlet, page,
            out != null ? out: response.getWriter());
        } else if (path != null) {
          final PageDefinition pagedef = uf.getPageDefinition(ri, path);
          if (pagedef == null)
            return false; //not found

          page = WebManager.newPage(uf, ri, pagedef, httpres, path);
          final Execution exec =
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.