Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ javax/sound/sampled/BooleanControl.java
/* * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.sound.sampled; /** * A {@code BooleanControl} provides the ability to switch between two possible * settings that affect a line's audio. The settings are boolean values * ({@code true} and {@code 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 {@link BooleanControl.Type#MUTE MUTE} control to * silence the line's audio. * <p> * As with other {@code Control} subclasses, a method is provided that returns * string labels for the values, suitable for display in the user interface. * * @author Kara Kytle * @since 1.3 */ public abstract class BooleanControl extends Control { /** * The {@code true} state label, such as "true" or "on". */ private final String trueStateLabel; /** * The {@code false} state label, such as "false" or "off". */ private final String falseStateLabel; /** * The current value. */ private boolean value; /** * Constructs a new boolean control object with the given parameters. * * @param type the type of control represented this float control object * @param initialValue the initial control value * @param trueStateLabel the label for the state represented by * {@code true}, such as "true" or "on" * @param falseStateLabel the label for the state represented by * {@code false}, such as "false" or "off" */ protected BooleanControl(Type type, boolean initialValue, String trueStateLabel, String falseStateLabel) { super(type); this.value = initialValue; this.trueStateLabel = trueStateLabel; this.falseStateLabel = falseStateLabel; } /** * Constructs a new boolean control object with the given parameters. The * labels for the {@code true} and {@code false} states default to "true" * and "false". * * @param type the type of control represented by this float control object * @param initialValue the initial control value */ protected BooleanControl(Type type, boolean initialValue) { this(type, initialValue, "true", "false"); } /** * 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. * * @param value desired new value */ public void setValue(boolean value) { this.value = value; } /** * Obtains this control's current value. * * @return current value */ public boolean getValue() { return value; } /** * Obtains the label for the specified state. * * @param state the state whose label will be returned * @return the label for the specified state, such as "true" or "on" for * {@code true}, or "false" or "off" for {@code false} */ public String getStateLabel(boolean state) { return ((state == true) ? trueStateLabel : falseStateLabel); } /** * Provides a string representation of the control. * * @return a string representation of the control */ @Override public String toString() { return new String(super.toString() + " with current value: " + getStateLabel(getValue())); } /** * An instance of the {@code BooleanControl.Type} class identifies one kind * of boolean control. Static instances are provided for the common types. * * @author Kara Kytle * @since 1.3 */ public static class Type extends Control.Type { /** * Represents a control for the mute status of a line. Note that mute * status does not affect gain. */ public static final Type MUTE = new Type("Mute"); /** * Represents a control for whether reverberation is applied to a line. * Note that the status of this control not affect the reverberation * settings for a line, but does affect whether these settings are used. */ public static final Type APPLY_REVERB = new Type("Apply Reverb"); /** * Constructs a new boolean control type. * * @param name the name of the new boolean control type */ protected Type(final String name) { super(name); } } }
⏎ javax/sound/sampled/BooleanControl.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, 194789👍, 5💬
Popular Posts:
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....