Examples of Control


Examples of java.util.ResourceBundle.Control

        if (values == null) {
            values = new TextAndMnemonicHashMap();
            for (int i=resourceBundles.size()-1; i >= 0; i--) {
                String bundleName = resourceBundles.get(i);
                try {
                    Control c = CoreResourceBundleControl.getRBControlInstance(bundleName);
                    ResourceBundle b;
                    if (c != null) {
                        b = ResourceBundle.getBundle(bundleName, l, c);
                    } else {
                        b = ResourceBundle.getBundle(bundleName, l);
View Full Code Here

Examples of javafx.scene.control.Control

  public <T> HBox beanTF(String path, String selectionPath, String itemPath,
      final Class<?> itemType, final int maxChars,
      Class<? extends Control> controlType, final String restictTo,
      T... choices) {
    HBox box = new HBox();
    Control ctrl;
    if (controlType == CheckBox.class) {
      CheckBox cb = new CheckBox();
      // POJO binding magic...
      personPA.bindBidirectional(path, cb.selectedProperty());
      ctrl = cb;
View Full Code Here

Examples of javax.media.Control

            return null;
        }

        synchronized(controls) {
            for(int i = 0, n = controls.size(); i < n; i++) {
                Control control = (Control)controls.elementAt(i);
                if( c.isInstance(control) ) {
                    return control;
                }
            }
        }
View Full Code Here

Examples of javax.media.Control

    final Object[] controls = getControls();
    if (controls == null)
      return null;
    for (Object o : controls)
    {
      final Control control = (Control) o;
      if (c.isInstance(control))
        return control;
    }

    return null;
View Full Code Here

Examples of javax.media.Control

      // If monitor is on, try to obtain any monitor controls
      // from the processor and display them.

      setLayout(new BorderLayout());

      Control controls[] = p.getControls();
      Panel monitorPanel = null;
      Component monitorComp = null;

      for (int i = 0; i < controls.length; i++) {
    if (controls[i] instanceof MonitorControl) {
View Full Code Here

Examples of javax.media.Control

     * Setting the encoding quality to the specified value on the JPEG encoder.
     * 0.5 is a good default.
     */
    void setJPEGQuality(Player p, float val) {

  Control cs[] = p.getControls();
  QualityControl qc = null;
  VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);

  // Loop through the controls to find the Quality control for
   // the JPEG encoder.
View Full Code Here

Examples of javax.media.Control

            return null;
        }

        synchronized(controls) {
            for(int i = 0, n = controls.size(); i < n; i++) {
                Control control = (Control)controls.elementAt(i);
                if( c.isInstance(control) ) {
                    return control;
                }
            }
        }
View Full Code Here

Examples of javax.media.Control

     * Setting the encoding quality to the specified value on the JPEG encoder.
     * 0.5 is a good default.
     */
    void setJPEGQuality(Player p, float val) {

  Control cs[] = p.getControls();
  QualityControl qc = null;
  VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);

  // Loop through the controls to find the Quality control for
   // the JPEG encoder.
View Full Code Here

Examples of javax.media.Control

   */
  public Control getControl(String controlType) {
    try {
      Class cls = Class.forName(controlType);
      synchronized (controls) {
        Control cs[] = getControls();
        for (int i = 0; i < cs.length; i++) {
          if (cls.isInstance(cs[i])) {
            return cs[i];
          }
        }
View Full Code Here

Examples of javax.microedition.media.Control

    /**
     * Override doGetControl
     * return VideoControl and GUIControl
     */
    protected Control doGetControl(String type) {
        Control c = super.doGetControl(type);

        if (c == null) {
            String prefix = "javax.microedition.media.control.";
            if (type.equals(prefix + vicName)) {        // VideoControl
                return this;
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.