|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWorkScreenApplication
Platform and technology independent definition for an application with work-screens. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
Nested Class Summary | |
---|---|
static class |
IWorkScreenApplication.Modality
The enum for modal content or workscreens. |
Field Summary |
---|
Fields inherited from interface javax.rad.application.IMessageConstants |
---|
MESSAGE_BUTTON_OK, MESSAGE_BUTTON_OK_CANCEL, MESSAGE_BUTTON_YES_NO, MESSAGE_ICON_ERROR, MESSAGE_ICON_INFO, MESSAGE_ICON_QUESTION, MESSAGE_ICON_WARNING |
Method Summary | |
---|---|
void |
close(IContent pContent)
Closes the given content. |
IContent[] |
getContents()
Gets all open contents. |
String[] |
getRoles()
Gets all roles of the current user. |
IWorkScreen[] |
getWorkScreens()
Gets all open work screens. |
boolean |
hasRole(String pRoleName)
Gets true, of the current user has the given role. |
void |
openContent(IComponent pOpener,
String pTitle,
boolean pModal,
IContent pContent)
Opens a content in an internal frame. |
IContent |
openContent(IComponent pOpener,
String pTitle,
boolean pModal,
String pClassName,
Object... pParameter)
Opens content in an internal frame. |
IWorkScreen |
openWorkScreen(String pClassName,
IWorkScreenApplication.Modality pModality,
Hashtable<String,Object> pParameter)
Opens a work screen. |
Methods inherited from interface javax.rad.application.IApplication |
---|
getApplicationPane, getContentPane, getLauncher, showMessage |
Methods inherited from interface javax.rad.application.IContent |
---|
getOpener, notifyDestroy, notifyVisible, setOpener |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Method Detail |
---|
IWorkScreen openWorkScreen(String pClassName, IWorkScreenApplication.Modality pModality, Hashtable<String,Object> pParameter) throws Throwable
pClassName
- the class name of the work screenpModality
- the modality modepParameter
- the work screen parameters
Throwable
- if the content could not be initializedIWorkScreen[] getWorkScreens()
String[] getRoles()
boolean hasRole(String pRoleName)
pRoleName
- the name of the role
true
if the user has the specified rolevoid openContent(IComponent pOpener, String pTitle, boolean pModal, IContent pContent) throws Throwable
pOpener
- the component which opened the contentpTitle
- the title of the internal frame.pModal
- the modal flag.pContent
- the content that will be shown
Throwable
- if the content could not be initializedIContent openContent(IComponent pOpener, String pTitle, boolean pModal, String pClassName, Object... pParameter) throws Throwable
pOpener
- the component which opened the contentpTitle
- the title of the internal frame.pModal
- the modal flag.pClassName
- the class name of the content.pParameter
- the constructor parameter of the content.
Throwable
- if the content could not be initializedIContent[] getContents()
void close(IContent pContent)
pContent
- the content to close.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |