Examples of UIDescriptor


Examples of com.eclipsesource.tabris.internal.ui.UIDescriptor

  private RGB background;
  private RGB foreground;
  private byte[] image;

  public UIConfiguration() {
    this.uiDescriptor = new UIDescriptor();
    this.pageConfigurations = new ArrayList<PageConfiguration>();
    this.actionConfigurations = new ArrayList<ActionConfiguration>();
  }
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

    new SpaceBrowser(item.service instanceof JavaSpace05 ?
         item.service : listItem.getAdmin(),
         Browser.this).setVisible(true);
      }
      else if(command.equals("showUI")){
    UIDescriptor uiDescriptor = getSelectedUIDescriptor();

    if (uiDescriptor == null) {
        return;
    }

    try {
        JFrameFactory uiFactory = (JFrameFactory)
      uiDescriptor.getUIFactory(
          Thread.currentThread().getContextClassLoader());
        JFrame frame = uiFactory.getJFrame(item);

        frame.validate();
        frame.setVisible(true);
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

      Entry[] attrs = item.attributeSets;
      if ((attrs != null) && (attrs.length != 0)) {
    for (int i = 0; i < attrs.length; i++) {
        if (attrs[i] instanceof UIDescriptor) {
      UIDescriptor desc = (UIDescriptor) attrs[i];
      if (!"javax.swing".equals(desc.toolkit)) {
        continue;
      }
      return desc;
        }
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

      setLightWeightPopupEnabled(true);
  }

  public void actionPerformed(ActionEvent anEvent) {

      UIDescriptor uiDescriptor = getSelectedUIDescriptor();

      if (uiDescriptor == null) {
    return;
      }

      try {
    JFrameFactory uiFactory = (JFrameFactory)
        uiDescriptor.getUIFactory(Thread.currentThread().getContextClassLoader());
    JFrame frame = uiFactory.getJFrame(serviceItem);

    frame.validate();
    frame.setVisible(true);
      }
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

      if (!ev.isPopupTrigger()) {
    return;
      }

      UIDescriptor selectedDescriptor = getSelectedUIDescriptor();

      if (selectedDescriptor == null) {
    return;
      }
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

      if (!ev.isPopupTrigger()) {
    return;
      }

      UIDescriptor selectedDescriptor = getSelectedUIDescriptor();

      if (selectedDescriptor == null) {
    return;
      }
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

      setLightWeightPopupEnabled(true);
  }

  public void actionPerformed(ActionEvent anEvent) {

      UIDescriptor uiDescriptor = getSelectedUIDescriptor();

      if (uiDescriptor == null) {
    return;
      }

      try {
    JFrameFactory uiFactory = (JFrameFactory)
        uiDescriptor.getUIFactory(Thread.currentThread().getContextClassLoader());
    JFrame frame = uiFactory.getJFrame(serviceItem);

    frame.validate();
    frame.setVisible(true);
      }
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

      if (!ev.isPopupTrigger()) {
    return;
      }

      UIDescriptor selectedDescriptor = getSelectedUIDescriptor();

      if (selectedDescriptor == null) {
    return;
      }
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

      if (!ev.isPopupTrigger()) {
    return;
      }

      UIDescriptor selectedDescriptor = getSelectedUIDescriptor();

      if (selectedDescriptor == null) {
    return;
      }
View Full Code Here

Examples of net.jini.lookup.entry.UIDescriptor

            int attrCount = serviceItem.attributeSets.length;
            Entry[] attr = serviceItem.attributeSets;
            List<UIDescriptor> list = new ArrayList<UIDescriptor>();
            for(int i = 0; i < attrCount; ++i) {
                if(attr[i] instanceof UIDescriptor) {                   
                    UIDescriptor desc = (UIDescriptor)attr[i];
                    if(desc.attributes == null) {
                        continue;
                    }
                    if(!desc.role.equals(role)) {
                        continue;
                    }
                    for (Object attribute : desc.attributes) {
                        if (attribute instanceof UIFactoryTypes) {
                            UIFactoryTypes factoryTypes =
                                (UIFactoryTypes) attribute;
                            boolean found;
                            found = factoryTypes.isAssignableTo(
                                JComponentFactory.class);
                            if (found) {
                                // Should also look through required packages
                                // here
                                list.add(desc);
                            }
                        }
                    }
                }
            }
            List factoryList = new ArrayList();
            for (UIDescriptor desc : list) {
                Object uiFactory;
                try {
                    uiFactory =
                        desc.getUIFactory(serviceItem.service
                            .getClass().getClassLoader());
                    if (uiFactory instanceof JComponentFactory)
                        factoryList.add(uiFactory);
                } catch (ClassNotFoundException e) {
                    System.out.println(
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.