Java 类javax.print.ServiceUIFactory 实例源码

项目:JuggleMasterPro    文件:PrintServiceSubJPanel.java   
final public void actionPerformed(ActionEvent objPactionEvent) {
    final Object objLsourceObject = objPactionEvent.getSource();

    if (objLsourceObject == this.objGpropertiesJButton) {
        if (this.objGserviceUIFactory != null) {
            final JDialog objLjDialog = (JDialog) this.objGserviceUIFactory.getUI(ServiceUIFactory.MAIN_UIROLE, ServiceUIFactory.JDIALOG_UI);

            if (objLjDialog != null) {
                objLjDialog.setVisible(true);
                objLjDialog.dispose();
            } else {
                this.objGpropertiesJButton.setEnabled(false);
            }
        }
    }
}
项目:cn1    文件:ServiceUIDialog.java   
void fillVendorSuppliedTab() {
    ServiceUIFactory factory = myService.getServiceUIFactory();

    if (tabbedPane.getTabCount() > 3) {
        tabbedPane.remove(3);
    }

    if (factory != null) {
        JComponent swingUI = (JComponent) factory.getUI(
                ServiceUIFactory.MAIN_UIROLE, ServiceUIFactory.JCOMPONENT_UI);
        if (swingUI != null) {
            tabbedPane.addTab("Vendor Supplied", swingUI);
            tabbedPane.setMnemonicAt(3, 'V');
        } else {
            Panel panelUI = (Panel) factory.getUI(ServiceUIFactory.MAIN_UIROLE,
                                                  ServiceUIFactory.PANEL_UI);
            if (panelUI != null) {
                tabbedPane.addTab("Vendor Supplied", panelUI);
                tabbedPane.setMnemonicAt(3, 'V');
            }
        }
    }
}
项目:freeVM    文件:ServiceUIDialog.java   
void fillVendorSuppliedTab() {
    ServiceUIFactory factory = myService.getServiceUIFactory();

    if (tabbedPane.getTabCount() > 3) {
        tabbedPane.remove(3);
    }

    if (factory != null) {
        JComponent swingUI = (JComponent) factory.getUI(
                ServiceUIFactory.MAIN_UIROLE, ServiceUIFactory.JCOMPONENT_UI);
        if (swingUI != null) {
            tabbedPane.addTab("Vendor Supplied", swingUI);
            tabbedPane.setMnemonicAt(3, 'V');
        } else {
            Panel panelUI = (Panel) factory.getUI(ServiceUIFactory.MAIN_UIROLE,
                                                  ServiceUIFactory.PANEL_UI);
            if (panelUI != null) {
                tabbedPane.addTab("Vendor Supplied", panelUI);
                tabbedPane.setMnemonicAt(3, 'V');
            }
        }
    }
}
项目:freeVM    文件:ServiceUIDialog.java   
void fillVendorSuppliedTab() {
    ServiceUIFactory factory = myService.getServiceUIFactory();

    if (tabbedPane.getTabCount() > 3) {
        tabbedPane.remove(3);
    }

    if (factory != null) {
        JComponent swingUI = (JComponent) factory.getUI(
                ServiceUIFactory.MAIN_UIROLE, ServiceUIFactory.JCOMPONENT_UI);
        if (swingUI != null) {
            tabbedPane.addTab("Vendor Supplied", swingUI);
            tabbedPane.setMnemonicAt(3, 'V');
        } else {
            Panel panelUI = (Panel) factory.getUI(ServiceUIFactory.MAIN_UIROLE,
                                                  ServiceUIFactory.PANEL_UI);
            if (panelUI != null) {
                tabbedPane.addTab("Vendor Supplied", panelUI);
                tabbedPane.setMnemonicAt(3, 'V');
            }
        }
    }
}
项目:OpenJSharp    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:OpenJSharp    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:jdk8u-jdk    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:jdk8u-jdk    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:openjdk-jdk10    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:openjdk-jdk10    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:openjdk9    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:openjdk9    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:jdk8u_jdk    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:jdk8u_jdk    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:lookaside_java-1.8.0-openjdk    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:lookaside_java-1.8.0-openjdk    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:javify    文件:IppPrintService.java   
/**
 * We currently provide no factories - just returns null.
 * @see javax.print.PrintService#getServiceUIFactory()
 */
public ServiceUIFactory getServiceUIFactory()
{
  // SUN does not provide any service factory for
  // print services (tested on linux/windows)

  // for the moment we do the same - just return null
  // later on we could provide at least the about UI dialog
  return null;
}
项目:jvm-stm    文件:IppPrintService.java   
/**
 * We currently provide no factories - just returns null.
 * @see javax.print.PrintService#getServiceUIFactory()
 */
public ServiceUIFactory getServiceUIFactory()
{
  // SUN does not provide any service factory for
  // print services (tested on linux/windows)

  // for the moment we do the same - just return null
  // later on we could provide at least the about UI dialog
  return null;
}
项目:infobip-open-jdk-8    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:infobip-open-jdk-8    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:jdk8u-dev-jdk    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:jdk8u-dev-jdk    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:OLD-OpenJDK8    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:OLD-OpenJDK8    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:JamVM-PH    文件:IppPrintService.java   
/**
 * We currently provide no factories - just returns null.
 * @see javax.print.PrintService#getServiceUIFactory()
 */
public ServiceUIFactory getServiceUIFactory()
{
  // SUN does not provide any service factory for
  // print services (tested on linux/windows)

  // for the moment we do the same - just return null
  // later on we could provide at least the about UI dialog
  return null;
}
项目:openjdk-jdk7u-jdk    文件:Win32PrintService.java   
public Object getUI(int role, String ui) {
    if (role <= ServiceUIFactory.MAIN_UIROLE) {
        return null;
    }
    if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE &&
        DocumentPropertiesUI.DOCPROPERTIESCLASSNAME.equals(ui))
    {
        return service.getDocumentPropertiesUI();
    }
    throw new IllegalArgumentException("Unsupported role");
}
项目:openjdk-jdk7u-jdk    文件:Win32PrintService.java   
public String[] getUIClassNamesForRole(int role) {

            if (role <= ServiceUIFactory.MAIN_UIROLE) {
                return null;
            }
            if (role == DocumentPropertiesUI.DOCUMENTPROPERTIES_ROLE) {
                String[] names = new String[0];
                names[0] = DocumentPropertiesUI.DOCPROPERTIESCLASSNAME;
                return names;
            }
            throw new IllegalArgumentException("Unsupported role");
        }
项目:classpath    文件:IppPrintService.java   
/**
 * We currently provide no factories - just returns null.
 * @see javax.print.PrintService#getServiceUIFactory()
 */
public ServiceUIFactory getServiceUIFactory()
{
  // SUN does not provide any service factory for
  // print services (tested on linux/windows)

  // for the moment we do the same - just return null
  // later on we could provide at least the about UI dialog
  return null;
}
项目:OpenJSharp    文件:PSStreamPrintService.java   
public ServiceUIFactory getServiceUIFactory() {
    return null;
}
项目:OpenJSharp    文件:Win32PrintService.java   
public synchronized ServiceUIFactory getServiceUIFactory() {
    if (uiFactory == null) {
        uiFactory = new Win32ServiceUIFactory(this);
    }
    return uiFactory;
}
项目:OpenJSharp    文件:UnixPrintService.java   
public ServiceUIFactory getServiceUIFactory() {
    return null;
}
项目:OpenJSharp    文件:IPPPrintService.java   
public ServiceUIFactory getServiceUIFactory() {
    return null;
}
项目:OpenJSharp    文件:Win32PrintService.java   
@Override
public ServiceUIFactory getServiceUIFactory(){
    return null;
}
项目:jdk8u-jdk    文件:PSStreamPrintService.java   
public ServiceUIFactory getServiceUIFactory() {
    return null;
}
项目:jdk8u-jdk    文件:Win32PrintService.java   
public synchronized ServiceUIFactory getServiceUIFactory() {
    if (uiFactory == null) {
        uiFactory = new Win32ServiceUIFactory(this);
    }
    return uiFactory;
}
项目:jdk8u-jdk    文件:UnixPrintService.java   
public ServiceUIFactory getServiceUIFactory() {
    return null;
}
项目:jdk8u-jdk    文件:IPPPrintService.java   
public ServiceUIFactory getServiceUIFactory() {
    return null;
}
项目:jdk8u-jdk    文件:PrintServiceStub.java   
@Override
public ServiceUIFactory getServiceUIFactory() {
    return null;
}
项目:openjdk-jdk10    文件:PSStreamPrintService.java   
public ServiceUIFactory getServiceUIFactory() {
    return null;
}
项目:openjdk-jdk10    文件:UnixPrintService.java   
public ServiceUIFactory getServiceUIFactory() {
    return null;
}