public class Dialog
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Command |
cancelCommand |
protected java.lang.String |
cssStyle |
protected java.lang.String |
headerInclude |
protected java.lang.String |
include |
protected java.lang.String |
message |
protected java.lang.String |
message2 |
protected Command |
noCommand |
static int |
OK_CANCEL_OPTION
Creates a dialog which has an OK and Cancel option.
|
static int |
OKAY_OPTION
Creates a dialog which has just a OK button.
|
protected Command |
okCommand |
protected int |
optionType |
protected boolean |
rendered |
protected java.lang.String |
title |
static int |
YES_NO_CANCEL_OPTION
Creates a dialog which has a Yes, No and Cancel option.
|
static int |
YES_NO_OPTION
Creates a dialog which has Yes and No button.
|
protected Command |
yesCommand |
| Constructor and Description |
|---|
Dialog() |
Dialog(java.lang.String include,
int optionType)
Creates a new Dialog which will not be visible by default.
|
Dialog(java.lang.String include,
java.lang.String headerInclude,
int optionType)
Creates a new Dialog which will not be visible by default.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelButtonAction(javax.faces.event.ActionEvent event) |
java.lang.String |
getCssStyle() |
java.lang.String |
getHeaderInclude() |
java.lang.String |
getInclude() |
java.lang.String |
getMessage() |
java.lang.String |
getMessage2() |
int |
getOptionType() |
java.lang.String |
getTitle() |
boolean |
isCancelButtonVisible() |
boolean |
isNoButtonVisible() |
boolean |
isOkButtonVisible() |
boolean |
isRendered() |
boolean |
isYesButtonVisible() |
void |
noButtonAction(javax.faces.event.ActionEvent event) |
void |
okButtonAction(javax.faces.event.ActionEvent event)
Default behavior is to close the dialog when it is either manually closed
or the OK button has been pressed.
|
void |
setCancelButtonCommand(Command command)
Sets the command which will be executed when the cancel button is pressed.
|
void |
setCancelButtonVisible(boolean cancelButtonVisible) |
void |
setCssStyle(java.lang.String cssStyle) |
void |
setHeaderInclude(java.lang.String headerInclude) |
void |
setInclude(java.lang.String include) |
void |
setMessage(java.lang.String message) |
void |
setMessage2(java.lang.String message2) |
void |
setNoButtonCommand(Command command)
Sets the command which will be executed when the no button is pressed.
|
void |
setNoButtonVisible(boolean noButtonVisible) |
void |
setOKButtonCommand(Command command)
Sets the command which will be executed when the OK button is pressed.
|
void |
setOkButtonVisible(boolean okButtonVisible) |
void |
setOptionType(int optionType) |
void |
setRendered(boolean rendered) |
void |
setTitle(java.lang.String title) |
void |
setYesButtonCommand(Command command)
Sets the command which will be executed when the yes button is pressed.
|
void |
setYesButtonVisible(boolean yesButtonVisible) |
void |
yesButtonAction(javax.faces.event.ActionEvent event) |
public static final int OKAY_OPTION
public static final int YES_NO_OPTION
public static final int YES_NO_CANCEL_OPTION
public static final int OK_CANCEL_OPTION
protected int optionType
protected java.lang.String title
protected java.lang.String message
protected java.lang.String message2
protected boolean rendered
protected java.lang.String include
protected java.lang.String headerInclude
protected java.lang.String cssStyle
protected Command yesCommand
protected Command okCommand
protected Command noCommand
protected Command cancelCommand
public Dialog()
public Dialog(java.lang.String include,
int optionType)
include - include path to dialog contentoptionType - option typepublic Dialog(java.lang.String include,
java.lang.String headerInclude,
int optionType)
include - include path to dialog contentheaderInclude - include path to dialog header contentoptionType - option typepublic void setOKButtonCommand(Command command)
command - command to execute.public void setYesButtonCommand(Command command)
command - command to execute.public void setNoButtonCommand(Command command)
command - command to execute.public void setCancelButtonCommand(Command command)
command - command to execute.public void okButtonAction(javax.faces.event.ActionEvent event)
event - jsf action event.public void yesButtonAction(javax.faces.event.ActionEvent event)
public void noButtonAction(javax.faces.event.ActionEvent event)
public void cancelButtonAction(javax.faces.event.ActionEvent event)
public boolean isRendered()
public void setRendered(boolean rendered)
public int getOptionType()
public void setOptionType(int optionType)
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public java.lang.String getInclude()
public void setInclude(java.lang.String include)
public java.lang.String getHeaderInclude()
public void setHeaderInclude(java.lang.String headerInclude)
public java.lang.String getMessage2()
public void setMessage2(java.lang.String message2)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public boolean isCancelButtonVisible()
public void setCancelButtonVisible(boolean cancelButtonVisible)
public boolean isOkButtonVisible()
public void setOkButtonVisible(boolean okButtonVisible)
public boolean isYesButtonVisible()
public void setYesButtonVisible(boolean yesButtonVisible)
public boolean isNoButtonVisible()
public void setNoButtonVisible(boolean noButtonVisible)
public java.lang.String getCssStyle()
public void setCssStyle(java.lang.String cssStyle)
Copyright 2025 ICEsoft Technologies Canada, Corp. All Rights Reserved.