|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.dom.css.CssBase
to.etc.domui.dom.html.NodeBase
to.etc.domui.dom.html.NodeContainer
to.etc.domui.dom.html.Div
to.etc.domui.component.layout.CaptionedPanel
to.etc.domui.component.layout.ErrorPanel
public class ErrorPanel
This is a CaptionedPanel which captures and displays errors for the tree it is in. This is the default component used by the framework when no other components captures a generated error; in that case the toplevel code catches the error, creates an ErrorPanel component and inserts that as the first node in the page's DOM. This component only changes the look of the CaptionedPanel and adds listeners for the errors.
Constructor Summary | |
---|---|
ErrorPanel()
Create a default error panel. |
Method Summary | |
---|---|
void |
errorMessageAdded(Page pg,
UIMessage m)
Adds the new error message to this panel, making it visible. |
void |
errorMessageRemoved(Page pg,
UIMessage m)
Removes the error message from this panel, rendering it invisible. |
void |
onAddedToPage(Page p)
When I'm added to a page register myself as an error listener for that page. |
void |
onRemoveFromPage(Page p)
When I'm removed from a page I may no longer handle it's errors, so remove myself from the error listener chain. |
Methods inherited from class to.etc.domui.component.layout.CaptionedPanel |
---|
createContent, getContent, getTitleContainer, setContentContainer, setTitle, setTitleContainer |
Methods inherited from class to.etc.domui.dom.html.Div |
---|
afterCreateContent, componentHandleWebAction, fadeIn, fadeOut, getCustomUpdatesCallJS, getDragHandler, getDropBody, getDropHandler, getDropMode, getReturnPressed, setDragHandler, setDropBody, setDropHandler, setReturnPressed, slideDown, slideUp, tb, visit |
Methods inherited from class to.etc.domui.dom.html.NodeContainer |
---|
add, add, add, addTable, canContain, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ErrorPanel()
Method Detail |
---|
public void onAddedToPage(Page p)
onAddedToPage
in class NodeBase
NodeBase.onAddedToPage(to.etc.domui.dom.html.Page)
public void onRemoveFromPage(Page p)
onRemoveFromPage
in class NodeBase
NodeBase.onRemoveFromPage(to.etc.domui.dom.html.Page)
public void errorMessageAdded(Page pg, UIMessage m)
errorMessageAdded
in interface IErrorMessageListener
IErrorMessageListener.errorMessageAdded(to.etc.domui.dom.html.Page, to.etc.domui.dom.errors.UIMessage)
public void errorMessageRemoved(Page pg, UIMessage m)
errorMessageRemoved
in interface IErrorMessageListener
IErrorMessageListener.errorMessageRemoved(to.etc.domui.dom.html.Page, to.etc.domui.dom.errors.UIMessage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |