Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.ModifyEvent


    case SWT.Show:
    case SWT.Hide:
      toString += event.widget instanceof Menu ? new MenuEvent(event).toString() : event.toString();
      break;
    case SWT.Modify:
      toString += new ModifyEvent(event).toString();
      break;
    case SWT.Verify:
      toString += new VerifyEvent(event).toString();
      break;
    case SWT.Help:
View Full Code Here


    case SWT.Show:
    case SWT.Hide:
      toString += event.widget instanceof Menu ? new MenuEvent(event).toString() : event.toString();
      break;
    case SWT.Modify:
      toString += new ModifyEvent(event).toString();
      break;
    case SWT.Verify:
      toString += new VerifyEvent(event).toString();
      break;
    case SWT.Help:
View Full Code Here

            Event event = new Event();
            event.widget = this;
            String[] values = getValues();
            event.data = values;
            event.text = values[0] + " " + values[1];
            ModifyEvent modifyEvent = new ModifyEvent(event);
            Object interested[] = listeners.getListeners();
            for (int i = 0; i < interested.length; i++)
            if (interested[i] != null) {
                ((ModifyListener) interested[i]).modifyText(modifyEvent);
            }
View Full Code Here

        Object[] interested = listeners.getListeners();
        if (interested != null && interested.length > 0) {
            Event event = new Event();
            event.data = newValue;
            event.widget = getControl();
            ModifyEvent me = new ModifyEvent(event);
            for (int i = 0; i < interested.length; i++) {
                ((ModifyListener) interested[i]).modifyText(me);
            }
        }
    }
View Full Code Here

        Object[] interested = listeners.getListeners();
        if (interested != null) {
            Event event = new Event();
            event.widget = this;
            event.data = items;
            ModifyEvent me = new ModifyEvent(event);
            for (int i = 0; i < interested.length; i++) {
                if (interested[i] != null) {
                    ((ModifyListener) interested[i]).modifyText(me);
                }
            }
View Full Code Here

     */
    private void changeColorSelection(String value) {
        Event e = new Event();
        e.data = value == null ? "" : value;
        e.widget = this;
        ModifyEvent me = new ModifyEvent(e);
        // Set the new color for the color button.
        RGB rgb = null;
        if (this.validate().isOK()) {
            // Try a named color first
            rgb = Convertors.hexToRGB(NamedColor.getHex(value));
View Full Code Here

        Object[] interested = listeners.getListeners();
        if (interested != null && interested.length > 0) {
            Event event = new Event();
            event.widget = this;
            event.data = null;
            ModifyEvent me = new ModifyEvent(event);
            for (int i = 0; i < interested.length; i++) {
                if (interested[i] != null) {
                    ((ModifyListener) interested[i]).modifyText(me);
                }
            }
View Full Code Here

            Event event = new Event();
            event.widget = this;
            String value = getValue();
            event.data = value;
            event.text = value;
            ModifyEvent modifyEvent = new ModifyEvent(event);
            Object interested[] = listeners.getListeners();
            for (int i = 0; i < interested.length; i++)
            if (interested[i] != null) {
                ((ModifyListener) interested[i]).modifyText(modifyEvent);
            }
View Full Code Here

        Event event = new Event();
        event.widget = this;
        String value = textEntry.getText();
        event.data = value;
        event.text = value;
        ModifyEvent modifyEvent = new ModifyEvent(event);
        Object interested[] = listeners.getListeners();
        for (int i = 0; i < interested.length; i++)
        if (interested[i] != null) {
            ((ModifyListener) interested[i]).modifyText(modifyEvent);
        }
View Full Code Here

        Object[] interested = listeners.getListeners();
        if (interested != null) {
            Event event = new Event();
            event.widget = this;
            event.data = items;
            ModifyEvent me = new ModifyEvent(event);
            for (int i = 0; i < interested.length; i++) {
                if (interested[i] != null) {
                    ((ModifyListener) interested[i]).modifyText(me);
                }
            }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.ModifyEvent

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.