|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
javax.swing.plaf.multi.MultiListUI
public class MultiListUI
用於組合 ListUI 的多路 UI。
此檔案由 AutoMulti 自動產生。
| 欄位摘要 | |
|---|---|
protected Vector |
uis
包含實際 UI 的向量。 |
| 建構子摘要 | |
|---|---|
MultiListUI()
|
|
| 方法摘要 | |
|---|---|
boolean |
contains(JComponent a,
int b,
int c)
在由此物件處理的每個 UI 上調用 contains 方法。 |
static ComponentUI |
createUI(JComponent a)
如果任意輔助 LookAndFeel 都支持此 UI,則返回一個多路 UI 實例。 |
Accessible |
getAccessibleChild(JComponent a,
int b)
在由此物件處理的每個 UI 上調用 getAccessibleChild 方法。 |
int |
getAccessibleChildrenCount(JComponent a)
在由此物件處理的每個 UI 上調用 getAccessibleChildrenCount 方法。 |
Rectangle |
getCellBounds(JList a,
int b,
int c)
在由此物件處理的每個 UI 上調用 getCellBounds 方法。 |
Dimension |
getMaximumSize(JComponent a)
在由此物件處理的每個 UI 上調用 getMaximumSize 方法。 |
Dimension |
getMinimumSize(JComponent a)
在由此物件處理的每個 UI 上調用 getMinimumSize 方法。 |
Dimension |
getPreferredSize(JComponent a)
在由此物件處理的每個 UI 上調用 getPreferredSize 方法。 |
ComponentUI[] |
getUIs()
返回與此多路 UI 關聯的 UI 列表。 |
Point |
indexToLocation(JList a,
int b)
在由此物件處理的每個 UI 上調用 indexToLocation 方法。 |
void |
installUI(JComponent a)
在由此物件處理的每個 UI 上調用 installUI 方法。 |
int |
locationToIndex(JList a,
Point b)
在由此物件處理的每個 UI 上調用 locationToIndex 方法。 |
void |
paint(Graphics a,
JComponent b)
在由此物件處理的每個 UI 上調用 paint 方法。 |
void |
uninstallUI(JComponent a)
在由此物件處理的每個 UI 上調用 uninstallUI 方法。 |
void |
update(Graphics a,
JComponent b)
在由此物件處理的每個 UI 上調用 update 方法。 |
| 從類別 javax.swing.plaf.ComponentUI 繼承的方法 |
|---|
getBaseline, getBaselineResizeBehavior |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
protected Vector uis
createUI 的調用中產生的,並且可通過調用 getUIs 方法獲得它。可以保證第一個元素是從預設外觀獲得的實際 UI。
| 建構子詳細資訊 |
|---|
public MultiListUI()
| 方法詳細資訊 |
|---|
public ComponentUI[] getUIs()
public int locationToIndex(JList a,
Point b)
locationToIndex 方法。
ListUI 中的 locationToIndexa - 列表b - 點的坐標
LookAndFeel 獲得的 UI
public Point indexToLocation(JList a,
int b)
indexToLocation 方法。
ListUI 中的 indexToLocationa - 列表b - 單元索引
LookAndFeel 獲得的 UI
public Rectangle getCellBounds(JList a,
int b,
int c)
getCellBounds 方法。
ListUI 中的 getCellBoundsa - 列表b - 範圍內第一個索引c - 範圍內第二個索引
LookAndFeel 獲得的 UI
public boolean contains(JComponent a,
int b,
int c)
contains 方法。
ComponentUI 中的 containsa - 將在其中查詢 x,y 的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數b - 點的 x 坐標c - 點的 y 坐標
LookAndFeel 獲得的 UIJComponent.contains(int, int),
Component.contains(int, int)
public void update(Graphics a,
JComponent b)
update 方法。
ComponentUI 中的 updatea - 將在其中進行繪製的 Graphics 上下文b - 將繪製的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent),
JComponent.paintComponent(java.awt.Graphics)public static ComponentUI createUI(JComponent a)
LookAndFeel 都支持此 UI,則返回一個多路 UI 實例。否則只返回從預設 LookAndFeel 獲得的 UI 物件。
public void installUI(JComponent a)
installUI 方法。
ComponentUI 中的 installUIa - 將安裝此 UI 委託的元件ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent a)
uninstallUI 方法。
ComponentUI 中的 uninstallUIa - 從中移除此 UI 委託的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數ComponentUI.installUI(javax.swing.JComponent),
JComponent.updateUI()
public void paint(Graphics a,
JComponent b)
paint 方法。
ComponentUI 中的 painta - 將在其中進行繪製的 Graphics 上下文b - 將繪製的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)public Dimension getPreferredSize(JComponent a)
getPreferredSize 方法。
ComponentUI 中的 getPreferredSizea - 將查詢其首選大小的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數
LookAndFeel 獲得的 UIJComponent.getPreferredSize(),
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent a)
getMinimumSize 方法。
ComponentUI 中的 getMinimumSizea - 將查詢其最小大小的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數
LookAndFeel 獲得的 UIJComponent.getMinimumSize(),
LayoutManager.minimumLayoutSize(java.awt.Container),
ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent a)
getMaximumSize 方法。
ComponentUI 中的 getMaximumSizea - 將查詢其最大大小的元件;此參數常被忽略,但如果 UI 物件是無狀態的並由多個元件共享,則可以使用該參數
LookAndFeel 獲得的 UIJComponent.getMaximumSize(),
LayoutManager2.maximumLayoutSize(java.awt.Container)public int getAccessibleChildrenCount(JComponent a)
getAccessibleChildrenCount 方法。
ComponentUI 中的 getAccessibleChildrenCountLookAndFeel 獲得的 UIComponentUI.getAccessibleChild(javax.swing.JComponent, int)
public Accessible getAccessibleChild(JComponent a,
int b)
getAccessibleChild 方法。
ComponentUI 中的 getAccessibleChildb - 子物件的從零開始的索引
LookAndFeel 獲得的 UIComponentUI.getAccessibleChildrenCount(javax.swing.JComponent)
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。