public class ScrollPaneAdjustable extends Object implements Adjustable, Serializable
ScrollPane 。
此类的对象由ScrollPane方法返回。
HORIZONTAL, NO_ORIENTATION, VERTICAL| Modifier and Type | Method and Description |
|---|---|
void |
addAdjustmentListener(AdjustmentListener l)
添加指定的调整监听器以接收来自此
ScrollPaneAdjustable调整事件。
|
AdjustmentListener[] |
getAdjustmentListeners()
返回在此
ScrollPaneAdjustable上
ScrollPaneAdjustable的所有调整监听器的数组。
|
int |
getBlockIncrement()
获取可调整对象的块值增量。
|
int |
getMaximum()
获取可调整对象的最大值。
|
int |
getMinimum()
获取可调整对象的最小值。
|
int |
getOrientation()
返回此滚动条的方向。
|
int |
getUnitIncrement()
获取可调整对象的单位增量。
|
int |
getValue()
获取可调整对象的当前值。
|
boolean |
getValueIsAdjusting()
如果值正在由于用户执行的操作而改变,则返回true。
|
int |
getVisibleAmount()
获取比例指示器的长度。
|
String |
paramString()
返回一个表示此滚动条状态的字符串。
|
void |
removeAdjustmentListener(AdjustmentListener l)
删除指定的调整侦听器,不再从此接收调整事件
ScrollPaneAdjustable 。
|
void |
setBlockIncrement(int b)
设置可调整对象的块值增量。
|
void |
setMaximum(int max)
此方法
不应由用户代码调用。
|
void |
setMinimum(int min)
此方法
不应由用户代码调用。
|
void |
setUnitIncrement(int u)
设置可调整对象的单位值增量。
|
void |
setValue(int v)
将此滚动条的值设置为指定的值。
|
void |
setValueIsAdjusting(boolean b)
设置
valueIsAdjusting属性。
|
void |
setVisibleAmount(int v)
此方法
不应由用户代码调用。
|
String |
toString()
返回此滚动条及其值的字符串表示形式。
|
public int getOrientation()
getOrientation在界面
Adjustable
Adjustable.HORIZONTAL或
Adjustable.VERTICAL
public void setMinimum(int min)
Adjustable接口。
setMinimum在界面
Adjustable
min - 最小值
AWTError - 调用时总是发生错误。
public int getMinimum()
Adjustable复制
getMinimum在界面
Adjustable
public void setMaximum(int max)
Adjustable接口。
setMaximum在界面
Adjustable
max - 最大值
AWTError - 调用时总是发生错误。
public int getMaximum()
Adjustable复制
getMaximum在界面
Adjustable
public void setUnitIncrement(int u)
Adjustable复制
setUnitIncrement在界面
Adjustable
u - 单位增量
public int getUnitIncrement()
Adjustable复制
getUnitIncrement在界面
Adjustable
public void setBlockIncrement(int b)
Adjustable复制
setBlockIncrement在界面
Adjustable
b - 块增量
public int getBlockIncrement()
Adjustable复制
getBlockIncrement在界面
Adjustable
public void setVisibleAmount(int v)
Adjustable接口。
setVisibleAmount在界面
Adjustable
v -
v的长度
AWTError - 调用时总是发生错误。
public int getVisibleAmount()
Adjustable复制
getVisibleAmount在接口
Adjustable
public void setValueIsAdjusting(boolean b)
valueIsAdjusting属性。
b - 新的调整进度状态
getValueIsAdjusting()
public boolean getValueIsAdjusting()
valueIsAdjusting属性
setValueIsAdjusting(boolean)
public void setValue(int v)
如果提供的值小于当前最小值或大于当前最大值,则根据需要替换其中一个值。
setValue在界面
Adjustable
v -
v的新值
public int getValue()
Adjustable复制
getValue在界面
Adjustable
public void addAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable调整事件。
如果l为null ,则不会抛出异常并且不执行任何操作。
请参阅AWT Threading Issues有关AWT的线程模型的细节。
addAdjustmentListener在界面
Adjustable
l - 调整听众。
removeAdjustmentListener(java.awt.event.AdjustmentListener) , getAdjustmentListeners() , AdjustmentListener , AdjustmentEvent
public void removeAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable 。
如果l为null ,则不会抛出异常并且不执行任何操作。
请参阅AWT Threading Issues有关AWT的线程模型的细节。
removeAdjustmentListener在界面
Adjustable
l - 调整监听器。
addAdjustmentListener(java.awt.event.AdjustmentListener) , getAdjustmentListeners() , AdjustmentListener , AdjustmentEvent
public AdjustmentListener[] getAdjustmentListeners()
ScrollPaneAdjustable上
ScrollPaneAdjustable的所有调整监听器的数组。
ScrollPaneAdjustable的
AdjustmentListener s或一个空数组,如果没有调整监听器当前注册
addAdjustmentListener(java.awt.event.AdjustmentListener) , removeAdjustmentListener(java.awt.event.AdjustmentListener) , AdjustmentListener , AdjustmentEvent
public String paramString()
null 。
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.