public static class Control.Type extends Object
An instance of the Type
class represents the type of the control. Static instances are provided for the common types.
protected Type(String name)
Constructs a new control type with the name specified. The name should be a descriptive string appropriate for labelling the control in an application, such as "Gain" or "Balance."
name
- the name of the new control type.public final boolean equals(Object obj)
Finalizes the equals method
equals
in class Object
obj
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.Object.hashCode()
, HashMap
public final int hashCode()
Finalizes the hashCode method
hashCode
in class Object
Object.equals(java.lang.Object)
, System.identityHashCode(java.lang.Object)
public final String toString()
Provides the String
representation of the control type. This String
is the same name that was passed to the constructor.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.