Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
javax.sound.sampled

Class BooleanControl


  • public abstract class BooleanControl
    extends Control
    A BooleanControl provides the ability to switch between two possible settings that affect a line's audio. The settings are boolean values (true and false). A graphical user interface might represent the control by a two-state button, an on/off switch, two mutually exclusive buttons, or a checkbox (among other possibilities). For example, depressing a button might activate a MUTE control to silence the line's audio.

    As with other Control subclasses, a method is provided that returns string labels for the values, suitable for display in the user interface.

    Since:
    1.3
    • Constructor Detail

      • BooleanControl

        protected BooleanControl(BooleanControl.Type type,
                      boolean initialValue,
                      String trueStateLabel,
                      String falseStateLabel)
        Constructs a new boolean control object with the given parameters.
        Parameters:
        type - the type of control represented this float control object
        initialValue - the initial control value
        trueStateLabel - the label for the state represented by true, such as "true" or "on."
        falseStateLabel - the label for the state represented by false, such as "false" or "off."
      • BooleanControl

        protected BooleanControl(BooleanControl.Type type,
                      boolean initialValue)
        Constructs a new boolean control object with the given parameters. The labels for the true and false states default to "true" and "false."
        Parameters:
        type - the type of control represented by this float control object
        initialValue - the initial control value
    • Method Detail

      • setValue

        public void setValue(boolean value)
        Sets the current value for the control. The default implementation simply sets the value as indicated. Some controls require that their line be open before they can be affected by setting a value.
        Parameters:
        value - desired new value.
      • getValue

        public boolean getValue()
        Obtains this control's current value.
        Returns:
        current value.
      • getStateLabel

        public String getStateLabel(boolean state)
        Obtains the label for the specified state.
        Returns:
        the label for the specified state, such as "true" or "on" for true, or "false" or "off" for false.
      • toString

        public String toString()
        Provides a string representation of the control
        Overrides:
        toString in class Control
        Returns:
        a string description

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/sound/sampled/booleancontrol.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut