Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Button.pack()


    TableItem item = new TableItem(table, SWT.NONE);
    String labelText = FoldingPlugin.getMessage(key);

    TableEditor foldEditor = new TableEditor(table);
    final Button foldCheckBox = new Button(table, SWT.CHECK);
    foldCheckBox.pack();
    foldEditor.minimumWidth = foldCheckBox.getSize().x;
    foldEditor.horizontalAlignment = SWT.CENTER;
    foldEditor.setEditor(foldCheckBox, item, 0);

    TableEditor collapseEditor = new TableEditor(table);
View Full Code Here


    foldEditor.horizontalAlignment = SWT.CENTER;
    foldEditor.setEditor(foldCheckBox, item, 0);

    TableEditor collapseEditor = new TableEditor(table);
    final Button initialCheckBox = new Button(table, SWT.CHECK);
    initialCheckBox.pack();
    collapseEditor.minimumWidth = initialCheckBox.getSize().x;
    collapseEditor.horizontalAlignment = SWT.CENTER;
    collapseEditor.setEditor(initialCheckBox, item, 1);

    item.setText(2, labelText);
View Full Code Here

  combo.select(0);
 
  Button button = new Button(shell, SWT.PUSH);
  button.setLocation(10, 50);
  button.setText("new a selected window!");
  button.pack();

  combo.addSelectionListener(new SelectionAdapter()
  {
      public void widgetSelected(SelectionEvent e)
      {
View Full Code Here

       
    //Check button to change status
    final Button autoBackup_Check = new Button(autoBackupComp,SWT.CHECK);
    autoBackup_Check.setSelection(View.getPluginInterface().getPluginconfig().getPluginBooleanParameter("AutoBackupConfig"));
    //autoBackup_Check.setText((View.getPluginInterface().getPluginconfig().getPluginBooleanParameter("AutoBackupConfig"))?"On  ":"Off");
    autoBackup_Check.pack();
    autoBackup_Check.setToolTipText("On automatic restart, also automatically back up config files");
   
   
    autoBackup_Check.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {
View Full Code Here

       
        final Button autoDownload_Radio = new Button(autoDownloadComp,SWT.CHECK);
        autoDownload_Radio.setSelection(View.getPluginInterface().getPluginconfig().getPluginBooleanParameter("AutoDownload"));
        //autoDownload_Radio.setText((View.getPluginInterface().getPluginconfig().getPluginBooleanParameter("AutoDownload"))?"On  ":"Off");
        autoDownload_Radio.setToolTipText("Automatically download latest CVS version");
        autoDownload_Radio.pack();

        Label autoDownload_end = new Label (autoDownloadComp,SWT.NULL);
        autoDownload_end.setText("and...");
       
       
View Full Code Here

       
       
        final Button autoInsert_Check = new Button(autoRestartComp,SWT.CHECK);
        autoInsert_Check.setSelection(View.getPluginInterface().getPluginconfig().getPluginBooleanParameter("AutoInsert",false));
        //autoInsert_Check.setText((View.getPluginInterface().getPluginconfig().getPluginBooleanParameter("AutoInsert"))?"On  ":"Off");
        autoInsert_Check.pack();
        autoInsert_Check.setToolTipText("After a successful Auto Download, this option will insert the file to be updated the next time Azureus restarts");
       
       
        Label autoRestart = new Label (autoRestartComp,SWT.NULL );
        gridData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING );
View Full Code Here

            //autoInsert_Check.setText("On");
            View.getPluginInterface().getPluginconfig().setPluginParameter("AutoInsert",true);
           
        }
        //autoRestart_Check.setText((View.getPluginInterface().getPluginconfig().getPluginBooleanParameter("AutoRestart"))?"On  ":"Off");
        autoRestart_Check.pack();
        autoRestart_Check.setToolTipText("Instead of waiting until the next restart of Azureus, this option will restart Azureus immediately, inserting the Auto Downloaded CVS version");
       
        final Label autoSeed_label = new Label(autoRestartComp, SWT.NULL);
        autoSeed_label.setText("Force Continual Seeding of Latest Download:");
        gridData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
View Full Code Here

    TableItem item = new TableItem(table, SWT.NONE);
    String labelText = key;

    TableEditor foldEditor = new TableEditor(table);
    final Button foldCheckBox = new Button(table, SWT.CHECK);
    foldCheckBox.pack();
    foldEditor.minimumWidth = foldCheckBox.getSize().x;
    foldEditor.horizontalAlignment = SWT.CENTER;
    foldEditor.setEditor(foldCheckBox, item, 0);
    fCheckBoxes.put(foldCheckBox,key+".fold");
    foldCheckBox.addSelectionListener(fCheckBoxListener);
View Full Code Here

    fCheckBoxes.put(foldCheckBox,key+".fold");
    foldCheckBox.addSelectionListener(fCheckBoxListener);

    TableEditor collapseEditor = new TableEditor(table);
    final Button initialCheckBox = new Button(table, SWT.CHECK);
    initialCheckBox.pack();
    collapseEditor.minimumWidth = initialCheckBox.getSize().x;
    collapseEditor.horizontalAlignment = SWT.CENTER;
    collapseEditor.setEditor(initialCheckBox, item, 1);
    fCheckBoxes.put(initialCheckBox,key+".collapse");
    initialCheckBox.addSelectionListener(fCheckBoxListener);
View Full Code Here

  public Button newPushButton(Composite parent, String label, String tip, boolean enabled, int style) {
    Button button = toolkit.createButton(parent, label, SWT.PUSH | style);
    GridData gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
    button.setLayoutData(gd);
    button.pack(false);
    button.setToolTipText(tip);
    button.setEnabled(enabled);
    button.addListener(SWT.Selection, this);
    Point buttonSize = button.getSize();
    gd.heightHint = buttonSize.y - 2;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.