com.sdm.quasar.client.showcase.jsf.dialogs.webproblems.bookmarks
Class BookmarksDialog

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.showcase.jsf.dialogs.webproblems.bookmarks.BookmarksDialog
All Implemented Interfaces:
Feature, SystemInfoProvider

public class BookmarksDialog
extends AbstractFeature

This dialog explains how bookmarking works with the Quasar web client and leads to another dialog which is the example for bookmarking.

Author:
Erika Buchholz

Constructor Summary
BookmarksDialog()
           
 
Method Summary
 void dispose()
          Called when the feature or dialog is disposed.
 DataModel getArticleList()
           
 java.lang.String getRowClasses()
           
 Article getSelectedArticle()
           
 java.lang.String highLightRow()
          Defines the CSS class for the row.
protected  void init()
          Called when the feature is initializing.
 boolean isDetailsDisabled()
          Defines if the details button will be disabled or not.
 void selectArticle()
          Selects an article by highlighting the row.
 void setRowClasses(java.lang.String rowClasses)
           
 void viewDetails()
          Switches to the detail dialog of a selected article.
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized, prepare, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarksDialog

public BookmarksDialog()
Method Detail

getRowClasses

public java.lang.String getRowClasses()

setRowClasses

public void setRowClasses(java.lang.String rowClasses)

getSelectedArticle

public Article getSelectedArticle()

getArticleList

public DataModel getArticleList()

init

protected void init()
Description copied from class: AbstractFeature
Called when the feature is initializing. This is normally done, when the feature is connected to the lifecycle of the DialogControl installed to. To access the DialogControl use the AbstractFeature.getDialogControl() method.

Override this method to perform some action on initialization e.g. register public services.

Specified by:
init in class AbstractFeature

dispose

public void dispose()
             throws DisposeException
Description copied from class: AbstractFeature
Called when the feature or dialog is disposed. Override this method to clean up resources and free memory when disposing.

Specified by:
dispose in class AbstractFeature
Throws:
DisposeException

viewDetails

public void viewDetails()
Switches to the detail dialog of a selected article.


isDetailsDisabled

public boolean isDetailsDisabled()
Defines if the details button will be disabled or not. Depends on if an article is selected or not.


selectArticle

public void selectArticle()
Selects an article by highlighting the row.


highLightRow

public java.lang.String highLightRow()
Defines the CSS class for the row. Normal values are "even" and "odd", if the row was selected by the user it's "selected".