Java Doc for PropertySheetPanel.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) 


javax.swing.JPanel
   com.l2fprod.common.propertysheet.PropertySheetPanel

PropertySheetPanel
public class PropertySheetPanel extends JPanel implements PropertySheet,PropertyChangeListener(Code)
An implementation of a PropertySheet which shows a table to edit/view values, a description pane which updates when the selection changes and buttons to toggle between a flat view and a by-category view of the properties. A button in the toolbar allows to sort the properties and categories by name.

Default sorting is by name (case-insensitive). Custom sorting can be implemented through com.l2fprod.common.propertysheet.PropertySheetTableModel.setCategorySortingComparator(Comparator) and com.l2fprod.common.propertysheet.PropertySheetTableModel.setPropertySortingComparator(Comparator)


Inner Class :class SelectionListener implements ListSelectionListener
Inner Class :class ToggleModeAction extends AbstractAction
Inner Class :class ToggleDescriptionAction extends AbstractAction
Inner Class :class ToggleSortingAction extends AbstractAction


Constructor Summary
public  PropertySheetPanel()
    
public  PropertySheetPanel(PropertySheetTable table)
    

Method Summary
public  voidaddProperty(Property property)
    
public  voidaddProperty(int index, Property property)
    
public  voidaddPropertySheetChangeListener(PropertyChangeListener listener)
    
public  PropertyEditorFactorygetEditorFactory()
    
public  PropertyEditorRegistrygetEditorRegistry()
    
public  Property[]getProperties()
    
public  intgetPropertyCount()
    
public  PropertyRendererFactorygetRendererFactory()
    
public  PropertyRendererRegistrygetRendererRegistry()
    
public  PropertySheetTablegetTable()
    
public  MapgetToggleStates()
    
public  booleanisRestoreToggleStates()
    
public  booleanisSorting()
    
public  booleanisSortingCategories()
     Is sorting of categories enabled.
public  booleanisSortingProperties()
     Is sorting of properties enabled.
public  voidpropertyChange(PropertyChangeEvent evt)
     React to property changes by repainting.
public  IteratorpropertyIterator()
    
public  voidreadFromObject(Object data)
     Initializes the PropertySheet from the given object.
public  voidremoveProperty(Property property)
    
public  voidremovePropertySheetChangeListener(PropertyChangeListener listener)
    
public  voidsetBeanInfo(BeanInfo beanInfo)
    
public  voidsetCategorySortingComparator(Comparator comp)
     Sets the Comparator to be used with categories.
public  voidsetDescriptionVisible(boolean visible)
     Toggles the visibility of the description panel.
public  voidsetEditorFactory(PropertyEditorFactory factory)
    
public  voidsetEditorRegistry(PropertyEditorRegistry registry)
    
public  voidsetMode(int mode)
     Set the current mode, either PropertySheet.VIEW_AS_CATEGORIES or PropertySheet.VIEW_AS_FLAT_LIST .
public  voidsetProperties(Property[] properties)
    
public  voidsetProperties(PropertyDescriptor[] descriptors)
    
public  voidsetPropertySortingComparator(Comparator comp)
     Sets the Comparator to be used with Property-objects.
public  voidsetRendererFactory(PropertyRendererFactory factory)
    
public  voidsetRendererRegistry(PropertyRendererRegistry registry)
    
public  voidsetRestoreToggleStates(boolean value)
     Set wether or not toggle states are restored when new properties are applied.
public  voidsetSorting(boolean value)
     Sets sorting properties and categories enabled or disabled.
public  voidsetSortingCategories(boolean value)
     Sets sorting of categories enabled or disabled.
public  voidsetSortingProperties(boolean value)
     Sets sorting of properties enabled or disabled.
public  voidsetTable(PropertySheetTable table)
     Sets the table used by this panel.
public  voidsetToggleStates(Map toggleStates)
     Sets the toggle states for the category views.
public  voidsetToolBarVisible(boolean visible)
    
public  voidwriteToObject(Object data)
     Writes the PropertySheet to the given object.


Constructor Detail
PropertySheetPanel
public PropertySheetPanel()(Code)



PropertySheetPanel
public PropertySheetPanel(PropertySheetTable table)(Code)




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



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



addPropertySheetChangeListener
public void addPropertySheetChangeListener(PropertyChangeListener listener)(Code)



getEditorFactory
public PropertyEditorFactory getEditorFactory()(Code)



getEditorRegistry
public PropertyEditorRegistry getEditorRegistry()(Code)
PropertySheetPanel.getEditorFactory()



getProperties
public Property[] getProperties()(Code)



getPropertyCount
public int getPropertyCount()(Code)



getRendererFactory
public PropertyRendererFactory getRendererFactory()(Code)



getRendererRegistry
public PropertyRendererRegistry getRendererRegistry()(Code)
PropertySheetPanel.getRendererFactory()



getTable
public PropertySheetTable getTable()(Code)
the table used to edit/view Properties.



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



isRestoreToggleStates
public boolean isRestoreToggleStates()(Code)
true is toggle state restore is enabled



isSorting
public boolean isSorting()(Code)
true if properties or categories are sorted.



isSortingCategories
public boolean isSortingCategories()(Code)
Is sorting of categories enabled. true if category sorting is enabled



isSortingProperties
public boolean isSortingProperties()(Code)
Is sorting of properties enabled. true if property sorting is enabled



propertyChange
public void propertyChange(PropertyChangeEvent evt)(Code)
React to property changes by repainting.



propertyIterator
public Iterator propertyIterator()(Code)



readFromObject
public void readFromObject(Object data)(Code)
Initializes the PropertySheet from the given object. If any, it cancels pending edit before proceeding with properties.
Parameters:
  data -



removeProperty
public void removeProperty(Property property)(Code)



removePropertySheetChangeListener
public void removePropertySheetChangeListener(PropertyChangeListener listener)(Code)



setBeanInfo
public void setBeanInfo(BeanInfo beanInfo)(Code)



setCategorySortingComparator
public void setCategorySortingComparator(Comparator comp)(Code)
Sets the Comparator to be used with categories. Categories are treated as String-objects.
Parameters:
  comp - java.util.Comparator used to compare categories



setDescriptionVisible
public void setDescriptionVisible(boolean visible)(Code)
Toggles the visibility of the description panel.
Parameters:
  visible -



setEditorFactory
public void setEditorFactory(PropertyEditorFactory factory)(Code)



setEditorRegistry
public void setEditorRegistry(PropertyEditorRegistry registry)(Code)
PropertySheetPanel.setEditorFactory(PropertyEditorFactory)
Parameters:
  registry -



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[] properties)(Code)



setProperties
public void setProperties(PropertyDescriptor[] descriptors)(Code)



setPropertySortingComparator
public void setPropertySortingComparator(Comparator comp)(Code)
Sets the Comparator to be used with Property-objects.
Parameters:
  comp - java.util.Comparator used to compare Property-objects



setRendererFactory
public void setRendererFactory(PropertyRendererFactory factory)(Code)



setRendererRegistry
public void setRendererRegistry(PropertyRendererRegistry registry)(Code)
PropertySheetPanel.setRendererFactory(PropertyRendererFactory)
Parameters:
  registry -



setRestoreToggleStates
public void setRestoreToggleStates(boolean value)(Code)
Set wether or not toggle states are restored when new properties are applied.
Parameters:
  value - true to enable



setSorting
public void setSorting(boolean value)(Code)
Sets sorting properties and categories enabled or disabled.
Parameters:
  value - true to enable sorting



setSortingCategories
public void setSortingCategories(boolean value)(Code)
Sets sorting of categories enabled or disabled.
Parameters:
  value - true to enable sorting



setSortingProperties
public void setSortingProperties(boolean value)(Code)
Sets sorting of properties enabled or disabled.
Parameters:
  value - true to enable sorting



setTable
public void setTable(PropertySheetTable table)(Code)
Sets the table used by this panel. Note: listeners previously added with PropertySheetPanel.addPropertySheetChangeListener(PropertyChangeListener) must be re-added after this call if the table model is not the same as the previous table.
Parameters:
  table -



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



setToolBarVisible
public void setToolBarVisible(boolean visible)(Code)
Toggles the visibility of the toolbar panel
Parameters:
  visible -



writeToObject
public void writeToObject(Object data)(Code)
Writes the PropertySheet to the given object. If any, it commits pending edit before proceeding with properties.
Parameters:
  data -



Methods inherited from javax.swing.JPanel
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public PanelUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void setUI(PanelUI ui)(Code)(Java Doc)
public void updateUI()(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.