public interface Adjustable
Modifier and Type | Field and Description |
---|---|
static int |
HORIZONTAL
表明
Adjustable 横向。
|
static int |
NO_ORIENTATION
表明
Adjustable 没有方向。
|
static int |
VERTICAL
表明
Adjustable 具有垂直取向。
|
Modifier and Type | Method and Description |
---|---|
void |
addAdjustmentListener(AdjustmentListener l)
添加一个侦听器以接收可调整对象更改的值时的调整事件。
|
int |
getBlockIncrement()
获取可调对象的块值增量。
|
int |
getMaximum()
获取可调对象的最大值。
|
int |
getMinimum()
获取可调对象的最小值。
|
int |
getOrientation()
获取可调对象的方向。
|
int |
getUnitIncrement()
获取可调对象的单位值增量。
|
int |
getValue()
获取可调对象的当前值。
|
int |
getVisibleAmount()
获取比例指示器的长度。
|
void |
removeAdjustmentListener(AdjustmentListener l)
移除一个调整侦听器。
|
void |
setBlockIncrement(int b)
设置可调对象的块值增量。
|
void |
setMaximum(int max)
设置可调对象的最大值。
|
void |
setMinimum(int min)
设置可调对象的最小值。
|
void |
setUnitIncrement(int u)
设置可调对象的单位值增量。
|
void |
setValue(int v)
设置可调对象的当前值。
|
void |
setVisibleAmount(int v)
设置可调对象的比例指示器的长度。
|
@Native static final int HORIZONTAL
Adjustable
横向。
@Native static final int VERTICAL
Adjustable
具有垂直取向。
@Native static final int NO_ORIENTATION
Adjustable
没有方向。
int getOrientation()
HORIZONTAL
,
VERTICAL
,或
NO_ORIENTATION
void setMinimum(int min)
min
-最小值
int getMinimum()
void setMaximum(int max)
max
-最大值
int getMaximum()
void setUnitIncrement(int u)
u
-单位增量
int getUnitIncrement()
void setBlockIncrement(int b)
b
的块增量
int getBlockIncrement()
void setVisibleAmount(int v)
v
-指示的长度
int getVisibleAmount()
void setValue(int v)
maximum
minimum
-
visibleAmount
,那么这些价值观是取代的,适当的。
调用此方法不火AdjustmentEvent
。
v
的电流值,
minimum
和
maximum
-
visibleAmount
之间
int getValue()
void addAdjustmentListener(AdjustmentListener l)
l
-监听器接收事件
AdjustmentEvent
void removeAdjustmentListener(AdjustmentListener l)
l
-听众被删除
AdjustmentEvent
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.