public abstract class FacesApplicationBean extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
FacesApplicationBean()
Note that this constructor should not normally be used, it is only to
satisfy the Serializable interface of its subclasses.
|
|
FacesApplicationBean(String applicationBeanName,
FacesApplicationView applicationView)
Create a new application backing bean, and setting the references
between the bean and the application view.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String[] |
buildDialogBoxIncludePaths()
Build the JSF facelet dynamic include paths for the dialog boxes.
|
protected abstract String |
buildDialogIncludePath()
Build the JSF facelet dynamic include path for the current dialog.
|
protected abstract String |
buildDialogToolbarIncludePath()
Build the JSF facelet dynamic include path for the toolbar of the
current dialog.
|
FacesApplicationView |
getApplicationView() |
static FacesApplicationBean |
getCurrentApplicationBean()
Find the current instance of the FacesApplicationBean
for the JSF context of this application.
|
String[] |
getDialogBoxIncludePaths()
Get the JSF facelet dynamic include paths for the dialog boxes.
|
String |
getDialogIncludePath()
Get the JSF facelet dynamic include path for the current dialog.
|
String |
getDialogTitle(DialogInstance instance)
Get the title for the given dialog instance.
|
protected String |
getDialogToolbarIncludePath()
Get the JSF facelet dynamic include path for the toolbar of the
current dialog.
|
static <T> T |
getFacesBean(String beanName)
Get the named JSF managed bean from the JSF context.
|
String |
getFacesMessage(String bundleName,
String key)
Get the JSF message from the message bundle.
|
String |
getMessageBoxAltText() |
protected String |
getMessageBoxButtonId(no.g9.message.MessageReplyType reply)
Get the JSF ID of the message box button for the given reply type.
|
String |
getMessageBoxFocusButton() |
String |
getMessageBoxIcon() |
String |
getMessageBoxTitle()
Get the message box title.
|
String |
getMessageInput() |
String |
getMessageText() |
int |
getNumberOfOpenDialogBoxes() |
boolean |
getShowMessage() |
boolean |
getShowMessageAbortButton() |
boolean |
getShowMessageCancelButton() |
boolean |
getShowMessageIgnoreButton() |
boolean |
getShowMessageInput() |
boolean |
getShowMessageNoButton() |
boolean |
getShowMessageOkButton() |
boolean |
getShowMessageRetryButton() |
boolean |
getShowMessageYesButton() |
void |
messageBox_AbortClicked(javax.faces.event.ActionEvent event)
The event handler for the message box Abort button.
|
void |
messageBox_CancelClicked(javax.faces.event.ActionEvent event)
The event handler for the message box Cancel button.
|
void |
messageBox_CloseClicked(org.icefaces.ace.event.CloseEvent event)
The event handler for the message box Close button.
|
void |
messageBox_IgnoreClicked(javax.faces.event.ActionEvent event)
The event handler for the message box Ignore button.
|
void |
messageBox_NoClicked(javax.faces.event.ActionEvent event)
The event handler for the message box No button.
|
void |
messageBox_OkClicked(javax.faces.event.ActionEvent event)
The event handler for the message box OK button.
|
void |
messageBox_RetryClicked(javax.faces.event.ActionEvent event)
The event handler for the message box Retry button.
|
void |
messageBox_YesClicked(javax.faces.event.ActionEvent event)
The event handler for the message box Yes button.
|
String |
msg(String key)
Get the message text for the given key.
|
void |
setApplicationView(FacesApplicationView applicationView)
Set the JSF application view.
|
static void |
setExternalResourceProvider(no.g9.support.ResourceProvider<String> resourceProvider)
Sets an external resource provider.
|
void |
setMessageInput(String messageInput)
Set the message input string (the reply string).
|
void |
setShowMessage(boolean on)
Dummy setter for JSF.
|
public FacesApplicationBean(String applicationBeanName, FacesApplicationView applicationView)
applicationBeanName - the name of the JSF application beanapplicationView - the JSF application viewprotected FacesApplicationBean()
public FacesApplicationView getApplicationView()
public void setApplicationView(FacesApplicationView applicationView)
applicationView - the new JSF application viewpublic String getFacesMessage(String bundleName, String key)
bundleName - - the JSF message file name, null if default bundlekey - - the lookup keypublic String msg(String key)
key - the message key for the messagepublic String getDialogIncludePath()
public int getNumberOfOpenDialogBoxes()
public String[] getDialogBoxIncludePaths()
protected String getDialogToolbarIncludePath()
protected abstract String buildDialogIncludePath()
protected abstract String[] buildDialogBoxIncludePaths()
protected abstract String buildDialogToolbarIncludePath()
public void messageBox_CloseClicked(org.icefaces.ace.event.CloseEvent event)
event - the JSF eventpublic void messageBox_OkClicked(javax.faces.event.ActionEvent event)
event - the JSF eventpublic void messageBox_YesClicked(javax.faces.event.ActionEvent event)
event - the JSF eventpublic void messageBox_NoClicked(javax.faces.event.ActionEvent event)
event - the JSF eventpublic void messageBox_CancelClicked(javax.faces.event.ActionEvent event)
event - the JSF eventpublic void messageBox_AbortClicked(javax.faces.event.ActionEvent event)
event - the JSF eventpublic void messageBox_RetryClicked(javax.faces.event.ActionEvent event)
event - the JSF eventpublic void messageBox_IgnoreClicked(javax.faces.event.ActionEvent event)
event - the JSF eventpublic boolean getShowMessage()
public void setShowMessage(boolean on)
on - ignoredpublic String getMessageBoxTitle()
public String getMessageBoxIcon()
public String getMessageBoxAltText()
public String getMessageText()
public boolean getShowMessageInput()
public boolean getShowMessageOkButton()
public boolean getShowMessageYesButton()
public boolean getShowMessageNoButton()
public boolean getShowMessageCancelButton()
public boolean getShowMessageAbortButton()
public boolean getShowMessageRetryButton()
public boolean getShowMessageIgnoreButton()
public String getMessageInput()
public void setMessageInput(String messageInput)
messageInput - the new message input stringpublic String getMessageBoxFocusButton()
protected String getMessageBoxButtonId(no.g9.message.MessageReplyType reply)
reply - the reply type corresponding to the buttonpublic String getDialogTitle(DialogInstance instance)
instance - the dialog instance in questionpublic static <T> T getFacesBean(String beanName)
T - the bean classbeanName - the name of the managed beanpublic static FacesApplicationBean getCurrentApplicationBean()
public static void setExternalResourceProvider(no.g9.support.ResourceProvider<String> resourceProvider)
ResourceBundles
are used when looking for resource texts.resourceProvider - New resource provider (or null, to erase)Copyright © 2006–2017 Esito AS. All rights reserved.