com.sdm.quasar.client.showcase.jsf.dialogs.embedding.dynamic
Class EmbeddedListDialog

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.showcase.jsf.dialogs.embedding.dynamic.EmbeddedListDialog
All Implemented Interfaces:
EmbeddedDialogService, Feature, Service, SystemInfoProvider

public class EmbeddedListDialog
extends AbstractFeature
implements EmbeddedDialogService

This dialog demonstrates dynamic dialog embedding. It's a sub dialog of the DynamicEmbeddingDialog. It contains a list of articles, which may be filtered by receiving a filter string from the EmbeddedDialogService.

Author:
Erika Buchholz, sd&m AG

Constructor Summary
EmbeddedListDialog()
           
 
Method Summary
 void dispose()
          Called when the feature or dialog is disposed.
 DataModel getArticleList()
           
 java.lang.String getRowClasses()
           
 java.lang.String highLightRow()
          Defines the CSS class for the row.
 void init()
          Called when the feature is initializing.
 void selectArticle()
          Selects an article by highlighting the row.
 void setNewFilter(java.lang.String filter)
          Sets a filter for filtering the articles list.
 void setRowClasses(java.lang.String rowClasses)
           
 
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

EmbeddedListDialog

public EmbeddedListDialog()
Method Detail

getRowClasses

public java.lang.String getRowClasses()

setRowClasses

public void setRowClasses(java.lang.String rowClasses)

getArticleList

public DataModel getArticleList()

init

public 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()
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

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".


setNewFilter

public void setNewFilter(java.lang.String filter)
Description copied from interface: EmbeddedDialogService
Sets a filter for filtering the articles list.

Specified by:
setNewFilter in interface EmbeddedDialogService
Parameters:
filter - the string for filtering the articles list
See Also:
EmbeddedDialogService.setNewFilter(java.lang.String)