Java Doc for SubstanceTableUI.java in  » Swing-Library » substance-look-feel » org » jvnet » substance » 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 » substance look feel » org.jvnet.substance 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.plaf.basic.BasicTableUI
   org.jvnet.substance.SubstanceTableUI

SubstanceTableUI
public class SubstanceTableUI extends BasicTableUI (Code)
UI for tables in Substance look and feel. Unfortunately, the entire painting stack has been copied from BasicTableUI since the methods are private. The animation effects are implemented in the SubstanceTableUI.paintCell(Graphics,Rectangle,int,int) .
author:
   Kirill Grouchnikov

Inner Class :protected class CellRepaintCallback extends FadeTrackerAdapter
Inner Class :protected class RowRepaintCallback extends FadeTrackerAdapter
Inner Class :protected class ColumnRepaintCallback extends FadeTrackerAdapter
Inner Class :protected static class TableCellId implements Comparable
Inner Class :protected static class TableColumnId implements Comparable
Inner Class :protected static class TableRowId implements Comparable
Inner Class :protected class TableStateListener implements ListSelectionListener,TableModelListener

Field Summary
protected  Map<Class<?>, TableCellRenderer>defaultRenderers
     Map of default renderers.
protected  intfocusedColumn
     Column index of the focused cell.
protected  intfocusedRow
     Row index of the focused cell.
protected  introlledOverColumn
     Holds the currently rolled-over column index, or -1 if none such.
protected  ComparablerolledOverId
     Holds the currently rolled-over row-column index, or null if none such.
protected  Map<TableCellId, Object>selectedIndices
     Holds the list of currently selected row-column indexes.
protected  RolloverFadeListenersubstanceFadeRolloverListener
     Listener for fade animations on table rollovers.
protected  TableStateListenersubstanceFadeSelectionListener
     Listener for fade animations on list selections.
protected  PropertyChangeListenersubstancePropertyChangeListener
     Listener that listens to changes on table properties.

Constructor Summary
public  SubstanceTableUI()
     Creates a UI delegate for table.

Method Summary
public static  ComponentUIcreateUI(JComponent c)
    
public  ComponentStategetCellState(TableCellId cellIndex)
     Returns the current state for the specified cell.
Parameters:
  cellIndex - Cell index.
public  ComparablegetId(int row, int column)
     Returns a comparable ID for the specified location.
public  ComponentStategetPrevCellState(TableCellId cellIndex)
     Returns the previous state for the specified cell.
Parameters:
  cellIndex - Cell index.
public  intgetRolloverColumnIndex()
     Returns the index of the rollover column.
protected  booleanhasAnimations()
     Checks whether the table has animations.
public  booleanhasRolloverAnimations()
     Checks whether the table has rollover animations.
public  booleanhasSelectionAnimations()
     Checks whether the table has selection animations.
protected  voidinstallDefaults()
    
protected  voidinstallListeners()
    
protected  voidinstallRendererIfNecessary(Class clazz, TableCellRenderer renderer)
     Installs Substance-specific renderers for column classes that don't have application-specific renderers installed by the user code.
public  booleanisFocusedCell(int row, int column)
     Returns indication whether the specified cell has focus.
Parameters:
  row - Cell row index.
Parameters:
  column - Cell column index.
public  voidpaint(Graphics g, JComponent c)
     Paint a representation of the table instance that was set in installUI().
protected  voidpaintCell(Graphics g, Rectangle cellRect, int row, int column)
    
protected  voidsyncSelection()
     Synchronizes the current selection state.
protected  voiduninstallDefaults()
    
protected  voiduninstallListeners()
    
protected  voiduninstallRendererIfNecessary(Class clazz, TableCellRenderer renderer)
     Uninstalls default Substance renderers that were installed in SubstanceTableUI.installRendererIfNecessary(Class,TableCellRenderer) .
public  voidupdate(Graphics g, JComponent c)
    

Field Detail
defaultRenderers
protected Map<Class<?>, TableCellRenderer> defaultRenderers(Code)
Map of default renderers.



focusedColumn
protected int focusedColumn(Code)
Column index of the focused cell.



focusedRow
protected int focusedRow(Code)
Row index of the focused cell.



rolledOverColumn
protected int rolledOverColumn(Code)
Holds the currently rolled-over column index, or -1 if none such. This is used for the table header animations.



rolledOverId
protected Comparable rolledOverId(Code)
Holds the currently rolled-over row-column index, or null if none such.



selectedIndices
protected Map<TableCellId, Object> selectedIndices(Code)
Holds the list of currently selected row-column indexes.



substanceFadeRolloverListener
protected RolloverFadeListener substanceFadeRolloverListener(Code)
Listener for fade animations on table rollovers.



substanceFadeSelectionListener
protected TableStateListener substanceFadeSelectionListener(Code)
Listener for fade animations on list selections.



substancePropertyChangeListener
protected PropertyChangeListener substancePropertyChangeListener(Code)
Listener that listens to changes on table properties.




Constructor Detail
SubstanceTableUI
public SubstanceTableUI()(Code)
Creates a UI delegate for table.




Method Detail
createUI
public static ComponentUI createUI(JComponent c)(Code)



getCellState
public ComponentState getCellState(TableCellId cellIndex)(Code)
Returns the current state for the specified cell.
Parameters:
  cellIndex - Cell index. The current state for the specified cell.



getId
public Comparable getId(int row, int column)(Code)
Returns a comparable ID for the specified location. The result will be one of TableRowId , TableColumnId or TableCellId , based on the row and column selection modes of the table.
Parameters:
  row - Row index.
Parameters:
  column - Column index. Comparable ID for the specified location.



getPrevCellState
public ComponentState getPrevCellState(TableCellId cellIndex)(Code)
Returns the previous state for the specified cell.
Parameters:
  cellIndex - Cell index. The previous state for the specified cell.



getRolloverColumnIndex
public int getRolloverColumnIndex()(Code)
Returns the index of the rollover column. The index of the rollover column.



hasAnimations
protected boolean hasAnimations()(Code)
Checks whether the table has animations. true if the table has animations,false otherwise.



hasRolloverAnimations
public boolean hasRolloverAnimations()(Code)
Checks whether the table has rollover animations. true if the table has rollover animations,false otherwise.



hasSelectionAnimations
public boolean hasSelectionAnimations()(Code)
Checks whether the table has selection animations. true if the table has selection animations,false otherwise.



installDefaults
protected void installDefaults()(Code)



installListeners
protected void installListeners()(Code)



installRendererIfNecessary
protected void installRendererIfNecessary(Class clazz, TableCellRenderer renderer)(Code)
Installs Substance-specific renderers for column classes that don't have application-specific renderers installed by the user code.
Parameters:
  clazz - Column class.
Parameters:
  renderer - Default renderer for the specified column class.



isFocusedCell
public boolean isFocusedCell(int row, int column)(Code)
Returns indication whether the specified cell has focus.
Parameters:
  row - Cell row index.
Parameters:
  column - Cell column index. true If the focus is on the specified cell,false otherwise.



paint
public void paint(Graphics g, JComponent c)(Code)
Paint a representation of the table instance that was set in installUI().



paintCell
protected void paintCell(Graphics g, Rectangle cellRect, int row, int column)(Code)



syncSelection
protected void syncSelection()(Code)
Synchronizes the current selection state.
Parameters:
  e - Selection event.



uninstallDefaults
protected void uninstallDefaults()(Code)



uninstallListeners
protected void uninstallListeners()(Code)



uninstallRendererIfNecessary
protected void uninstallRendererIfNecessary(Class clazz, TableCellRenderer renderer)(Code)
Uninstalls default Substance renderers that were installed in SubstanceTableUI.installRendererIfNecessary(Class,TableCellRenderer) .
Parameters:
  clazz - Column class.
Parameters:
  renderer - Renderer to restore.



update
public void update(Graphics g, JComponent c)(Code)



Fields inherited from javax.swing.plaf.basic.BasicTableUI
protected FocusListener focusListener(Code)(Java Doc)
protected KeyListener keyListener(Code)(Java Doc)
protected MouseInputListener mouseInputListener(Code)(Java Doc)
protected CellRendererPane rendererPane(Code)(Java Doc)
protected JTable table(Code)(Java Doc)

Methods inherited from javax.swing.plaf.basic.BasicTableUI
protected FocusListener createFocusListener()(Code)(Java Doc)
protected KeyListener createKeyListener()(Code)(Java Doc)
protected MouseInputListener createMouseInputListener()(Code)(Java Doc)
public static ComponentUI createUI(JComponent c)(Code)(Java Doc)
public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc)
public Dimension getMaximumSize(JComponent c)(Code)(Java Doc)
public Dimension getMinimumSize(JComponent c)(Code)(Java Doc)
public Dimension getPreferredSize(JComponent c)(Code)(Java Doc)
protected void installDefaults()(Code)(Java Doc)
protected void installKeyboardActions()(Code)(Java Doc)
protected void installListeners()(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
public void paint(Graphics g, JComponent c)(Code)(Java Doc)
protected void uninstallDefaults()(Code)(Java Doc)
protected void uninstallKeyboardActions()(Code)(Java Doc)
protected void uninstallListeners()(Code)(Java Doc)
public void uninstallUI(JComponent c)(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.