|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.beans.Model
com.jgoodies.bookfinder.model.MainModel
public final class MainModel
References all application-level data or sub models and provides convenience accessors.
SearchModel
,
SearchResultModel
,
DetailsModel
,
WebService
,
BookFilter
,
Serialized FormField Summary | |
---|---|
static String |
ACTION_EXIT
|
static String |
ACTION_OPEN_ABOUT_DIALOG
|
static String |
ACTION_OPEN_FILTER_DIALOG
|
static String |
ACTION_OPEN_HELP_CONTENTS
|
static String |
ACTION_OPEN_PREFERENCES
|
static String |
ACTION_START_TOUR
|
static String |
PROPERTYNAME_ACTIVITY
|
Constructor Summary | |
---|---|
MainModel()
Constructs a MainModel . |
Method Summary | |
---|---|
void |
addBooks(List moreBooks)
Adds books to the existing list of all books. |
boolean |
applicationExitAllowed(EventObject event)
|
void |
applicationExiting()
Stores this model's state if the application is closing. |
void |
exit(ActionEvent e)
|
AmazonAccessor |
getAmazonAccessor()
|
com.jgoodies.uif.action.ToggleAction |
getAnimateHeaderAction()
|
DetailsModel |
getDetailsModel()
Returns the sub model that provides the details models and actions. |
BookFilter |
getFilter()
Returns the current filter that is used to filter elements from the raw list to build up the filtered details list. |
com.jgoodies.uif.action.ToggleAction |
getListModeAction()
|
SearchModel |
getSearchModel()
Returns the submodel that provides the search models and actions. |
SearchResultModel |
getSearchResultModel()
Returns the submodel that provides the search result models. |
com.jgoodies.binding.list.SelectionInList |
getSelectionInFilteredBook()
Returns a ListModel of filtered books with a selection. |
com.jgoodies.uif.action.ToggleAction |
getShowDetailsAction()
|
com.jgoodies.uif.action.ToggleAction |
getSummaryModeAction()
|
com.jgoodies.uif.action.ToggleAction |
getTableModeAction()
|
UISettingsModel |
getUISettingsModel()
Returns the presentation settings that provides bound Bean properties for view related state. |
WebService |
getWebService()
Returns the description of the web service. |
void |
openAboutDialog(ActionEvent e)
Opens the about dialog. |
void |
openFilterDialog(ActionEvent e)
Opens the filter dialog. |
void |
openHelpContents(ActionEvent e)
|
void |
openPreferences(ActionEvent e)
Opens the preferences dialog. |
void |
reset()
Clears the books list and resets the message. |
void |
setActivity(String newActivity)
|
void |
setDisplayModeActionsEnabled(boolean b)
Enables or disables the display mode actions. |
void |
setMessage(String message)
Sets the given message in the search result model. |
void |
setSearchContentsBlank()
Sets author and keywords to blank strings. |
void |
showActivity(String prefix,
String suffix)
Shows a message. |
void |
showDetails()
Makes the details panel visible. |
void |
startTour(ActionEvent e)
Starts the integrated tour. |
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 |
---|
public static final String PROPERTYNAME_ACTIVITY
public static final String ACTION_OPEN_ABOUT_DIALOG
public static final String ACTION_OPEN_FILTER_DIALOG
public static final String ACTION_OPEN_PREFERENCES
public static final String ACTION_EXIT
public static final String ACTION_OPEN_HELP_CONTENTS
public static final String ACTION_START_TOUR
Constructor Detail |
---|
public MainModel()
MainModel
.
Method Detail |
---|
public SearchModel getSearchModel()
public SearchResultModel getSearchResultModel()
public DetailsModel getDetailsModel()
public UISettingsModel getUISettingsModel()
public WebService getWebService()
public AmazonAccessor getAmazonAccessor()
public BookFilter getFilter()
public com.jgoodies.binding.list.SelectionInList getSelectionInFilteredBook()
public void applicationExiting()
applicationExiting
in interface com.jgoodies.uif.application.ExitListener
public boolean applicationExitAllowed(EventObject event)
applicationExitAllowed
in interface com.jgoodies.uif.application.ExitListener
public com.jgoodies.uif.action.ToggleAction getAnimateHeaderAction()
public com.jgoodies.uif.action.ToggleAction getSummaryModeAction()
public com.jgoodies.uif.action.ToggleAction getListModeAction()
public com.jgoodies.uif.action.ToggleAction getTableModeAction()
public com.jgoodies.uif.action.ToggleAction getShowDetailsAction()
@Action public void openAboutDialog(ActionEvent e)
@Action public void openFilterDialog(ActionEvent e)
@Action public void openPreferences(ActionEvent e)
@Action public void exit(ActionEvent e)
@Action public void openHelpContents(ActionEvent e)
@Action public void startTour(ActionEvent e)
public void reset()
public void setDisplayModeActionsEnabled(boolean b)
public void setSearchContentsBlank()
public void setMessage(String message)
message
- the message to be setpublic void showActivity(String prefix, String suffix)
public void showDetails()
public void addBooks(List moreBooks)
moreBooks
- the list of books to addpublic void setActivity(String newActivity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |