|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.model.imp.ClientHandlerImp
com.cc.framework.ui.model.imp.ControlDesignModelImp
com.cc.framework.ui.model.imp.MessageDesignModelImp
Designmodel for messages
| Field Summary | |
private ButtonContainer |
buttons
The users permission which is necessary to see any buttons |
private java.lang.String |
caption
The caption |
private java.lang.String |
detail
The message text |
private boolean |
filter
Specifies if all String should be converted into there HTML representation |
private java.lang.String |
formId
Form iD |
private java.util.ArrayList |
frames
Container with the form elements |
private ImageModel |
image
The optional title image |
private static long |
serialVersionUID
Serial Version UID |
private Severity |
severity
The severity of the message |
| Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
|
| Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
| Constructor Summary | |
MessageDesignModelImp()
Constructor for MessageDesignModelImp |
|
| Method Summary | |
void |
addInnerFrame(InnerFrame frame)
Adds a inner frame to the List |
boolean |
filter()
Returns if the filter is activated (default=true). |
Permission |
getButtonPermission(ControlButton button)
Retrieves the permission for the given button |
java.lang.String |
getCaption()
Returns the Caption |
java.lang.String |
getDetail()
Returns the Detail String |
java.lang.String |
getFormId()
Returns the Form Id |
ImageModel |
getImage()
Returns the image for the frames title |
InnerFrame[] |
getInnerFrames(Principal principal,
java.lang.Object layoutHint)
Retrieves a list of only the inner frames that are matching the given layout hint |
Severity |
getSeverity()
Returns the Severity of the Message |
void |
setButtonPermission(ControlButton button,
Permission permission)
Sets whether a command button should be displayed by specifying an Access Control List. |
void |
setCaption(java.lang.String caption)
Sets the Caption |
void |
setDetail(java.lang.String detail)
Sets the Details |
void |
setFilter(boolean filter)
Activates the HTML encoding (filter). |
void |
setFormId(java.lang.String formId)
Sets the Form Id |
void |
setImage(ImageModel img)
Sets an image for the frames title |
void |
setSeverity(Severity severity)
sets the Severity |
boolean |
showButton(ControlButton button,
Principal principal)
Checks if the button can be displayed. |
| Methods inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
addDesignRule, enableAjax, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isAjaxEnabled, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth, show |
| Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
evaluate, getHandler, getHandlers, setHandler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.cc.framework.ui.model.ControlDesignModel |
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth |
| Methods inherited from interface com.cc.framework.ui.model.ClientHandler |
getHandler, getHandlers, setHandler |
| Methods inherited from interface com.cc.framework.ui.model.AccessControlled |
getPermission, show |
| Methods inherited from interface com.cc.framework.ui.model.ActionBehavior |
isAjaxEnabled |
| Methods inherited from interface com.cc.framework.ui.model.AjaxSupport |
enableAjax, isAjaxEnabled |
| Field Detail |
private static final long serialVersionUID
private Severity severity
private java.lang.String caption
private java.lang.String detail
private java.lang.String formId
private boolean filter
private ImageModel image
private ButtonContainer buttons
private java.util.ArrayList frames
| Constructor Detail |
public MessageDesignModelImp()
| Method Detail |
public Severity getSeverity()
MessageDesignModel
getSeverity in interface MessageDesignModelMessageDesignModel.getSeverity()public void setSeverity(Severity severity)
MessageDesignModel
setSeverity in interface MessageDesignModelseverity - SeverityMessageDesignModel.setSeverity(com.cc.framework.common.Severity)public java.lang.String getCaption()
MessageDesignModel
getCaption in interface MessageDesignModelMessageDesignModel.getCaption()public java.lang.String getDetail()
MessageDesignModel
getDetail in interface MessageDesignModelMessageDesignModel.getDetail()public void setCaption(java.lang.String caption)
MessageDesignModel
setCaption in interface MessageDesignModelcaption - CaptionMessageDesignModel.setCaption(java.lang.String)public void setDetail(java.lang.String detail)
MessageDesignModel
setDetail in interface MessageDesignModeldetail - DetailsMessageDesignModel.setDetail(java.lang.String)public java.lang.String getFormId()
MessageDesignModel
getFormId in interface MessageDesignModelMessageDesignModel.getFormId()public void setFormId(java.lang.String formId)
MessageDesignModel
setFormId in interface MessageDesignModelformId - Form IdMessageDesignModel.setFormId(java.lang.String)public boolean filter()
MessageDesignModel
filter in interface MessageDesignModeltrue if string will be HTML encoded;
false otherwiseMessageDesignModel.filter()public void setFilter(boolean filter)
MessageDesignModel
setFilter in interface MessageDesignModelfilter - true if strings should be HTML encoded; false
otherwiseMessageDesignModel.setFilter(boolean)public void addInnerFrame(InnerFrame frame)
FrameContainer
addInnerFrame in interface FrameContainerframe - the inner frame to addFrameContainer.addInnerFrame(com.cc.framework.ui.model.InnerFrame)
public InnerFrame[] getInnerFrames(Principal principal,
java.lang.Object layoutHint)
FrameContainer
getInnerFrames in interface FrameContainerprincipal - The principal object for permission tests. This parameter can
be nulllayoutHint - The layout hint that specifies what frames should be selected:
AlignmentType.TOP - header frames
AlignmentType.BOTTOM - footer frames
FrameContainer.getInnerFrames(com.cc.framework.security.Principal, java.lang.Object)public ImageModel getImage()
FrameContainer
getImage in interface FrameContainerFrameContainer.getImage()public void setImage(ImageModel img)
FrameContainer
setImage in interface FrameContainerimg - ImageModelFrameContainer.setImage(com.cc.framework.ui.model.ImageModel)public Permission getButtonPermission(ControlButton button)
ButtonContainer
getButtonPermission in interface ButtonContainerbutton - Button constant
nullButtonContainer.getButtonPermission(com.cc.framework.ui.control.ControlButton)
public boolean showButton(ControlButton button,
Principal principal)
ButtonContainer
showButton in interface ButtonContainerbutton - The Button to queryprincipal - The principal object
true if the button should be displayedButtonContainer.showButton(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Principal)
public void setButtonPermission(ControlButton button,
Permission permission)
ButtonContainer
setButtonPermission in interface ButtonContainerbutton - The Button to querypermission - PermissionButtonContainer.setButtonPermission(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Permission)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||