JavaTM 2 Platform
Standard Ed. 6

類別 javax.swing.event.ListDataEvent
的使用

使用 ListDataEvent 的軟體套件
javax.swing 提供一組“輕量級”(全部是 Java 語言)元件,盡量讓這些元件在所有平臺上的工作方式都相同。 
javax.swing.event 供 Swing 元件觸發的事件使用。 
javax.swing.plaf.basic 提供了根據基本外觀建構的使用者介面物件。 
 

javax.swing 中 ListDataEvent 的使用
 

參數型別為 ListDataEvent 的 javax.swing 中的方法
 void JList.AccessibleJList.contentsChanged(ListDataEvent e)
          List Data Listener 內容更改方法。
 void JComboBox.contentsChanged(ListDataEvent e)
          此方法作為實作的副作用存在的公共方法。
 void JList.AccessibleJList.intervalAdded(ListDataEvent e)
          List Data Listener 間隔添加方法。
 void JComboBox.intervalAdded(ListDataEvent e)
          此方法作為實作的副作用存在的公共方法。
 void JList.AccessibleJList.intervalRemoved(ListDataEvent e)
          List Data Listener 間隔移除方法。
 void JComboBox.intervalRemoved(ListDataEvent e)
          此方法作為實作的副作用存在的公共方法。
 

javax.swing.event 中 ListDataEvent 的使用
 

參數型別為 ListDataEvent 的 javax.swing.event 中的方法
 void ListDataListener.contentsChanged(ListDataEvent e)
          在列表的內容以某種太過複雜以至用以前的方法難以描述的方式發生更改時發送。
 void ListDataListener.intervalAdded(ListDataEvent e)
          在已將 index0,index1 區間中的索引插入資料模型中之後發送。
 void ListDataListener.intervalRemoved(ListDataEvent e)
          在已將 index0,index1 區間中的索引從資料模型中移除後發送。
 

javax.swing.plaf.basic 中 ListDataEvent 的使用
 

參數型別為 ListDataEvent 的 javax.swing.plaf.basic 中的方法
 void BasicListUI.ListDataHandler.contentsChanged(ListDataEvent e)
           
 void BasicComboPopup.ListDataHandler.contentsChanged(ListDataEvent e)
           
 void BasicComboBoxUI.ListDataHandler.contentsChanged(ListDataEvent e)
           
 void BasicDirectoryModel.intervalAdded(ListDataEvent e)
          廢棄,不使用。
 void BasicListUI.ListDataHandler.intervalAdded(ListDataEvent e)
           
 void BasicComboPopup.ListDataHandler.intervalAdded(ListDataEvent e)
           
 void BasicComboBoxUI.ListDataHandler.intervalAdded(ListDataEvent e)
           
 void BasicDirectoryModel.intervalRemoved(ListDataEvent e)
          廢棄,不使用。
 void BasicListUI.ListDataHandler.intervalRemoved(ListDataEvent e)
           
 void BasicComboPopup.ListDataHandler.intervalRemoved(ListDataEvent e)
           
 void BasicComboBoxUI.ListDataHandler.intervalRemoved(ListDataEvent e)
           
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。