public abstract class FacesDialogView
extends no.esito.jvine.view.AbstractDialogView
| Constructor and Description |
|---|
FacesDialogView(DialogConstant dialog,
Class dialogObjectEnum)
Create a new view for the given dialog.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMenu(Menu menu)
Add the given menu to the dialog menu.
|
void |
addMenus(List<Menu> menus)
Add the given menus to the dialog menu.
|
String |
createBeanRef()
Creates a bean reference for this dialog.
|
String |
createBeanRef(String beanName)
Creates a bean reference that is a concatenation of the
beanName and the dialogIntanceNumber. |
protected void |
dispatchEvent(DialogObjectConstant trigger,
Object event,
String method)
Dispatch the event without a listRow.
|
void |
dispatchEvent(ListRow listRow,
DialogObjectConstant trigger,
Object event,
String method)
Overridden just to add local package visibility.
|
protected void |
focus(DialogObjectConstant target) |
FacesApplicationView |
getApplicationView()
Override the default implementation, returning a FacesApplicationView.
|
protected int |
getCurrentNotebookIndex(DialogObjectConstant notebook)
Get the current page index for the given Notebook.
|
DialogObjectConstant |
getDialogObjectFromInternalName(String name)
Get the DialogObjectConstant for the dialog object with the given internal name (JSF ID).
|
DialogObjectConstant |
getDialogObjectFromName(String name)
Get the DialogObjectConstant for the dialog object with the given name (from the dialog model).
|
protected javax.faces.component.UIComponent |
getFacesComponent(javax.faces.component.UIComponent comp,
String key)
Return the JSF component with the given id.
|
protected String |
getFacesId(DialogObjectConstant target)
Gets the string used by JSF to identify the component.
|
protected Set<DialogObjectConstant> |
getIgnoreValuechangeFields() |
protected org.icefaces.ace.model.tree.NodeStateMap |
getNodeStateMap(DialogObjectConstant diaConst)
Get the node state map for the given dialog constant.
|
protected int |
getOldNotebookIndex(DialogObjectConstant notebook)
Get the old page index for the given Notebook.
|
protected org.icefaces.ace.model.table.RowStateMap |
getRowStateMap(no.g9.os.RoleConstant role)
Get the row state map for the given role.
|
protected boolean |
handleListSelection(no.g9.os.RoleConstant listRole,
boolean selected,
int rowNo,
ListRow emptyRow)
Overridden just to add local package visibility.
|
void |
performAction(no.g9.support.ActionType action,
DialogObjectConstant target) |
protected void |
setCurrentNotebookIndex(DialogObjectConstant notebook,
int index)
Set the index of the current Notebook page to show.
|
protected List<Menu> |
setDialogInstanceNumberOnMenus(List<Menu> menus)
Sets the dialog instance number on the menus.
|
protected void |
setListSelectionRowNum(int rowNum)
Overridden just to add local package visibility.
|
protected void |
setNodeStateMap(DialogObjectConstant diaConst,
org.icefaces.ace.model.tree.NodeStateMap nodeStateMap)
Set the node state map for the given dialog constant.
|
protected void |
setOldNotebookIndex(DialogObjectConstant notebook,
int index)
Set the index of the old (previous) Notebook page shown.
|
protected void |
setOpen(boolean isOpen)
Overridden just to add local package visibility.
|
void |
setProperty(DialogObjectConstant target,
String key,
Object value) |
protected void |
setRowStateMap(no.g9.os.RoleConstant role,
org.icefaces.ace.model.table.RowStateMap rowStateMap)
Set the row state map for the given role.
|
void |
setValue(DialogObjectConstant target,
String value)
Deprecated.
use setProperty with "value" as key instead.
|
protected void |
updateRowState(no.g9.os.RoleConstant role)
Update the row states for the given role.
|
addRoleField, addRoleList, addTreeModel, canDispatchEvents, clearDialog, clearObject, convertToView, disable, dispatchEvent, enable, getCurrentNotebookPage, getDefaultButton, getDialog, getDialogController, getDialogInstance, getDialogInstanceNumber, getEffect, getEffectBean, getEffectBeanId, getFieldValue, getMandatory, getMessageBundleName, getRoleFields, getTitle, getViewModel, getWidgetProperty, guiInvoke, hide, initView, isEditable, isEnabled, isMandatory, isModal, isOpen, isShown, isShown, setAllFieldData, setApplicationView, setCurrentNotebookPage, setDefaultButton, setDialogInstanceNumber, setDialogTitle, setEditable, setEffect, setEffectBeanId, setFieldValue, setMandatory, setModal, setShown, setWidgetProperty, show, triggerWindowEvent, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDialogObjectConstants, initpublic FacesDialogView(DialogConstant dialog, Class dialogObjectEnum)
dialog - the dialog which owns this view.dialogObjectEnum - the enum for all dialog objects in this dialogpublic void setProperty(DialogObjectConstant target, String key, Object value)
protected javax.faces.component.UIComponent getFacesComponent(javax.faces.component.UIComponent comp,
String key)
comp - where to start looking for the component, or null.key - the JSF id of the componentnull if not found.getFacesId(DialogObjectConstant)protected String getFacesId(DialogObjectConstant target)
target - the constant denoting the componentprotected org.icefaces.ace.model.table.RowStateMap getRowStateMap(no.g9.os.RoleConstant role)
role - the role to get the row state map forprotected void setRowStateMap(no.g9.os.RoleConstant role,
org.icefaces.ace.model.table.RowStateMap rowStateMap)
role - the role to set the row state map forrowStateMap - the rowStateMap to setprotected void updateRowState(no.g9.os.RoleConstant role)
role - the owning role of the tableprotected org.icefaces.ace.model.tree.NodeStateMap getNodeStateMap(DialogObjectConstant diaConst)
diaConst - the dialog constant to get the node state map forprotected void setNodeStateMap(DialogObjectConstant diaConst, org.icefaces.ace.model.tree.NodeStateMap nodeStateMap)
diaConst - the dialog constant to set the node state map fornodeStateMap - the nodeStateMap to set@Deprecated public void setValue(DialogObjectConstant target, String value)
target - the dialog object represented by the JSF component.value - the new value to set.protected void focus(DialogObjectConstant target)
focus in class no.esito.jvine.view.AbstractDialogViewprotected Set<DialogObjectConstant> getIgnoreValuechangeFields()
protected void addMenu(Menu menu)
menu - - the menu to addprotected List<Menu> setDialogInstanceNumberOnMenus(List<Menu> menus)
menus - the list of menuspublic void addMenus(List<Menu> menus)
menus - - the menus to addprotected void setOpen(boolean isOpen)
setOpen in class no.esito.jvine.view.AbstractDialogViewprotected boolean handleListSelection(no.g9.os.RoleConstant listRole,
boolean selected,
int rowNo,
ListRow emptyRow)
handleListSelection in class no.esito.jvine.view.AbstractDialogViewprotected void setListSelectionRowNum(int rowNum)
setListSelectionRowNum in class no.esito.jvine.view.AbstractDialogViewprotected void dispatchEvent(DialogObjectConstant trigger, Object event, String method)
trigger - the cause of the event.event - the type of event.method - the event method name.public void dispatchEvent(ListRow listRow, DialogObjectConstant trigger, Object event, String method)
dispatchEvent in interface DialogViewdispatchEvent in class no.esito.jvine.view.AbstractDialogViewpublic FacesApplicationView getApplicationView()
getApplicationView in class no.esito.jvine.view.AbstractDialogViewpublic void performAction(no.g9.support.ActionType action,
DialogObjectConstant target)
performAction in interface DialogViewperformAction in class no.esito.jvine.view.AbstractDialogViewpublic String createBeanRef(String beanName)
beanName and the dialogIntanceNumber.beanName - the bean namepublic String createBeanRef()
dialogIntanceNumber.protected void setCurrentNotebookIndex(DialogObjectConstant notebook, int index)
notebook - the Notebook.index - the new current page index for the Notebook.protected int getCurrentNotebookIndex(DialogObjectConstant notebook)
notebook - the Notebook in question.protected void setOldNotebookIndex(DialogObjectConstant notebook, int index)
notebook - the Notebook.index - the new old page index for the Notebook.protected int getOldNotebookIndex(DialogObjectConstant notebook)
notebook - the Notebook in question.public DialogObjectConstant getDialogObjectFromName(String name)
name - the model name of the dialog objectpublic DialogObjectConstant getDialogObjectFromInternalName(String name)
name - the internal name of the dialog objectCopyright © 2006–2017 Esito AS. All rights reserved.