Java Doc for XArrayList.java in  » Web-Framework » jpublish » com » anthonyeden » lib » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » jpublish » com.anthonyeden.lib.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.ArrayList
   com.anthonyeden.lib.util.XArrayList

XArrayList
public class XArrayList extends ArrayList implements XList(Code)
This class extends the ArrayList class to support direct placement of the list in a JList or JComboBox. This class can also listen for PropertyChangeEvents on objects in the collection which have an addPropertyChangeListener(PropertyChangeListener l) method. This option is on by default, but can be turned off to invoid introspection overhead required to find and invoke this method.
author:
   Anthony Eden


Field Summary
final public static  XArrayListEMPTY_LIST
     Constant for an empty XArrayList.
public static  DataFlavordataFlavor
    


Method Summary
public  voidadd(int index, Object element)
     Add the given element to the list at the given index.
public  booleanadd(Object element)
     Add the given object to the list.
public  booleanaddAll(Collection collection)
     Add all of the objects in the collection to this collection.
public  booleanaddAll(int index, Collection collection)
     Add all elements in the collection to this list inserting at the given index.
public  voidaddListDataListener(ListDataListener l)
     Add a ListDataListener.
public static  XArrayListarrayToList(Object[] array)
     Populate an XArrayList with the data from the given object array.
public  voidclear()
     Clear the list data.
protected  voidfireContentsChanged(int index0, int index1)
     Fire a ListDataEvent for the changed interval.
protected  voidfireIntervalAdded(int index0, int index1)
     Fire a ListDataEvent for the added interval.
protected  voidfireIntervalRemoved(int index0, int index1)
     Fire a ListDataEvent for the removed interval.
public  ObjectgetElementAt(int index)
     Get the element at the given index.
protected  ArrayListgetListDataListeners()
    
public  ObjectgetSelectedItem()
     Get the selected item or null if no item is selected.
public  intgetSize()
     Get the number of elements in the list.
public  ObjectgetTransferData(DataFlavor dataFlavor)
     Get the transferable data for the given data flavor.
public  DataFlavor[]getTransferDataFlavors()
     Get an array of supported DataFlavors.
public  booleanisDataFlavorSupported(DataFlavor dataFlavor)
     Return true if the given DataFlavor is supported.
public  voidpropertyChange(PropertyChangeEvent evt)
    
public  Objectremove(int index)
     Remove the object at the given index.
public  booleanremove(Object object)
     Remove the given object.
public  booleanremoveAll(Collection c)
     Remove the objects in the specified collection from this list.
public  voidremoveListDataListener(ListDataListener l)
     Remove a ListDataListener.
protected  voidremoveRange(int startIndex, int endIndex)
     Remove the given range of objects.
public  booleanretainAll(Collection c)
     See the ArrayList retainAll() method.
public  voidsetPropertyChangeListenerEnabled(boolean propertyChangeListenerEnabled)
     Set to false to disable property change listener support.
public  voidsetSelectedItem(Object selectedItem)
     Set the selected item.

Field Detail
EMPTY_LIST
final public static XArrayList EMPTY_LIST(Code)
Constant for an empty XArrayList.



dataFlavor
public static DataFlavor dataFlavor(Code)





Method Detail
add
public void add(int index, Object element)(Code)
Add the given element to the list at the given index.
Parameters:
  index - The index
Parameters:
  element - The element



add
public boolean add(Object element)(Code)
Add the given object to the list.
Parameters:
  element - The element boolean If the element was added



addAll
public boolean addAll(Collection collection)(Code)
Add all of the objects in the collection to this collection.
Parameters:
  collection - The collection to add Return true if this collection was modified



addAll
public boolean addAll(int index, Collection collection)(Code)
Add all elements in the collection to this list inserting at the given index.
Parameters:
  index - The offset index
Parameters:
  collection - The collection to add



addListDataListener
public void addListDataListener(ListDataListener l)(Code)
Add a ListDataListener.
Parameters:
  l - The ListDataListener



arrayToList
public static XArrayList arrayToList(Object[] array)(Code)
Populate an XArrayList with the data from the given object array.
Parameters:
  array - The object array The XArrayList



clear
public void clear()(Code)
Clear the list data.



fireContentsChanged
protected void fireContentsChanged(int index0, int index1)(Code)
Fire a ListDataEvent for the changed interval.
Parameters:
  index0 - The start index
Parameters:
  index1 - The end index



fireIntervalAdded
protected void fireIntervalAdded(int index0, int index1)(Code)
Fire a ListDataEvent for the added interval.
Parameters:
  index0 - The start index
Parameters:
  index1 - The end index



fireIntervalRemoved
protected void fireIntervalRemoved(int index0, int index1)(Code)
Fire a ListDataEvent for the removed interval.
Parameters:
  index0 - The start index
Parameters:
  index1 - The end index



getElementAt
public Object getElementAt(int index)(Code)
Get the element at the given index.
Parameters:
  index - The index The Object or null



getListDataListeners
protected ArrayList getListDataListeners()(Code)
Get all registered ListDataListeners An ArrayList of ListDataListeners



getSelectedItem
public Object getSelectedItem()(Code)
Get the selected item or null if no item is selected. The selected item or null



getSize
public int getSize()(Code)
Get the number of elements in the list. The list size



getTransferData
public Object getTransferData(DataFlavor dataFlavor) throws UnsupportedFlavorException(Code)
Get the transferable data for the given data flavor.
Parameters:
  dataFlavor - The DataFlavor The data
throws:
  UnsupportedFlavorException -



getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()(Code)
Get an array of supported DataFlavors. An array of DataFlavor objects



isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor dataFlavor)(Code)
Return true if the given DataFlavor is supported.
Parameters:
  dataFlavor - The DataFlavor True if the DataFlavor is supported



propertyChange
public void propertyChange(PropertyChangeEvent evt)(Code)



remove
public Object remove(int index)(Code)
Remove the object at the given index.
Parameters:
  index - The index The Object removed or null



remove
public boolean remove(Object object)(Code)
Remove the given object. Return true if the data was changed (the element was removed).
Parameters:
  object - The object True if the data was changed



removeAll
public boolean removeAll(Collection c)(Code)
Remove the objects in the specified collection from this list.
Parameters:
  c - The Collection to remove True if this collection was modified



removeListDataListener
public void removeListDataListener(ListDataListener l)(Code)
Remove a ListDataListener.
Parameters:
  l - The ListDataListener



removeRange
protected void removeRange(int startIndex, int endIndex)(Code)
Remove the given range of objects.
Parameters:
  startIndex - The start index
Parameters:
  endIndex - The end index



retainAll
public boolean retainAll(Collection c)(Code)
See the ArrayList retainAll() method.
Parameters:
  c - The Collection of objects to retain True if this list was modified



setPropertyChangeListenerEnabled
public void setPropertyChangeListenerEnabled(boolean propertyChangeListenerEnabled)(Code)
Set to false to disable property change listener support. The default value is true. Warning: do not change this flag while there are objects in the collection. Doing so may cause this collection to remain attached to objects which are removed from the collection.
Parameters:
  propertyChangeListenerEnabled - Set to false to disable



setSelectedItem
public void setSelectedItem(Object selectedItem)(Code)
Set the selected item. Set this value to null for no selected item.
Parameters:
  selectedItem - The new selected item



Methods inherited from java.util.ArrayList
public boolean add(E e)(Code)(Java Doc)
public void add(int index, E element)(Code)(Java Doc)
public boolean addAll(Collection<? extends E> c)(Code)(Java Doc)
public boolean addAll(int index, Collection<? extends E> c)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public boolean contains(Object o)(Code)(Java Doc)
public void ensureCapacity(int minCapacity)(Code)(Java Doc)
public E get(int index)(Code)(Java Doc)
public int indexOf(Object o)(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public Iterator<E> iterator()(Code)(Java Doc)
public int lastIndexOf(Object o)(Code)(Java Doc)
public ListIterator<E> listIterator(int index)(Code)(Java Doc)
public ListIterator<E> listIterator()(Code)(Java Doc)
public E remove(int index)(Code)(Java Doc)
public boolean remove(Object o)(Code)(Java Doc)
public boolean removeAll(Collection c)(Code)(Java Doc)
protected void removeRange(int fromIndex, int toIndex)(Code)(Java Doc)
public boolean retainAll(Collection c)(Code)(Java Doc)
public E set(int index, E element)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public List<E> subList(int fromIndex, int toIndex)(Code)(Java Doc)
public Object[] toArray()(Code)(Java Doc)
public T[] toArray(T[] a)(Code)(Java Doc)
public void trimToSize()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.