Java Code Examples for javax.print.attribute.standard.MediaTray#equals()
The following examples show how to use
javax.print.attribute.standard.MediaTray#equals() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Win32PrintService.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 2
Source File: Win32PrintService.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 3
Source File: Win32PrintService.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 4
Source File: Win32PrintService.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 5
Source File: Win32PrintService.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 6
Source File: Win32PrintService.java From hottub with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 7
Source File: Win32PrintService.java From hottub with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 8
Source File: Win32PrintService.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 9
Source File: Win32PrintService.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 10
Source File: Win32PrintService.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 11
Source File: Win32PrintService.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 12
Source File: Win32PrintService.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 13
Source File: Win32PrintService.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 14
Source File: Win32PrintService.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 15
Source File: Win32PrintService.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 16
Source File: Win32PrintService.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 17
Source File: Win32PrintService.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 18
Source File: Win32PrintService.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }
Example 19
Source File: Win32PrintService.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public int findTrayID(MediaTray tray) { getMediaTrays(); // make sure they are initialised. if (tray instanceof Win32MediaTray) { Win32MediaTray winTray = (Win32MediaTray)tray; return winTray.getDMBinID(); } for (int id=0; id<dmPaperBinToPrintService.length; id++) { if (tray.equals(dmPaperBinToPrintService[id])) { return id+1; // DMBIN_FIRST = 1; } } return 0; // didn't find the tray }
Example 20
Source File: Win32PrintService.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private boolean isSupportedMediaTray(MediaTray msn) { MediaTray[] trays = getMediaTrays(); if (trays != null) { for (int i=0; i<trays.length; i++) { if (msn.equals(trays[i])) { return true; } } } return false; }