|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.Control com.cc.framework.ui.control.MessageControl
The Message Control
Field Summary | |
private MessageDataModel |
dataModel
The data model |
private MessageDesignModel |
designModel
The design model |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class com.cc.framework.ui.control.Control |
log |
Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
Constructor Summary | |
MessageControl()
Constructor for MessageTag |
Method Summary | |
boolean |
filter()
Returns if the filter is activated (default=true). |
java.lang.String |
getCaption()
Returns the caption |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
java.lang.String |
getDetail()
Returns the detail |
Message[] |
getFilteredMessages()
Returns a list of messages that is filtered to the controls severity |
java.lang.String |
getFormId()
Returns the form id |
ImageModel |
getImage()
Returns the image for the frames title |
InnerFrame[] |
getInnerFrames(java.lang.Object layoutHint)
Retrieves a list of inner frames that are matching the given layout hint |
Message[] |
getMessages()
Returns the messages |
Severity |
getSeverity()
Returns the severity |
StateModel |
getStateModel()
Returns the state model of the control |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setDataModel(MessageDataModel dataModel)
Sets the data model |
void |
setDesignModel(MessageDesignModel designModel)
Sets the design model |
boolean |
showButton(ControlButton button)
This Method is called by the Painter before rendering a Button. |
int |
size()
Returns the number of messages |
Methods inherited from class com.cc.framework.ui.control.Control |
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, synchronizeState, synchronizeState |
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.StateModel |
synchronizeState |
Field Detail |
private static final long serialVersionUID
private MessageDataModel dataModel
private MessageDesignModel designModel
Constructor Detail |
public MessageControl()
Method Detail |
public StateModel getStateModel()
Control
getStateModel
in class Control
Control.getStateModel()
public DataModel getDataModel()
Control
getDataModel
in class Control
Control.getDataModel()
public ControlDesignModel getDesignModel()
Control
getDesignModel
in class Control
Control.getDesignModel()
public void setDataModel(MessageDataModel dataModel)
dataModel
- The data modelpublic void setDesignModel(MessageDesignModel designModel)
designModel
- The design modelpublic java.lang.String getFormId()
public java.lang.String getCaption()
public java.lang.String getDetail()
public Message[] getMessages()
public Message[] getFilteredMessages()
public int size()
public Severity getSeverity()
public ImageModel getImage()
public boolean showButton(ControlButton button)
Control
showButton
in class Control
button
- ControlButton
Control.showButton(com.cc.framework.ui.control.ControlButton)
public InnerFrame[] getInnerFrames(java.lang.Object layoutHint)
layoutHint
- The layout hint that specifies what frames should be selected:
AlignmentType.TOP
- header frames
AlignmentType.BOTTOM
- footer frames
public boolean filter()
true
if string will be HTML encoded;
false
otherwisepublic void reset()
StateModel
reset
in interface StateModel
StateModel.reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |