Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.List


  protected void createList(int horizontalSpan,
    int verticalSpan,
    int widthHint,
    int numberOfItems)
  {
    entityList = new List(shell,
      SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.HORIZONTAL);
    GridData gridData =
      new GridData(GridData.FILL, GridData.FILL, true, true);
    gridData.verticalSpan = verticalSpan;
    gridData.horizontalSpan = horizontalSpan;
View Full Code Here


    gridData = new GridData(GridData.FILL, GridData.CENTER, false, false);
    filterButton.setLayoutData(gridData);

    //EntityList
   
    entityList = new List(shell,
      SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    //setItems of List in sorted form
    entityList.setItems(allEntityNames);
    gridData = new GridData(GridData.FILL, GridData.FILL, true, true);
    gridData.verticalSpan = 20;
View Full Code Here

  protected void createList(int horizontalSpan,
    int verticalSpan,
    int widthHint,
    int numberOfItems)
  {
    entityList = new List(shell,
      SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.HORIZONTAL);
    GridData gridData =
      new GridData(GridData.FILL, GridData.FILL, true, true);
    gridData.verticalSpan = verticalSpan;
    gridData.horizontalSpan = horizontalSpan;
View Full Code Here

  protected Control createDialogArea(Composite parent) {
    // create composite
    Composite composite = (Composite) super.createDialogArea(parent);

    typeList = new List(composite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.heightHint = 100;
    typeList.setLayoutData(gridData);

    for (int i = 0; i < m_availableTypeNames.length; i++) {
View Full Code Here

    AbstractSection.spacer(composite);

    // create m_taePrompt
    createWideLabel(composite, "Delegate Components:");

    delegateComponentListGUI = new List(composite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.heightHint = 100;
    delegateComponentListGUI.setLayoutData(gridData);
    boolean bContainsConstituentsAlreadyInAggregate = false;
    boolean bContainsAggregate = false;
    for (int i = 0; i < m_DelegateComponentDescriptors.size(); i++) {
      String sAdditional = "";
      if (m_aggregateFileName.equals(m_DelegateComponentDescriptors.get(i))) {
        sAdditional = "**";
        bContainsAggregate = true;
      }
      delegateComponentListGUI.add((String) m_DelegateComponentDescriptors.get(i) + sAdditional);
    }
    delegateComponentListGUI.addSelectionListener(dialogSelectionListener);

    if (bContainsConstituentsAlreadyInAggregate && bContainsAggregate) {
      specialMsgLabel
              .setText("(* indicates delegate component is already part of aggregate, ** is aggregate currently being configured)");
    } else if (bContainsConstituentsAlreadyInAggregate) {
      specialMsgLabel.setText("(* indicates delegate component is already part of aggregate)");
    } else if (bContainsAggregate) {
      specialMsgLabel.setText("(** is aggregate currently being configured)");
    }

    createWideLabel(composite, "Delegate Component Description:");

    delegateComponentDescriptionText = new Text(composite, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL
            | SWT.BORDER);
    delegateComponentDescriptionText.setLayoutData(new GridData(GridData.FILL_BOTH));
    GridData dcgd = new GridData(GridData.FILL_HORIZONTAL);
    dcgd.heightHint = 50;
    delegateComponentDescriptionText.setLayoutData(dcgd);
    delegateComponentDescriptionText.setEditable(false);

    createWideLabel(composite, "Input Types:");

    inputTypesList = new List(composite, SWT.BORDER | SWT.V_SCROLL);
    inputTypesList.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    createWideLabel(composite, "Output Types:");

    outputTypesList = new List(composite, SWT.BORDER | SWT.V_SCROLL);
    outputTypesList.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    // autoAddToFlowButton = new Button(composite, SWT.CHECK);
    // autoAddToFlowButton.setText("Add selected delegate components to end of flow");
    // autoAddToFlowButton.setSelection(true);
View Full Code Here

    int style = getStyle ();
    int listStyle = SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER;
    if ((style & SWT.FLAT) != 0) listStyle |= SWT.FLAT;
    if ((style & SWT.RIGHT_TO_LEFT) != 0) listStyle |= SWT.RIGHT_TO_LEFT;
    if ((style & SWT.LEFT_TO_RIGHT) != 0) listStyle |= SWT.LEFT_TO_RIGHT;
    list = new List (popup, listStyle);     
    if (font != null) list.setFont (font);
    if (foreground != null) list.setForeground (foreground);
    list.setBackground (new Color(popup.getDisplay(), 230, 230, 230));

    int [] popupEvents = {SWT.Close, SWT.Paint, SWT.Deactivate};
View Full Code Here

        if(text.isFocusControl()) return;
        popup.dispose();
      }
    });

    list = new List (popup, SWT.V_SCROLL | SWT.BORDER)
    list.setBackground (ColorCache.getInstance().getWhite());
    list.setFont(text.getFont());
    list.setItems(elements);

    list.addKeyListener(new KeyListener() {
View Full Code Here

      int style = getStyle ();
      int listStyle = SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER;
      if ((style & SWT.FLAT) != 0) listStyle |= SWT.FLAT;
      if ((style & SWT.RIGHT_TO_LEFT) != 0) listStyle |= SWT.RIGHT_TO_LEFT;
      if ((style & SWT.LEFT_TO_RIGHT) != 0) listStyle |= SWT.LEFT_TO_RIGHT;
      list = new List (popup, listStyle);     
      if (font != null) list.setFont (font);
      if (foreground != null) list.setForeground (foreground);
      if (background != null) list.setBackground (background);
     
      int [] popupEvents = {SWT.Close, SWT.Paint, SWT.Deactivate};
View Full Code Here

    int style = getStyle ();
    int listStyle = SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER;
    if ((style & SWT.FLAT) != 0) listStyle |= SWT.FLAT;
    if ((style & SWT.RIGHT_TO_LEFT) != 0) listStyle |= SWT.RIGHT_TO_LEFT;
    if ((style & SWT.LEFT_TO_RIGHT) != 0) listStyle |= SWT.LEFT_TO_RIGHT;
    list = new List(popup.getPopup(), listStyle);
    GridData gridData = new GridData(GridData.FILL_BOTH);
    gridData.horizontalSpan = 2;
    list.setLayoutData(gridData);
    list.addMouseListener(new MouseAdapter(){
      public void mouseDown(MouseEvent e) {
View Full Code Here

    return widget;
  }
 
 
  public List createList(Composite com, int style){
    return new List(com, style);
 
View Full Code Here

TOP

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

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.