com.sdm.quasar.client.showcase.jsf.dialogs.binding.data.manager
Class DataBindingManagerResultDialog

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

public class DataBindingManagerResultDialog
extends AbstractFeature

This dialog demonstrates dataBinding via Quasar dataManager

Author:
Erika Buchholz

Field Summary
static java.lang.String DATA_ARTICLE_CHANGED
           
static java.lang.String DATA_ARTICLE_CHANGED_CATEGORY
           
static java.lang.String DATA_ARTICLE_CHANGED_NAME
           
static java.lang.String DATA_ARTICLE_LIST
           
static java.lang.String DATA_ARTICLE_REGISTRY
           
static java.lang.String DATA_ARTICLE_SELECTED
           
static java.lang.String DATA_ARTICLE_SELECTED_AUTHOR
           
static java.lang.String DATA_ARTICLE_SELECTED_CATEGORY
           
static java.lang.String DATA_ARTICLE_SELECTED_NAME
           
static java.lang.String DATA_DESCRIPTION
          the text which describes what is done (editing or inserting an article)
static java.lang.String DATA_MODEL_ARTICLE_LIST
           
static java.lang.String DATA_ROW_CLASSES
          the css class for the background color of the table rows
 
Constructor Summary
DataBindingManagerResultDialog()
           
 
Method Summary
 void dispose()
          Called when the feature or dialog is disposed.
 void goBack()
          Returns to the article list dialog.
 java.lang.String highLightRow()
          Defines the CSS class for the row.
protected  void init()
          Called when the feature is initializing.
 boolean isArticleChanged()
          Defines if the message, that the selected article has been changed or that a new article has been added, is shown or not.
 void newArticle()
          Sets back all the base nodes to display an empty form.
 void saveArticle()
          Saves changes if an article has been edited or adds a new article to the articles list
 void selectArticle()
          Selects an article by highlighting the row.
 
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
 

Field Detail

DATA_ARTICLE_REGISTRY

public static final java.lang.String DATA_ARTICLE_REGISTRY
See Also:
Constant Field Values

DATA_ARTICLE_LIST

public static final java.lang.String DATA_ARTICLE_LIST
See Also:
Constant Field Values

DATA_MODEL_ARTICLE_LIST

public static final java.lang.String DATA_MODEL_ARTICLE_LIST
See Also:
Constant Field Values

DATA_ARTICLE_SELECTED

public static final java.lang.String DATA_ARTICLE_SELECTED
See Also:
Constant Field Values

DATA_ARTICLE_SELECTED_NAME

public static final java.lang.String DATA_ARTICLE_SELECTED_NAME
See Also:
Constant Field Values

DATA_ARTICLE_SELECTED_CATEGORY

public static final java.lang.String DATA_ARTICLE_SELECTED_CATEGORY
See Also:
Constant Field Values

DATA_ARTICLE_SELECTED_AUTHOR

public static final java.lang.String DATA_ARTICLE_SELECTED_AUTHOR
See Also:
Constant Field Values

DATA_ARTICLE_CHANGED

public static final java.lang.String DATA_ARTICLE_CHANGED
See Also:
Constant Field Values

DATA_ARTICLE_CHANGED_NAME

public static final java.lang.String DATA_ARTICLE_CHANGED_NAME
See Also:
Constant Field Values

DATA_ARTICLE_CHANGED_CATEGORY

public static final java.lang.String DATA_ARTICLE_CHANGED_CATEGORY
See Also:
Constant Field Values

DATA_ROW_CLASSES

public static final java.lang.String DATA_ROW_CLASSES
the css class for the background color of the table rows

See Also:
Constant Field Values

DATA_DESCRIPTION

public static final java.lang.String DATA_DESCRIPTION
the text which describes what is done (editing or inserting an article)

See Also:
Constant Field Values
Constructor Detail

DataBindingManagerResultDialog

public DataBindingManagerResultDialog()
Method Detail

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

goBack

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


selectArticle

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


newArticle

public void newArticle()
Sets back all the base nodes to display an empty form. Hides the area where former changes have been displayed.


saveArticle

public void saveArticle()
Saves changes if an article has been edited or adds a new article to the articles list


isArticleChanged

public boolean isArticleChanged()
Defines if the message, that the selected article has been changed or that a new article has been added, is shown or not.

Returns:
true if the article was changed

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