Java Doc for Album.java in  » Swing-Library » jgoodies-data-binding » com » jgoodies » binding » tutorial » 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 » jgoodies data binding » com.jgoodies.binding.tutorial 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jgoodies.binding.beans.Model
      com.jgoodies.binding.tutorial.Album

Album
public class Album extends Model (Code)
Describes a musical Album and provides bound bean properties. This class is used throughout the different tutorial examples.

This class has not been marked as final although it is not intended to be subclassed. However some persistency frameworks (like Hibernate) can optimize the data transfer and locking for extensible classes only.
author:
   Karsten Lentzsch
version:
   $Revision: 1.8 $



Field Summary
final public static  AlbumALBUM1
     An example Album.
final public static  AlbumALBUM2
     An example Album.
final public static  AlbumALBUM3
     An example Album.
final public static  AlbumALBUM4
     An example Album.
final public static  List<Album>ALBUMS
     A List of Albums made of the examples 1 to 4.
final public static  StringPROPERTYNAME_ARTIST
    
final public static  StringPROPERTYNAME_CLASSICAL
    
final public static  StringPROPERTYNAME_COMPOSER
    
final public static  StringPROPERTYNAME_TITLE
    

Constructor Summary
public  Album()
     Constructs an empty Album: empty title and artist, not classical and no composer set.

Method Summary
public  StringgetArtist()
     Returns this album's artist, for example "Albert Ayler" or "Berliner Philharmoniker".
public  StringgetComposer()
     Returns this album's composer - if any, for example "Richard Wagner".
public  StringgetTitle()
     Returns this album's title, for example "A Love Supreme", or "Symphony No.
public  booleanisClassical()
     Answers whether this is a classical album or not.
public  voidsetArtist(String artist)
     Sets a new artist and notifies observers if the artist changed.
public  voidsetClassical(boolean classical)
     Sets this album's classical property and notifies observers about changes.
public  voidsetComposer(String composer)
     Sets this album's composer and notifies observers if it has changed.
public  voidsetTitle(String title)
     Sets this album's title and notifies observers if the title changed.
public  StringtoString()
     Returns a string representation of this album that contains the property values in a single text line.
public  StringtoWrappedString()
     Returns a string representation of this album that contains the property values.

Field Detail
ALBUM1
final public static Album ALBUM1(Code)
An example Album.



ALBUM2
final public static Album ALBUM2(Code)
An example Album.



ALBUM3
final public static Album ALBUM3(Code)
An example Album.



ALBUM4
final public static Album ALBUM4(Code)
An example Album.



ALBUMS
final public static List<Album> ALBUMS(Code)
A List of Albums made of the examples 1 to 4.



PROPERTYNAME_ARTIST
final public static String PROPERTYNAME_ARTIST(Code)



PROPERTYNAME_CLASSICAL
final public static String PROPERTYNAME_CLASSICAL(Code)



PROPERTYNAME_COMPOSER
final public static String PROPERTYNAME_COMPOSER(Code)



PROPERTYNAME_TITLE
final public static String PROPERTYNAME_TITLE(Code)




Constructor Detail
Album
public Album()(Code)
Constructs an empty Album: empty title and artist, not classical and no composer set.




Method Detail
getArtist
public String getArtist()(Code)
Returns this album's artist, for example "Albert Ayler" or "Berliner Philharmoniker". this album's artist.



getComposer
public String getComposer()(Code)
Returns this album's composer - if any, for example "Richard Wagner". A composer is available if and only if this is a classical album. the composer of this album's music.
See Also:   Album.isClassical



getTitle
public String getTitle()(Code)
Returns this album's title, for example "A Love Supreme", or "Symphony No. 5". this album's title.



isClassical
public boolean isClassical()(Code)
Answers whether this is a classical album or not. true if this album is classical, false if not



setArtist
public void setArtist(String artist)(Code)
Sets a new artist and notifies observers if the artist changed.
Parameters:
  artist - The artist to set.



setClassical
public void setClassical(boolean classical)(Code)
Sets this album's classical property and notifies observers about changes. If not classical the composer is set to null.
Parameters:
  classical - true to indicate that this album is classical



setComposer
public void setComposer(String composer)(Code)
Sets this album's composer and notifies observers if it has changed. A composer shall be set only if this is a classical album.
Parameters:
  composer - The composer to set.
See Also:   Album.isClassical



setTitle
public void setTitle(String title)(Code)
Sets this album's title and notifies observers if the title changed.
Parameters:
  title - The title to set.



toString
public String toString()(Code)
Returns a string representation of this album that contains the property values in a single text line. a string representation of this album



toWrappedString
public String toWrappedString()(Code)
Returns a string representation of this album that contains the property values. a string representation of this album



Methods inherited from com.jgoodies.binding.beans.Model
final public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
final public synchronized void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
final public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc)
final public synchronized void addVetoableChangeListener(String propertyName, VetoableChangeListener listener)(Code)(Java Doc)
final protected boolean equals(Object o1, Object o2)(Code)(Java Doc)
final protected void fireIndexedPropertyChange(String propertyName, int index, Object oldValue, Object newValue)(Code)(Java Doc)
final protected void fireIndexedPropertyChange(String propertyName, int index, int oldValue, int newValue)(Code)(Java Doc)
final protected void fireIndexedPropertyChange(String propertyName, int index, boolean oldValue, boolean newValue)(Code)(Java Doc)
final protected void fireMultiplePropertiesChanged()(Code)(Java Doc)
final protected void firePropertyChange(PropertyChangeEvent event)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, Object oldValue, Object newValue, boolean checkIdentity)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, double oldValue, double newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, float oldValue, float newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc)
final protected void firePropertyChange(String propertyName, long oldValue, long newValue)(Code)(Java Doc)
final protected void fireVetoableChange(PropertyChangeEvent event) throws PropertyVetoException(Code)(Java Doc)
final protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException(Code)(Java Doc)
final protected void fireVetoableChange(String propertyName, boolean oldValue, boolean newValue) throws PropertyVetoException(Code)(Java Doc)
final protected void fireVetoableChange(String propertyName, double oldValue, double newValue) throws PropertyVetoException(Code)(Java Doc)
final protected void fireVetoableChange(String propertyName, int oldValue, int newValue) throws PropertyVetoException(Code)(Java Doc)
final protected void fireVetoableChange(String propertyName, float oldValue, float newValue) throws PropertyVetoException(Code)(Java Doc)
final protected void fireVetoableChange(String propertyName, long oldValue, long newValue) throws PropertyVetoException(Code)(Java Doc)
final public synchronized PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc)
final public synchronized PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)(Java Doc)
final public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc)
final public synchronized VetoableChangeListener[] getVetoableChangeListeners(String propertyName)(Code)(Java Doc)
final public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
final public synchronized void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
final public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc)
final public synchronized void removeVetoableChangeListener(String propertyName, VetoableChangeListener listener)(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.