Examples of ScaleObservableValue


Examples of org.eclipse.jface.internal.databinding.internal.swt.ScaleObservableValue

      return new CComboObservableValue((CCombo) control,
          SWTProperties.SELECTION);
    } else if (control instanceof List) {
      return new ListObservableValue((List) control);
    } else if (control instanceof Scale) {
      return new ScaleObservableValue((Scale) control,
          SWTProperties.SELECTION);
    }

    throw new IllegalArgumentException(
        "Widget [" + control.getClass().getName() + "] is not supported."); //$NON-NLS-1$//$NON-NLS-2$
View Full Code Here

Examples of org.eclipse.jface.internal.databinding.internal.swt.ScaleObservableValue

  public static ISWTObservableValue observeMin(Control control) {
    if (control instanceof Spinner) {
      return new SpinnerObservableValue((Spinner) control,
          SWTProperties.MIN);
    } else if (control instanceof Scale) {
      return new ScaleObservableValue((Scale) control, SWTProperties.MIN);
    }

    throw new IllegalArgumentException(
        "Widget [" + control.getClass().getName() + "] is not supported."); //$NON-NLS-1$//$NON-NLS-2$
  }
View Full Code Here

Examples of org.eclipse.jface.internal.databinding.internal.swt.ScaleObservableValue

  public static ISWTObservableValue observeMax(Control control) {
    if (control instanceof Spinner) {
      return new SpinnerObservableValue((Spinner) control,
          SWTProperties.MAX);
    } else if (control instanceof Scale) {
      return new ScaleObservableValue((Scale) control, SWTProperties.MAX);
    }

    throw new IllegalArgumentException(
        "Widget [" + control.getClass().getName() + "] is not supported."); //$NON-NLS-1$//$NON-NLS-2$
  }
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.