com.jgoodies.bookfinder.model
Class SearchResultModel

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.jgoodies.bookfinder.model.SearchResultModel
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Serializable

public final class SearchResultModel
extends com.jgoodies.binding.beans.Model

References all application-level data or sub models and provides convenience accessors.

Version:
$Revision: 1.5 $
Author:
Karsten Lentzsch
See Also:
Serialized Form

Field Summary
static String PROPERTYNAME_ALL_BOOKS
           
static String PROPERTYNAME_FILTERED_BOOKS
           
static String PROPERTYNAME_MESSAGE
           
 
Method Summary
 int getBooksCount()
          Returns the number of all books.
 ListModel getFilteredBooks()
          Returns the ListModel of books accepted by the filter.
 int getFilteredBooksCount()
          Returns the number of books accepted by the filter.
 String getMessage()
          Returns the current user message text.
 boolean hasBooks()
          Checks and answers if we have books.
 boolean hasMessage()
          Checks and answers if we have a message.
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTYNAME_MESSAGE

public static final String PROPERTYNAME_MESSAGE
See Also:
Constant Field Values

PROPERTYNAME_ALL_BOOKS

public static final String PROPERTYNAME_ALL_BOOKS
See Also:
Constant Field Values

PROPERTYNAME_FILTERED_BOOKS

public static final String PROPERTYNAME_FILTERED_BOOKS
See Also:
Constant Field Values
Method Detail

getBooksCount

public int getBooksCount()
Returns the number of all books.


hasBooks

public boolean hasBooks()
Checks and answers if we have books.


getFilteredBooksCount

public int getFilteredBooksCount()
Returns the number of books accepted by the filter.

Returns:
the number of books accepted by the filter.

getFilteredBooks

public ListModel getFilteredBooks()
Returns the ListModel of books accepted by the filter.

TODO: Return an unmodifiable ListModel

Returns:
the ListModel of books accepted by the filter.

getMessage

public String getMessage()
Returns the current user message text. Such messages are available if we cannot connect

Returns:
the text of the current user message.

hasMessage

public boolean hasMessage()
Checks and answers if we have a message.



Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.