com.sdm.quasar.client.showcase.jsf.dialogs.binding.data.bean
Class DataBindingBeanDialog

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.showcase.jsf.dialogs.binding.data.bean.DataBindingBeanDialog
All Implemented Interfaces:
Feature, SystemInfoProvider

public class DataBindingBeanDialog
extends AbstractFeature

This dialog is the model for the demonstration of dataBinding, actionBinding and stateBinding.

Author:
Carsten Lucke, Erika Buchholz

Constructor Summary
DataBindingBeanDialog()
           
 
Method Summary
 void clearFilter()
          Clears the filter.
 void dispose()
          Called when the feature or dialog is disposed.
 DataModel getArticleList()
           
 java.lang.String getFilter()
           
 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 setFilter(java.lang.String filter)
           
 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

DataBindingBeanDialog

public DataBindingBeanDialog()
Method Detail

getFilter

public java.lang.String getFilter()

setFilter

public void setFilter(java.lang.String filter)

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

clearFilter

public void clearFilter()
Clears the filter.


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