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

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

public class BookmarksDetailDialog
extends AbstractFeature

This dialog demonstrates bookmarking in the Quasar Web Client. The bookmark request needs some parameters of the article to show the details of that article.

Author:
Erika Buchholz

Constructor Summary
BookmarksDetailDialog()
           
 
Method Summary
protected  void activate()
          Called when the dialog is activated.
 void dispose()
          Called when the feature or dialog is disposed.
 Article getArticle()
           
 java.lang.String getComment()
           
 java.util.List getComments()
           
 java.util.Properties getRequestParameters()
           
 void goBack()
          Returns to the article list dialog.
protected  void init()
          Called when the feature is initializing.
 boolean isCommentDisabled()
          Disables the send-comment-button when no article is displayed
 void saveComment()
          Adds the new comment to the list of existing comments of one article and empties the text area afterwards.
 void setComment(java.lang.String comment)
           
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
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

BookmarksDetailDialog

public BookmarksDetailDialog()
Method Detail

getArticle

public Article getArticle()

getComments

public java.util.List getComments()

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

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

activate

protected void activate()
Description copied from class: AbstractFeature
Called when the dialog is activated. Override this method if you want to perform some action on LifeCycle.activate().

The default implementation in AbstractFeature does nothing.

Overrides:
activate 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

getRequestParameters

public java.util.Properties getRequestParameters()

saveComment

public void saveComment()
Adds the new comment to the list of existing comments of one article and empties the text area afterwards.


isCommentDisabled

public boolean isCommentDisabled()
Disables the send-comment-button when no article is displayed

Returns:
true when no article is displayed

goBack

public void goBack()
Returns to the article list dialog.