Package org.sf.feeling.swt.win32.extension.widgets

Examples of org.sf.feeling.swt.win32.extension.widgets.CCheckBox.addSelectionListener()


    return widget;
  }
 
  public CButton createCButton(Composite com, int style, String text, SelectionListener listener){
    CButton widget = createCButton(com, style, text);
    if(listener != null) widget.addSelectionListener(listener);
    return widget;
  }
 
  public CCheckBox createCCheckBox(Composite com, String text, SelectionListener listener){
    CCheckBox widget = createCCheckBox(com, text);
View Full Code Here


    return widget;
  }
 
  public CButton createCButton(Composite com, int style, String text, String tip, SelectionListener listener){
    CButton widget = createCButton(com, style, text);
    if(listener != null) widget.addSelectionListener(listener);
    return widget;
  }
 
  public Button createButton(Composite com, Image icon, String tip, SelectionListener listener){
    Button widget = createButton(com, SWT.PUSH, "");
View Full Code Here

    return widget;
  }
 
  public CCheckBox createCCheckBox(Composite com, String text, SelectionListener listener){
    CCheckBox widget = createCCheckBox(com, text);
    if(listener != null) widget.addSelectionListener(listener);
    return widget;
  }
 
  public Button createButton(Composite com, int style, String text, String tip, SelectionListener listener){
    Button widget = createButton(com, style, text);
View Full Code Here

      PopupMenu popupMenu = new PopupMenu(text, XPWidgetTheme.THEME);
      CMenu menu = new CMenu();
      popupMenu.setMenu(menu);
      text.setMenu(new Menu(text.getShell(), SWT.POP_UP));
      CMenuItem item = new CMenuItem(SWT.NONE);
      item.addSelectionListener(new SelectionAdapter() {
        @SuppressWarnings("unused")
        public void widgetSelected(SelectionEvent e) {
          text.setText("");
        }
      });
View Full Code Here

    } else {
      Menu menu = new Menu(text.getShell(), SWT.POP_UP);
      text.setMenu(menu);
     
      MenuItem item = new MenuItem(menu, SWT.NONE);
      item.addSelectionListener(new SelectionAdapter() {
        @SuppressWarnings("unused")
        public void widgetSelected(SelectionEvent e) {
          text.setText("");
        }
      });
View Full Code Here

    if(parent instanceof CMenu) {
      CMenu cMenu = (CMenu) parent;
      if(name == null) {
        CMenuItem item = new CMenuItem(SWT.NONE);
        item.addSelectionListener(listener);
        item.setImage(imageLoader.load(composite.getDisplay(), img));
        cMenu.addItem(item);
      } else {
        CMenuItem item = new CMenuItem(resources.getLabel(CLASS_NAME+"."+name), SWT.NONE);
        item.addSelectionListener(listener);
View Full Code Here

        item.addSelectionListener(listener);
        item.setImage(imageLoader.load(composite.getDisplay(), img));
        cMenu.addItem(item);
      } else {
        CMenuItem item = new CMenuItem(resources.getLabel(CLASS_NAME+"."+name), SWT.NONE);
        item.addSelectionListener(listener);
        item.setImage(imageLoader.load(composite.getDisplay(), img));
        cMenu.addItem(item);
      }
    }
  }
View Full Code Here

    if(parent instanceof CMenu) {
      CMenu cMenu = (CMenu) parent;
      if(name == null) {
        CMenuItem item = new CMenuItem(SWT.NONE);
        item.addSelectionListener(listener);
        cMenu.addItem(item);
      } else {
        if(!Character.isUpperCase(name.charAt(0))) {
          name = resources.getLabel(CLASS_NAME+"."+name);
        }
View Full Code Here

      } else {
        if(!Character.isUpperCase(name.charAt(0))) {
          name = resources.getLabel(CLASS_NAME+"."+name);
        }
        CMenuItem item = new CMenuItem(name, SWT.NONE);
        item.addSelectionListener(listener);
        cMenu.addItem(item);
      }
    }
  }
View Full Code Here

    if(parent instanceof CMenu) {
      CMenu cMenu = (CMenu) parent;
      if(name == null) {
        CMenuItem item = new CMenuItem(SWT.NONE);
        if(listener != null) item.addSelectionListener(listener);
        cMenu.addItem(item);
      } else {
        CMenuItem item = new CMenuItem(name, SWT.NONE);
        if(listener != null) item.addSelectionListener(listener);
        cMenu.addItem(item);
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.