< prev index next >

modules/jdk.packager/src/main/java/com/sun/javafx/tools/packager/DeployParams.java

Print this page




 518         // Failed
 519         if ((module != null && !module.isEmpty()) ||
 520             (addModules != null && !addModules.isEmpty()) ||
 521             (limitModules != null && !limitModules.isEmpty()) |
 522             (modulePath != null && !modulePath.isEmpty()) ||
 523             getBundleType() == BundleType.INSTALLER ||
 524             getBundleType() == BundleType.NATIVE ||
 525             getBundleType() == BundleType.IMAGE) {
 526 
 527             result = false;
 528         }
 529 
 530         return result;
 531     }
 532 
 533     public boolean validateForBundle() {
 534         boolean result = false;
 535 
 536         // Success
 537         if (((applicationClass != null && !applicationClass.isEmpty()) ||
 538             !module.isEmpty())) {
 539             result = true;
 540         }
 541 
 542         return result;
 543     }
 544 
 545     //could be icon or splash
 546     static class Icon {
 547         final static int UNDEFINED = -1;
 548 
 549         String href;
 550         String kind;
 551         int width = UNDEFINED;
 552         int height = UNDEFINED;
 553         int depth = UNDEFINED;
 554         RunMode mode = RunMode.WEBSTART;
 555 
 556         Icon(String href, String kind, int w, int h, int d, RunMode m) {
 557             mode = m;
 558             this.href = href;




 518         // Failed
 519         if ((module != null && !module.isEmpty()) ||
 520             (addModules != null && !addModules.isEmpty()) ||
 521             (limitModules != null && !limitModules.isEmpty()) |
 522             (modulePath != null && !modulePath.isEmpty()) ||
 523             getBundleType() == BundleType.INSTALLER ||
 524             getBundleType() == BundleType.NATIVE ||
 525             getBundleType() == BundleType.IMAGE) {
 526 
 527             result = false;
 528         }
 529 
 530         return result;
 531     }
 532 
 533     public boolean validateForBundle() {
 534         boolean result = false;
 535 
 536         // Success
 537         if (((applicationClass != null && !applicationClass.isEmpty()) ||
 538             (module != null && !module.isEmpty()))) {
 539             result = true;
 540         }
 541 
 542         return result;
 543     }
 544 
 545     //could be icon or splash
 546     static class Icon {
 547         final static int UNDEFINED = -1;
 548 
 549         String href;
 550         String kind;
 551         int width = UNDEFINED;
 552         int height = UNDEFINED;
 553         int depth = UNDEFINED;
 554         RunMode mode = RunMode.WEBSTART;
 555 
 556         Icon(String href, String kind, int w, int h, int d, RunMode m) {
 557             mode = m;
 558             this.href = href;


< prev index next >