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

📄 licensekeywizardpage.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.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
 
public class LicenseKeyWizardPage extends WizardPage {
 
    private Text licenseKeyText;
 
    protected LicenseKeyWizardPage(String pageName) {
        
        super(pageName);
        setTitle("License Key");
        setDescription("Define your Google API License Key");
 
    }
 
    public void createControl(Composite parent) {
        
        GridLayout pageLayout = new GridLayout();
        pageLayout.numColumns = 2;
        parent.setLayout(pageLayout);
        parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
 
        Label label = new Label(parent, SWT.NONE);
        label.setText("License Key:");
 
        licenseKeyText = new Text(parent, SWT.BORDER);
        licenseKeyText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        
        setControl(parent);
 
    }
 
    public Text getLicenseKeyText() {
        return licenseKeyText;
    }
 
    public void setLicenseKeyText(Text licenseKeyText) {
        this.licenseKeyText = licenseKeyText;
    }
}

⌨️ 快捷键说明

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