⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 licensekeywizard.java

📁 java实 现的 GOOGLE 搜索很好用?
💻 JAVA
字号:
/*
 * Created on 2004-9-10
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.xqtu.google.wizards;

/**
 * @author limeiyong
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
import org.eclipse.jface.wizard.Wizard;
public class LicenseKeyWizard extends Wizard {

   private static String licenseKey;
   private LicenseKeyWizardPage page;

   public LicenseKeyWizard() {
       super();
       this.setWindowTitle("License Key");
   }
   
   public boolean performFinish() {

       if(page.getLicenseKeyText().getText().equalsIgnoreCase(""))
       {
           page.setErrorMessage("You must provide a license key.");
           page.setPageComplete(false);
           return false;
       }
       else
       {
           licenseKey = page.getLicenseKeyText().getText();
           return true;
       }
   }

   public void addPages() {

       page = new LicenseKeyWizardPage("licenseKey");
       addPage(page);
       
   }

   public static String getLicenseKey() {
       return licenseKey;
   }

   public static void setLicenseKey(String licenseKey) {
       LicenseKeyWizard.licenseKey = licenseKey;
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -