|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.awt.ScrollPaneAdjustable
public class ScrollPaneAdjustable
此類別表示 ScrollPane 的水平或垂直滾動條的狀態。ScrollPane 方法返回此類別的物件。
| 欄位摘要 |
|---|
| 從介面 java.awt.Adjustable 繼承的欄位 |
|---|
HORIZONTAL, NO_ORIENTATION, VERTICAL |
| 方法摘要 | |
|---|---|
void |
addAdjustmentListener(AdjustmentListener l)
添加指定的調整偵聽器,以接收發自此 ScrollPaneAdjustable 的調整事件。 |
AdjustmentListener[] |
getAdjustmentListeners()
返回在此 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()
返回此滾動條及其值的字元串表示形式。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 方法詳細資訊 |
|---|
public int getOrientation()
Adjustable 中的 getOrientationAdjustable.HORIZONTAL 或 Adjustable.VERTICALpublic void setMinimum(int min)
Adjustable 介面的類別是公用的。
Adjustable 中的 setMinimummin - 最小值
AWTError - 調用時總是拋出一個錯誤。public int getMinimum()
Adjustable 複製的描述
Adjustable 中的 getMinimumpublic void setMaximum(int max)
Adjustable 介面的類別是公用的。
Adjustable 中的 setMaximummax - 最大值
AWTError - 調用時總是拋出一個錯誤。public int getMaximum()
Adjustable 複製的描述
Adjustable 中的 getMaximumpublic void setUnitIncrement(int u)
Adjustable 複製的描述
Adjustable 中的 setUnitIncrementu - 單位增量public int getUnitIncrement()
Adjustable 複製的描述
Adjustable 中的 getUnitIncrementpublic void setBlockIncrement(int b)
Adjustable 複製的描述
Adjustable 中的 setBlockIncrementb - 塊值增量public int getBlockIncrement()
Adjustable 複製的描述
Adjustable 中的 getBlockIncrementpublic void setVisibleAmount(int v)
Adjustable 介面的類別是公用的。
Adjustable 中的 setVisibleAmountv - 指示器的長度
AWTError - 調用時總是拋出一個錯誤。public int getVisibleAmount()
Adjustable 複製的描述
Adjustable 中的 getVisibleAmountpublic void setValueIsAdjusting(boolean b)
valueIsAdjusting 屬性。
b - 新的調整正處於進行狀態getValueIsAdjusting()public boolean getValueIsAdjusting()
valueIsAdjusting 屬性的值setValueIsAdjusting(boolean)public void setValue(int v)
如果提供的值小於當前最小值或大於當前最大值,則適當地替換其中的一個值。
Adjustable 中的 setValuev - 滾動條的新值public int getValue()
Adjustable 複製的描述
Adjustable 中的 getValuepublic void addAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable 的調整事件。如果 l 為 null,則不拋出異常,也不執行任何動作。
有關 AWT 的執行緒模型的詳細資訊,請參閱 AWT 執行緒問題。
Adjustable 中的 addAdjustmentListenerl - 調整偵聽器。removeAdjustmentListener(java.awt.event.AdjustmentListener),
getAdjustmentListeners(),
AdjustmentListener,
AdjustmentEventpublic void removeAdjustmentListener(AdjustmentListener l)
ScrollPaneAdjustable 的調整事件。如果 l 為 null,則不拋出異常,也不執行動作。
有關 AWT 的執行緒模型的詳細資訊,請參閱 AWT 執行緒問題。
Adjustable 中的 removeAdjustmentListenerl - 調整偵聽器。addAdjustmentListener(java.awt.event.AdjustmentListener),
getAdjustmentListeners(),
AdjustmentListener,
AdjustmentEventpublic AdjustmentListener[] getAdjustmentListeners()
ScrollPaneAdjustable 上所有已註冊調整偵聽器組成的陣列。
ScrollPaneAdjustable 的所有 AdjustmentListener,如果當前沒有已註冊的調整偵聽器,則返回一個空陣列addAdjustmentListener(java.awt.event.AdjustmentListener),
removeAdjustmentListener(java.awt.event.AdjustmentListener),
AdjustmentListener,
AdjustmentEventpublic String toString()
Object 中的 toStringpublic String paramString()
null。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。