Java Doc for AlternateRowHighlighter.java in  » Swing-Library » swingx » org » jdesktop » swingx » decorator » 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 » swingx » org.jdesktop.swingx.decorator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jdesktop.swingx.decorator.Highlighter
      org.jdesktop.swingx.decorator.AlternateRowHighlighter

AlternateRowHighlighter
public class AlternateRowHighlighter extends Highlighter (Code)
AlternateRowHighlighter prepares a cell renderer to use different background colors for alternating rows in a data view. The size (in terms of row count) of an alternating group is configurable (defaults to 1);
author:
   Ramesh Gupta

Inner Class :public static class UIAlternateRowHighlighter extends AlternateRowHighlighter implements UIHighlighter

Field Summary
final public static  Highlighterbeige
    
final public static  HighlighterclassicLinePrinter
    
final public static  HighlighterfloralWhite
    
final public static  AlternateRowHighlightergenericGrey
    
final public static  HighlighterlinePrinter
    
final public static  HighlighterquickSilver
    

Constructor Summary
public  AlternateRowHighlighter()
     Constructs a default AlternateRowHighlighter that prepares a cell renderer to paint a white background for odd rows and a silver (0xF0, 0xF0, 0xE0) background for even rows.
public  AlternateRowHighlighter(Color oddRowBackground, Color evenRowBackground, Color foreground)
     Constructs an AlternateRowHighlighter that prepares a cell renderer to paint the specified background colors for odd and even and even rows.
public  AlternateRowHighlighter(Color oddRowBackground, Color evenRowBackground, Color foreground, boolean immutable)
    

Method Summary
protected  ColorcomputeUnselectedBackground(Component renderer, ComponentAdapter adapter)
    
public  ColorgetEvenRowBackground()
     Returns the background color for even rows, or null if the background color of the cell renderer should be left unchanged for even rows.
public  intgetLinesPerGroup()
    
public  ColorgetOddRowBackground()
     Returns the background color for odd rows, or null if the background color of the cell renderer should be left unchanged for odd rows.
protected  booleanisOddRow(ComponentAdapter adapter)
    
public  voidsetEvenRowBackground(Color color)
     Sets the background color for even rows to the specified color.
public  voidsetLinesPerGroup(int linesPerGroup)
    
public  voidsetOddRowBackground(Color color)
     Sets the background color for odd rows to the specified color.

Field Detail
beige
final public static Highlighter beige(Code)



classicLinePrinter
final public static Highlighter classicLinePrinter(Code)



floralWhite
final public static Highlighter floralWhite(Code)



genericGrey
final public static AlternateRowHighlighter genericGrey(Code)



linePrinter
final public static Highlighter linePrinter(Code)



quickSilver
final public static Highlighter quickSilver(Code)




Constructor Detail
AlternateRowHighlighter
public AlternateRowHighlighter()(Code)
Constructs a default AlternateRowHighlighter that prepares a cell renderer to paint a white background for odd rows and a silver (0xF0, 0xF0, 0xE0) background for even rows.



AlternateRowHighlighter
public AlternateRowHighlighter(Color oddRowBackground, Color evenRowBackground, Color foreground)(Code)
Constructs an AlternateRowHighlighter that prepares a cell renderer to paint the specified background colors for odd and even and even rows. A foreground color may also be specified. If null is specified for the foreground color, the foreground color for the renderer is unchanged. Otherwise, it is set to the specified foreground color for both odd and even rows.
Parameters:
  oddRowBackground -
Parameters:
  evenRowBackground -
Parameters:
  foreground -



AlternateRowHighlighter
public AlternateRowHighlighter(Color oddRowBackground, Color evenRowBackground, Color foreground, boolean immutable)(Code)




Method Detail
computeUnselectedBackground
protected Color computeUnselectedBackground(Component renderer, ComponentAdapter adapter)(Code)



getEvenRowBackground
public Color getEvenRowBackground()(Code)
Returns the background color for even rows, or null if the background color of the cell renderer should be left unchanged for even rows. the background color for even rows, or null if the background colorof the cell renderer should be left unchanged for even rows



getLinesPerGroup
public int getLinesPerGroup()(Code)



getOddRowBackground
public Color getOddRowBackground()(Code)
Returns the background color for odd rows, or null if the background color of the cell renderer should be left unchanged for odd rows. the background color for odd rows, or null if the background colorof the cell renderer should be left unchanged for odd rows



isOddRow
protected boolean isOddRow(ComponentAdapter adapter)(Code)

Parameters:
  adapter - true if the adapter's row should be colored with the oddRowBackground,false is not



setEvenRowBackground
public void setEvenRowBackground(Color color)(Code)
Sets the background color for even rows to the specified color. If null is specified, the background color for even rows is left unchanged in the renderer.
Parameters:
  color - the background color for even rows, or null if the backgroundcolor of the cell renderer should be left unchanged for even rows



setLinesPerGroup
public void setLinesPerGroup(int linesPerGroup)(Code)



setOddRowBackground
public void setOddRowBackground(Color color)(Code)
Sets the background color for odd rows to the specified color. If null is specified, the background color for odd rows is left unchanged in the renderer
Parameters:
  color - the background color for odd rows, or null if the backgroundcolor of the cell renderer should be left unchanged for odd rows



Fields inherited from org.jdesktop.swingx.decorator.Highlighter
protected transient ChangeEvent changeEvent(Code)(Java Doc)
final protected boolean immutable(Code)(Java Doc)
final public static Highlighter ledgerBackground(Code)(Java Doc)
protected EventListenerList listenerList(Code)(Java Doc)
final public static Highlighter notePadBackground(Code)(Java Doc)

Methods inherited from org.jdesktop.swingx.decorator.Highlighter
public void addChangeListener(ChangeListener l)(Code)(Java Doc)
protected void applyBackground(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected void applyForeground(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected Color computeBackground(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected Color computeForeground(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected Color computeSelectedBackground(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected Color computeSelectedBackground(Color seed)(Code)(Java Doc)
protected Color computeSelectedForeground(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected Color computeSelectedForeground(Color seed)(Code)(Java Doc)
protected Color computeUnselectedBackground(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected Color computeUnselectedForeground(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected Component doHighlight(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
protected void fireStateChanged()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
public ChangeListener[] getChangeListeners()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public Color getSelectedBackground()(Code)(Java Doc)
public Color getSelectedForeground()(Code)(Java Doc)
public Component highlight(Component renderer, ComponentAdapter adapter)(Code)(Java Doc)
public boolean isImmutable()(Code)(Java Doc)
public void removeChangeListener(ChangeListener l)(Code)(Java Doc)
public void setBackground(Color color)(Code)(Java Doc)
public void setForeground(Color color)(Code)(Java Doc)
public void setSelectedBackground(Color color)(Code)(Java Doc)
public void setSelectedForeground(Color color)(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.