com.sdm.quasar.client.showcase.jsf.dialogs.dialogconcept.singlemultiton
Class SingletonMultitonDialog

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.showcase.jsf.dialogs.dialogconcept.singlemultiton.SingletonMultitonDialog
All Implemented Interfaces:
Feature, SystemInfoProvider

public class SingletonMultitonDialog
extends AbstractFeature

This dialog is the model for the demonstration of Singleton and Multiton Dialogs.

Author:
Erika Buchholz

Constructor Summary
SingletonMultitonDialog()
           
 
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 isOrdersDisabled()
          Defines if the order button will be disabled or not.
 void orderArticle()
          Adds an article to the orders list.
 void selectArticle()
          Selects an article by highlighting the row.
 void setFilter(java.lang.String filter)
           
 void setRowClasses(java.lang.String rowClasses)
           
 void viewOrders()
          Changes to the orders dialog.
 
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

SingletonMultitonDialog

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


viewOrders

public void viewOrders()
Changes to the orders dialog.


orderArticle

public void orderArticle()
Adds an article to the orders list.


isOrdersDisabled

public boolean isOrdersDisabled()
Defines if the order 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.