Java Doc for PropertySheetTableModel.java in  » Swing-Library » l2fprod-common » com » l2fprod » common » propertysheet » 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 » Swing Library » l2fprod common » com.l2fprod.common.propertysheet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.table.AbstractTableModel
      com.l2fprod.common.propertysheet.PropertySheetTableModel

PropertySheetTableModel
public class PropertySheetTableModel extends AbstractTableModel implements PropertyChangeListener,PropertySheet,ObjectTableModel(Code)
PropertySheetTableModel.

Inner Class :public class Item
Inner Class :public static class PropertyComparator implements Comparator
Inner Class :public static class NaturalOrderStringComparator implements Comparator

Field Summary
final public static  intNAME_COLUMN
    
final public static  intNUM_COLUMNS
    
final public static  intVALUE_COLUMN
    

Constructor Summary
public  PropertySheetTableModel()
    

Method Summary
public  voidaddProperty(Property property)
    
public  voidaddProperty(int index, Property property)
    
public  voidaddPropertyChangeListener(PropertyChangeListener listener)
     Add a PropertyChangeListener to the current model.
public  ClassgetColumnClass(int columnIndex)
    
public  intgetColumnCount()
    
public  intgetMode()
     Get the current mode, either PropertySheet.VIEW_AS_CATEGORIES or PropertySheet.VIEW_AS_FLAT_LIST .
public  ObjectgetObject(int rowIndex)
    
public  Property[]getProperties()
    
protected  ListgetPropertyCategories(List localProperties)
    
public  intgetPropertyCount()
    
public  ItemgetPropertySheetElement(int rowIndex)
     Get the current property sheet element, of type Item , at the specified row.
public  intgetRowCount()
    
public  MapgetToggleStates()
    
public  ObjectgetValueAt(int rowIndex, int columnIndex)
     Retrieve the value at the specified row and column location.
public  booleanisRestoreToggleStates()
    
public  booleanisSortingCategories()
     Get whether this model is currently sorting categories.
public  booleanisSortingProperties()
     Get whether this model is currently sorting properties.
public  voidpropertyChange(PropertyChangeEvent evt)
    
public  IteratorpropertyIterator()
    
public  voidremoveProperty(Property property)
    
public  voidremovePropertyChangeListener(PropertyChangeListener listener)
    
public  voidsetCategorySortingComparator(Comparator comp)
     Set the comparator used for sorting categories.
public  voidsetMode(int mode)
     Set the current mode, either PropertySheet.VIEW_AS_CATEGORIES or PropertySheet.VIEW_AS_FLAT_LIST .
public  voidsetProperties(Property[] newProperties)
    
public  voidsetPropertySortingComparator(Comparator comp)
     Set the comparator used for sorting properties.
public  voidsetRestoreToggleStates(boolean value)
     Set whether or not this model will restore the toggle states when new properties are applied.
public  voidsetSortingCategories(boolean value)
     Set whether this model is currently sorting categories.
public  voidsetSortingProperties(boolean value)
     Set whether this model is currently sorting properties.
public  voidsetToggleStates(Map toggleStates)
     Sets the toggle states for the category views.
public  voidsetValueAt(Object value, int rowIndex, int columnIndex)
     Sets the value at the specified row and column.
protected  ListsortCategories(List localCategories)
    
protected  ListsortProperties(List localProperties)
    
protected  voidvisibilityChanged(boolean restoreOldStates)
    

Field Detail
NAME_COLUMN
final public static int NAME_COLUMN(Code)



NUM_COLUMNS
final public static int NUM_COLUMNS(Code)



VALUE_COLUMN
final public static int VALUE_COLUMN(Code)




Constructor Detail
PropertySheetTableModel
public PropertySheetTableModel()(Code)




Method Detail
addProperty
public void addProperty(Property property)(Code)



addProperty
public void addProperty(int index, Property property)(Code)



addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)
Add a PropertyChangeListener to the current model.



getColumnClass
public Class getColumnClass(int columnIndex)(Code)



getColumnCount
public int getColumnCount()(Code)



getMode
public int getMode()(Code)
Get the current mode, either PropertySheet.VIEW_AS_CATEGORIES or PropertySheet.VIEW_AS_FLAT_LIST .



getObject
public Object getObject(int rowIndex)(Code)



getProperties
public Property[] getProperties()(Code)



getPropertyCategories
protected List getPropertyCategories(List localProperties)(Code)



getPropertyCount
public int getPropertyCount()(Code)



getPropertySheetElement
public Item getPropertySheetElement(int rowIndex)(Code)
Get the current property sheet element, of type Item , at the specified row.



getRowCount
public int getRowCount()(Code)



getToggleStates
public Map getToggleStates()(Code)
the category view toggle states.



getValueAt
public Object getValueAt(int rowIndex, int columnIndex)(Code)
Retrieve the value at the specified row and column location. When the row contains a category or the column is PropertySheetTableModel.NAME_COLUMN , an Item object will be returned. If the row is a property and the column is PropertySheetTableModel.VALUE_COLUMN , the value of the property will be returned.
See Also:   javax.swing.table.TableModel.getValueAt(intint)



isRestoreToggleStates
public boolean isRestoreToggleStates()(Code)
Get whether this model is restoring toggle states



isSortingCategories
public boolean isSortingCategories()(Code)
Get whether this model is currently sorting categories.



isSortingProperties
public boolean isSortingProperties()(Code)
Get whether this model is currently sorting properties.



propertyChange
public void propertyChange(PropertyChangeEvent evt)(Code)



propertyIterator
public Iterator propertyIterator()(Code)



removeProperty
public void removeProperty(Property property)(Code)



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)



setCategorySortingComparator
public void setCategorySortingComparator(Comparator comp)(Code)
Set the comparator used for sorting categories. If this changes the comparator, the model will be rebuilt.



setMode
public void setMode(int mode)(Code)
Set the current mode, either PropertySheet.VIEW_AS_CATEGORIES or PropertySheet.VIEW_AS_FLAT_LIST .



setProperties
public void setProperties(Property[] newProperties)(Code)



setPropertySortingComparator
public void setPropertySortingComparator(Comparator comp)(Code)
Set the comparator used for sorting properties. If this changes the comparator, the model will be rebuilt.



setRestoreToggleStates
public void setRestoreToggleStates(boolean value)(Code)
Set whether or not this model will restore the toggle states when new properties are applied.



setSortingCategories
public void setSortingCategories(boolean value)(Code)
Set whether this model is currently sorting categories. If this changes the sorting, the model will be rebuilt.



setSortingProperties
public void setSortingProperties(boolean value)(Code)
Set whether this model is currently sorting properties. If this changes the sorting, the model will be rebuilt.



setToggleStates
public void setToggleStates(Map toggleStates)(Code)
Sets the toggle states for the category views. Note this MUST be called BEFORE setting any properties.
Parameters:
  toggleStates - the toggle states as returned by getToggleStates



setValueAt
public void setValueAt(Object value, int rowIndex, int columnIndex)(Code)
Sets the value at the specified row and column. This will have no effect unless the row is a property and the column is PropertySheetTableModel.VALUE_COLUMN .
See Also:   javax.swing.table.TableModel.setValueAt(java.lang.Objectintint)



sortCategories
protected List sortCategories(List localCategories)(Code)



sortProperties
protected List sortProperties(List localProperties)(Code)



visibilityChanged
protected void visibilityChanged(boolean restoreOldStates)(Code)



Fields inherited from javax.swing.table.AbstractTableModel
protected EventListenerList listenerList(Code)(Java Doc)

Methods inherited from javax.swing.table.AbstractTableModel
public void addTableModelListener(TableModelListener l)(Code)(Java Doc)
public int findColumn(String columnName)(Code)(Java Doc)
public void fireTableCellUpdated(int row, int column)(Code)(Java Doc)
public void fireTableChanged(TableModelEvent e)(Code)(Java Doc)
public void fireTableDataChanged()(Code)(Java Doc)
public void fireTableRowsDeleted(int firstRow, int lastRow)(Code)(Java Doc)
public void fireTableRowsInserted(int firstRow, int lastRow)(Code)(Java Doc)
public void fireTableRowsUpdated(int firstRow, int lastRow)(Code)(Java Doc)
public void fireTableStructureChanged()(Code)(Java Doc)
public Class getColumnClass(int columnIndex)(Code)(Java Doc)
public String getColumnName(int column)(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public TableModelListener[] getTableModelListeners()(Code)(Java Doc)
public boolean isCellEditable(int rowIndex, int columnIndex)(Code)(Java Doc)
public void removeTableModelListener(TableModelListener l)(Code)(Java Doc)
public void setValueAt(Object aValue, int rowIndex, int columnIndex)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.