|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.AbstractFeature
com.sdm.quasar.client.showcase.jsf.dialogs.dialogtypes.ComplexDialogCore
For more complex dialog it's better to separate core and presentation. This is the dialog core for such an example. For dataBinding we use a DataManger and for actionBinding we use this dialog core as a bean.
| Field Summary | |
static java.lang.String |
DATA_ARTICLE_REGISTRY
|
static java.lang.String |
DATA_ARTICLE_SELECTED
|
static java.lang.String |
DATA_ARTICLE_SELECTED_COMMENTS
|
static java.lang.String |
DATA_ARTICLE_SELECTED_NAME
|
static java.lang.String |
DATA_MODEL_ARTICLE_LIST
|
static java.lang.String |
DATA_NEW_COMMENT
|
static java.lang.String |
DATA_ROW_CLASSES
the css class for the background color of the table rows |
| Constructor Summary | |
ComplexDialogCore()
|
|
| Method Summary | |
void |
dispose()
Called when the feature or dialog is disposed. |
java.lang.String |
highLightRow()
Defines the CSS class for the row. |
void |
init()
Called when the feature is initializing. |
boolean |
isCommentDisabled()
Decides, if the button for saving a comment is disabled or not. |
void |
saveComment()
Adds a comment to the selected article. |
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 |
public static final java.lang.String DATA_ARTICLE_REGISTRY
public static final java.lang.String DATA_MODEL_ARTICLE_LIST
public static final java.lang.String DATA_ARTICLE_SELECTED
public static final java.lang.String DATA_ARTICLE_SELECTED_NAME
public static final java.lang.String DATA_ARTICLE_SELECTED_COMMENTS
public static final java.lang.String DATA_NEW_COMMENT
public static final java.lang.String DATA_ROW_CLASSES
| Constructor Detail |
public ComplexDialogCore()
| Method Detail |
public void init()
AbstractFeatureDialogControl 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.
init in class AbstractFeature
public void dispose()
throws DisposeException
AbstractFeature
dispose in class AbstractFeatureDisposeExceptionpublic void selectArticle()
public void saveComment()
public boolean isCommentDisabled()
public java.lang.String highLightRow()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||