|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<C>
javax.rad.genui.container.AbstractWindow<C>
javax.rad.genui.container.AbstractFrame<IInternalFrame>
javax.rad.genui.container.UIInternalFrame
com.sibvisions.rad.application.Error
public class Error
The Error
is designed to visualize errors occured
in an application. It displays the whole error chain.
Field Summary |
---|
Fields inherited from class javax.rad.genui.container.AbstractFrame |
---|
iconImage, menuBar |
Fields inherited from class javax.rad.genui.UIContainer |
---|
components |
Fields inherited from class javax.rad.genui.UIComponent |
---|
lLastTranslationModified, parent |
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Fields inherited from interface javax.rad.ui.container.IFrame |
---|
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMAL |
Fields inherited from interface javax.rad.ui.container.IToolBarPanel |
---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
Constructor Summary | |
---|---|
Error(IDesktopPanel pDesktop)
Creates a new instance of Error for a special desktop. |
Method Summary | ||
---|---|---|
void |
addError(Throwable pError)
Adds an error to the list of errors. |
|
void |
doDetails(UIActionEvent pEvent)
Shows the details. |
|
void |
doOk(UIActionEvent pEvent)
Closes the content. |
|
ErrorHandler |
eventHideDetails()
Gets the "hide details" event handler. |
|
ErrorHandler |
eventShowDetails()
Gets the "show details" event handler. |
|
protected UIToggleButton |
getDetailsButton()
Gets the details button. |
|
protected UIGroupPanel |
getDetailsGroupPanel()
Gets the details group panel. |
|
Throwable[] |
getErrors()
Gets all available errors. |
|
String |
getMessage()
Gets the error message. |
|
protected UIButton |
getOKButton()
Gets the OK button. |
|
|
getOpener()
Gets the opener of the content. |
|
protected UITextArea |
getTextArea()
Gets the message text area. |
|
void |
notifyDestroy()
Notifies the IContent, that it will be destroyed. |
|
void |
notifyVisible()
Notifies the IContent, that it is now positioned and showing. |
|
|
setOpener(OP pOpener)
Sets the opener of the content. |
|
protected void |
updateAnchors()
Updates the Layout anchors dependent of the visible details. |
Methods inherited from class javax.rad.genui.container.UIInternalFrame |
---|
close, dispose, isClosable, isClosed, isIconifiable, isMaximizable, isModal, setClosable, setIconifiable, setMaximizable, setModal, toBack, toFront, topLevelAddNotify |
Methods inherited from class javax.rad.genui.container.AbstractFrame |
---|
addNotify, addToolBar, addToolBar, beforeAddNotify, getIconImage, getMenuBar, getState, getTitle, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, isResizable, isToolBarMovable, removeAllToolBars, removeNotify, removeToolBar, removeToolBar, setIconImage, setMenuBar, setResizable, setState, setTitle, setToolBarArea, setToolBarMovable, updateTranslation |
Methods inherited from class javax.rad.genui.container.AbstractWindow |
---|
centerRelativeTo, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack, setVisible |
Methods inherited from class javax.rad.genui.UIContainer |
---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout, setZOrder |
Methods inherited from class javax.rad.genui.UIResource |
---|
equals, getUIResource, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Methods inherited from interface javax.rad.ui.container.IFrame |
---|
getIconImage, getMenuBar, getState, getTitle, isResizable, setIconImage, setMenuBar, setResizable, setState, setTitle |
Methods inherited from interface javax.rad.ui.container.IWindow |
---|
centerRelativeTo, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack |
Methods inherited from interface javax.rad.ui.container.IToolBarPanel |
---|
addToolBar, addToolBar, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, removeAllToolBars, removeToolBar, removeToolBar, setToolBarArea |
Methods inherited from interface javax.rad.ui.IContainer |
---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
Constructor Detail |
---|
public Error(IDesktopPanel pDesktop) throws Exception
Error
for a special desktop.
pDesktop
- the desktop for showing the frame
Exception
- if it's not possible to build the UIMethod Detail |
---|
public void notifyDestroy()
notifyDestroy
in interface IContent
public void notifyVisible()
notifyVisible
in interface IContent
public <OP> void setOpener(OP pOpener)
setOpener
in interface IContent
OP
- the opener typepOpener
- the opener component or null
if the component is
unknownpublic <OP> OP getOpener()
getOpener
in interface IContent
OP
- the opener type
null
if the opener is unknownpublic void addError(Throwable pError)
pError
- the errorprotected void updateAnchors()
protected UITextArea getTextArea()
protected UIButton getOKButton()
protected UIToggleButton getDetailsButton()
protected UIGroupPanel getDetailsGroupPanel()
public String getMessage()
public Throwable[] getErrors()
public ErrorHandler eventHideDetails()
public ErrorHandler eventShowDetails()
public void doOk(UIActionEvent pEvent)
pEvent
- the triggering eventpublic void doDetails(UIActionEvent pEvent)
pEvent
- the triggering event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |