public abstract class EnumControl extends Control
EnumControl提供对一组离散可能值的控制,每个值由对象表示。 
       在图形用户界面中,这样的控件可以由一组按钮来表示,每个按钮选择一个值或设置。 
       例如,混响控制可以提供多个预设的混响设置,而不是提供将由FloatControlFloatControl 只提供两个设置之间进行选择控件通常可以代替实现为BooleanControlFloatControl用粗的分辨率。 但是, EnumControl一个关键特性是返回的值是任意对象,而不是数值或布尔值。 这意味着每个返回的对象都可以提供更多的信息。 例如, REVERBReverbType的ReverbType
| Modifier and Type | Class and Description | 
|---|---|
| static class  | EnumControl.TypeEnumControl.Type内部类的实例标识了一种枚举控件。 | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | EnumControl(EnumControl.Type type, Object[] values, Object value)
              使用给定的参数构造一个新的枚举控制对象。 
             | 
protected EnumControl(EnumControl.Type type, Object[] values, Object value)
type - 表示此枚举控件对象的控件类型 
           values - 控件的一组可能的值 
           value - 初始控制值 
           public void setValue(Object value)
value - 所需的新值 
           IllegalArgumentException - 如果指示的值不在容许范围内 
           public Object getValue()
public Object[] getValues()
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.