Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Group


  }
 
  private void generateReadsGroup() {
    GridData gridData;
   
    Group gCacheReads = new Group(panel,SWT.NULL);
    Messages.setLanguageText(gCacheReads,"CacheView.reads.title");
    gCacheReads.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
   
    GridLayout layoutGeneral = new GridLayout();
    layoutGeneral.numColumns = 6;   
    gCacheReads.setLayout(layoutGeneral);
    Label lbl;
   
    lbl = new Label(gCacheReads,SWT.NULL);
   
    lbl = new Label(gCacheReads,SWT.NULL);
View Full Code Here


  }
 
  private void generateSpeedGroup() {
    GridData gridData;
   
    Group gCacheSpeeds = new Group(panel,SWT.NULL);
    Messages.setLanguageText(gCacheSpeeds,"CacheView.speeds.title");
    gCacheSpeeds.setLayoutData(new GridData(GridData.FILL_BOTH));
   
    GridLayout layoutGeneral = new GridLayout();
    layoutGeneral.numColumns = 3;   
    gCacheSpeeds.setLayout(layoutGeneral);
    Label lbl;
   
    lbl = new Label(gCacheSpeeds,SWT.NULL);
   
    lbl = new Label(gCacheSpeeds,SWT.NULL);
View Full Code Here

  }
 
  private void generateWritesGroup() {
    GridData gridData;
   
    Group gCacheWrites = new Group(panel,SWT.NULL);
    Messages.setLanguageText(gCacheWrites,"CacheView.writes.title");
    gCacheWrites.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
   
    GridLayout layoutGeneral = new GridLayout();
    layoutGeneral.numColumns = 6;   
    gCacheWrites.setLayout(layoutGeneral);
    Label lbl;
   
    lbl = new Label(gCacheWrites,SWT.NULL);
   
    lbl = new Label(gCacheWrites,SWT.NULL);
View Full Code Here

    Composite parentComposite;
    if (skin.DEBUGLAYOUT) {
      System.out.println("linkIDtoParent: Create Composite " + sID + " on "
          + createOn);
      parentComposite = new Group(createOn, style);
      ((Group) parentComposite).setText(sConfigID == null ? sID : sConfigID);
      parentComposite.setData("DEBUG", "1");
    } else {
      if (sTypeParams == null || sTypeParams.length < 2
          || !sTypeParams[1].equalsIgnoreCase("group")) {
        // Lovely SWT has a default size of 64x64 if no children have sizes.
        // Let's fix that..
        parentComposite = new CompositeMinSize(createOn, style);
        ((CompositeMinSize) parentComposite).setMinSize(new Point(minWidth, minHeight));
      } else {
        parentComposite = new Group(createOn, style);
      }
    }
   
    // setting INHERIT_FORCE here would make the BG of a text box be
    // this parent's BG (on Win7 at least)
View Full Code Here

  public void initialize(Composite composite) {
    panel = new Composite(composite,SWT.NULL);
    panel.setLayout(new GridLayout());
    GridData gridData;
       
    Group gDownSpeed = new Group(panel,SWT.NULL);
    Messages.setLanguageText(gDownSpeed,"SpeedView.downloadSpeed.title");
    gridData = new GridData(GridData.FILL_BOTH);
    gDownSpeed.setLayoutData(gridData);   
    gDownSpeed.setLayout(new GridLayout());
   
    downSpeedCanvas = new Canvas(gDownSpeed,SWT.NO_BACKGROUND);
    gridData = new GridData(GridData.FILL_BOTH);
    downSpeedCanvas.setLayoutData(gridData);
    downSpeedGraphic = SpeedGraphic.getInstance();
    downSpeedGraphic.initialize(downSpeedCanvas);
    Color[] colors = downSpeedGraphic.colors;
   
    Group gUpSpeed = new Group(panel,SWT.NULL);
    Messages.setLanguageText(gUpSpeed,"SpeedView.uploadSpeed.title");
    gridData = new GridData(GridData.FILL_BOTH);
    gUpSpeed.setLayoutData(gridData);
    gUpSpeed.setLayout(new GridLayout());
   
    upSpeedCanvas = new Canvas(gUpSpeed,SWT.NO_BACKGROUND);
    gridData = new GridData(GridData.FILL_BOTH);
    upSpeedCanvas.setLayoutData(gridData);
    upSpeedGraphic = SpeedGraphic.getInstance();
View Full Code Here

   
    initialiseActivityGroup();
  }
 
  private void initialiseGeneralGroup() {
    Group gGeneral = new Group(panel,SWT.NONE);
    Messages.setLanguageText(gGeneral, "DHTView.general.title" );
   
    GridData data = new GridData();
    data.verticalAlignment = SWT.BEGINNING;
    data.widthHint = 350;
    gGeneral.setLayoutData(data);
   
    GridLayout layout = new GridLayout();
    layout.numColumns = 6;
    gGeneral.setLayout(layout);
   
      // row1
   
    Label label = new Label(gGeneral,SWT.NONE);
    Messages.setLanguageText(label,"DHTView.general.uptime");   
View Full Code Here

    lblDying = new Label(gGeneral,SWT.NONE);
    lblDying.setLayoutData(new GridData(SWT.FILL,SWT.TOP,true,false));   
  }
 
  private void initialiseDBGroup() {
    Group gDB = new Group(panel,SWT.NONE);
    Messages.setLanguageText(gDB,"DHTView.db.title");
   
    GridData data = new GridData(GridData.FILL_HORIZONTAL);
    data.verticalAlignment = SWT.FILL;
    gDB.setLayoutData(data);
   
    GridLayout layout = new GridLayout();
    layout.numColumns = 6;   
    layout.makeColumnsEqualWidth = true;
    gDB.setLayout(layout);
   
    Label label = new Label(gDB,SWT.NONE);
    Messages.setLanguageText(label,"DHTView.db.keys");   
   
    lblKeys = new Label(gDB,SWT.NONE);
View Full Code Here

    lblDivSize = new Label(gDB,SWT.NONE);
    lblDivSize.setLayoutData(new GridData(SWT.FILL,SWT.TOP,true,false));
  }
 
  private void initialiseTransportDetailsGroup() {
    Group gTransport = new Group(panel,SWT.NONE);
    Messages.setLanguageText(gTransport,"DHTView.transport.title");
   
    GridData data = new GridData(GridData.FILL_VERTICAL);
    data.widthHint = 350;
    data.verticalSpan = 2;
    gTransport.setLayoutData(data);
   
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;   
    layout.makeColumnsEqualWidth = true;
    gTransport.setLayout(layout);
   
   
    Label label = new Label(gTransport,SWT.NONE);
   
    label = new Label(gTransport,SWT.NONE);
View Full Code Here

    outGraph = SpeedGraphic.getInstance();
    outGraph.initialize(out);
  }
 
  private void initialiseOperationDetailsGroup() {
    Group gOperations = new Group(panel,SWT.NONE);
    Messages.setLanguageText(gOperations,"DHTView.operations.title");
    gOperations.setLayoutData(new GridData(SWT.FILL,SWT.BEGINNING,true,false));
   
    GridLayout layout = new GridLayout();
    layout.numColumns = 5;
    layout.makeColumnsEqualWidth = true;
    gOperations.setLayout(layout);
   
   
    Label label = new Label(gOperations,SWT.NONE);
   
    label = new Label(gOperations,SWT.NONE);
View Full Code Here

      lblData[i].setLayoutData(new GridData(SWT.FILL,SWT.TOP,true,false));
    }
  }
 
  private void initialiseActivityGroup() {
    Group gActivity = new Group(panel,SWT.NONE);
    Messages.setLanguageText(gActivity,"DHTView.activity.title");
    gActivity.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
    gActivity.setLayout(new GridLayout());
   
    activityTable = new Table(gActivity,SWT.VIRTUAL | SWT.BORDER | SWT.FULL_SELECTION | SWT.SINGLE);
    activityTable.setLayoutData(new GridData(GridData.FILL_BOTH));
   
    final TableColumn colStatus =  new TableColumn(activityTable,SWT.LEFT);
View Full Code Here

TOP

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

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.