Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite


  super(wizard, previous);
  }

  public void show() {
  wizard.setTitle(MessageText.getString("exportTorrentWizard.finish.title"));
  Composite rootPanel = wizard.getPanel();
  GridLayout layout = new GridLayout();
  layout.numColumns = 1;
  rootPanel.setLayout(layout);

  Composite panel = new Composite(rootPanel, SWT.NULL);
  GridData gridData = new GridData(GridData.VERTICAL_ALIGN_CENTER | GridData.FILL_HORIZONTAL);
  panel.setLayoutData(gridData);
  layout = new GridLayout();
  layout.numColumns = 3;
  panel.setLayout(layout);

  Label label = new Label(panel, SWT.WRAP);
  gridData = new GridData();
  gridData.horizontalSpan = 3;
  gridData.widthHint = 380;
View Full Code Here


  }
 
  protected void
  build()
  {
    Composite parent = (Composite)instance.getProperty( UpdateCheckInstance.PT_UI_PARENT_SWT_COMPOSITE );
   
    if ( parent != null ){
     
      if (parent.isDisposed()) {
        throw( new RuntimeException( "cancelled" ));
      }
     
      build( parent );
     
View Full Code Here

 
  public void
  show()
  {
    wizard.setTitle(MessageText.getString("exportTorrentWizard.exportfile.title"));
    Composite rootPanel = wizard.getPanel();
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    rootPanel.setLayout(layout);
 
    Composite panel = new Composite(rootPanel, SWT.NULL);
    GridData gridData = new GridData(GridData.VERTICAL_ALIGN_CENTER | GridData.FILL_HORIZONTAL);
    panel.setLayoutData(gridData);
    layout = new GridLayout();
    layout.numColumns = 3;
    panel.setLayout(layout);

    Label label = new Label(panel, SWT.WRAP);
    gridData = new GridData();
    gridData.horizontalSpan = 3;
    gridData.widthHint = 380;
View Full Code Here

  public Composite configSectionCreate(final Composite parent) {
    GridData gridData;
    GridLayout layout;

    Composite cSection = new Composite(parent, SWT.NULL);

    gridData = new GridData(GridData.VERTICAL_ALIGN_FILL
        | GridData.HORIZONTAL_ALIGN_FILL);
    cSection.setLayoutData(gridData);
    layout = new GridLayout();
    layout.numColumns = 2;
    cSection.setLayout(layout);

    int userMode = COConfigurationManager.getIntParameter("User Mode");
    if (userMode < REQUIRED_MODE) {
      Label label = new Label(cSection, SWT.WRAP);
      gridData = new GridData();
View Full Code Here

    // Any Look & Feel settings that don't really change the way the user
    // normally interacts
    Label label;
    GridLayout layout;
    GridData gridData;
    Composite cSection = new Composite(parent, SWT.NULL);
    cSection.setLayoutData(new GridData(GridData.FILL_BOTH));
    layout = new GridLayout();
    layout.numColumns = 2;
    cSection.setLayout(layout);

    label = new Label(cSection, SWT.NULL);
    Messages.setLanguageText(label, MSG_PREFIX + "defaultSortOrder");
    int[] sortOrderValues = {
      0,
View Full Code Here

  public Composite configSectionCreate(Composite parent) {
    GridData gridData;
    GridLayout layout;
    Label label;

    Composite cSection = new Composite(parent, SWT.NULL);

    gridData = new GridData(GridData.VERTICAL_ALIGN_FILL
        | GridData.HORIZONTAL_ALIGN_FILL);
    cSection.setLayoutData(gridData);
    layout = new GridLayout();
    layout.numColumns = 1;
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    cSection.setLayout(layout);

    int userMode = COConfigurationManager.getIntParameter("User Mode");
    if (userMode < REQUIRED_MODE) {
      label = new Label(cSection, SWT.WRAP);
      gridData = new GridData();
View Full Code Here

  public Composite configSectionCreate(final Composite parent) {
    GridData gridData;
    GridLayout layout;
    Label label;

    Composite cSection = new Composite(parent, SWT.NULL);
    gridData = new GridData(GridData.VERTICAL_ALIGN_FILL
        | GridData.HORIZONTAL_ALIGN_FILL);
    cSection.setLayoutData(gridData);
    layout = new GridLayout();
    layout.marginWidth = 0;
    layout.numColumns = 2;
    cSection.setLayout(layout);

    // password

    label = new Label(cSection, SWT.NULL);
    Messages.setLanguageText(label, LBLKEY_PREFIX + "password");
View Full Code Here

  public Composite configSectionCreate(final Composite parent) {
    GridData gridData;
    GridLayout layout;

    // main tab set up
    Composite gMainTab = new Composite(parent, SWT.NULL);

    gridData = new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL);
    gMainTab.setLayoutData(gridData);
    layout = new GridLayout();
    layout.numColumns = 3;
    gMainTab.setLayout(layout);
   
      // MAIN TAB DATA

    return gMainTab;
  }
View Full Code Here

  public Composite configSectionCreate(final Composite parent) {
    Label label;
    GridData gridData;
    GridLayout layout;
    Composite cMiniArea;

    int userMode = COConfigurationManager.getIntParameter("User Mode");

    Composite cSection = new Composite(parent, SWT.NULL);
    gridData = new GridData(GridData.VERTICAL_ALIGN_FILL
        | GridData.HORIZONTAL_ALIGN_FILL);
    cSection.setLayoutData(gridData);
    layout = new GridLayout();
    cSection.setLayout(layout);

    ///////////////////////

    cMiniArea = new Composite(cSection, SWT.NULL);
    layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    cMiniArea.setLayout(layout);
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    cMiniArea.setLayoutData(gridData);
   
    final boolean  separate_ports = userMode > 1 || COConfigurationManager.getIntParameter( "TCP.Listen.Port" ) != COConfigurationManager.getIntParameter( "UDP.Listen.Port" );

    label = new Label(cMiniArea, SWT.NULL);
    Messages.setLanguageText(label, separate_ports?"ConfigView.label.tcplistenport":"ConfigView.label.serverport");
    gridData = new GridData();
    label.setLayoutData(gridData);

    final IntParameter tcplisten = new IntParameter(cMiniArea,
        "TCP.Listen.Port", 1, 65535);
    gridData = new GridData();
    tcplisten.setLayoutData(gridData);

    tcplisten.addChangeListener(new ParameterChangeAdapter() {
      public void intParameterChanging(Parameter p, int toValue) {
        if (toValue == 6880) {
          toValue = 6881;
          tcplisten.setValue(toValue);
        }

        if (!separate_ports) {
          COConfigurationManager.setParameter("UDP.Listen.Port", toValue);
          COConfigurationManager.setParameter("UDP.NonData.Listen.Port",
              toValue);
        }
      }
    });
   
    if ( separate_ports ){
     
      label = new Label(cMiniArea, SWT.NULL);
      Messages.setLanguageText(label, "ConfigView.label.udplistenport");
      gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
      label.setLayoutData(gridData);

      final IntParameter udp_listen = new IntParameter(cMiniArea,
          "UDP.Listen.Port", 1, 65535);
      gridData = new GridData();
      udp_listen.setLayoutData(gridData);

      final boolean MULTI_UDP = COConfigurationManager.ENABLE_MULTIPLE_UDP_PORTS && userMode > 1;
     
      udp_listen.addChangeListener(new ParameterChangeAdapter() {
        public void intParameterChanging(Parameter p, int toValue) {
          if (toValue == 6880) {
            toValue = 6881;
            udp_listen.setValue(toValue);
          }

          if (!MULTI_UDP) {
            COConfigurationManager.setParameter("UDP.NonData.Listen.Port",
                toValue);
          }
        }
      });
   
      if ( MULTI_UDP ){
     
        Composite cNonDataUDPArea = new Composite(cSection, SWT.NULL);
        layout = new GridLayout();
        layout.numColumns = 2;
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        cNonDataUDPArea.setLayout(layout);
        gridData = new GridData(GridData.FILL_HORIZONTAL);
        cNonDataUDPArea.setLayoutData(gridData);
       
        final BooleanParameter commonUDP =
          new BooleanParameter(cNonDataUDPArea, "UDP.NonData.Listen.Port.Same",  CFG_PREFIX + "nondata.udp.same");
        gridData = new GridData();
        gridData.horizontalIndent = 16;
View Full Code Here

   * @see org.gudy.azureus2.ui.swt.maketorrent.IWizardPanel#show()
   */
  public void show() {
    wizard.setTitle(MessageText.getString("wizard.multitracker.title"));
    wizard.setCurrentInfo("");
    Composite rootPanel = wizard.getPanel();
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    rootPanel.setLayout(layout);

    Composite panel = new Composite(rootPanel, SWT.NULL);
    GridData gridData = new GridData(GridData.VERTICAL_ALIGN_CENTER | GridData.FILL_HORIZONTAL);
    panel.setLayoutData(gridData);
    layout = new GridLayout();
    layout.numColumns = 3;
    panel.setLayout(layout);

    //Line :
    // Multi-Tracker Configuration
   
    final Label labelTitle = new Label(panel,SWT.NULL);
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Composite

Copyright © 2018 www.massapicom. 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.