Examples of Composite


Examples of org.eclipse.swt.widgets.Composite

  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

Examples of org.eclipse.swt.widgets.Composite

    // 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

Examples of org.eclipse.swt.widgets.Composite

  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

Examples of org.eclipse.swt.widgets.Composite

  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

Examples of org.eclipse.swt.widgets.Composite

  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

Examples of org.eclipse.swt.widgets.Composite

  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

Examples of org.eclipse.swt.widgets.Composite

   * @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

Examples of org.eclipse.swt.widgets.Composite

   * @see org.gudy.azureus2.ui.swt.maketorrent.IWizardPanel#show()
   */
  public void show() {
    wizard.setTitle(MessageText.getString("wizard.webseed.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 :
    // Web Seed Configuration
   
    final Label labelTitle = new Label(panel,SWT.NULL);
View Full Code Here

Examples of org.eclipse.swt.widgets.Composite

    public void
    show()
    {
    wizard.setTitle(MessageText.getString("exportTorrentWizard.torrentfile.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

Examples of org.eclipse.swt.widgets.Composite

    public void show() {

        String title = MessageText.getString("SpeedTestWizard.finish.panel.title");
        wizard.setTitle(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;
        layout.makeColumnsEqualWidth=true;
        panel.setLayout(layout);

        Label label = new Label(panel, SWT.WRAP);
        gridData = new GridData();
        gridData.horizontalSpan = 3;
        gridData.widthHint = 380;
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.