javax.rad.application
Interface IWorkScreenApplication

All Superinterfaces:
IApplication, IComponent, IContent, IMessageConstants, INamedObject, IResource
All Known Implementing Classes:
RemoteWorkScreenApplication

public interface IWorkScreenApplication
extends IApplication

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.IComponent
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Method Detail

openWorkScreen

IWorkScreen openWorkScreen(String pClassName,
                           IWorkScreenApplication.Modality pModality,
                           Hashtable<String,Object> pParameter)
                           throws Throwable
Opens a work screen.

Parameters:
pClassName - the class name of the work screen
pModality - the modality mode
pParameter - the work screen parameters
Returns:
the work screen
Throws:
Throwable - if the content could not be initialized

getWorkScreens

IWorkScreen[] getWorkScreens()
Gets all open work screens.

Returns:
the work screens.

getRoles

String[] getRoles()
Gets all roles of the current user.

Returns:
the roles.

hasRole

boolean hasRole(String pRoleName)
Gets true, of the current user has the given role.

Parameters:
pRoleName - the name of the role
Returns:
true if the user has the specified role

openContent

void openContent(IComponent pOpener,
                 String pTitle,
                 boolean pModal,
                 IContent pContent)
                 throws Throwable
Opens a content in an internal frame. It can be specified, if it should be modal or not.

Parameters:
pOpener - the component which opened the content
pTitle - the title of the internal frame.
pModal - the modal flag.
pContent - the content that will be shown
Throws:
Throwable - if the content could not be initialized

openContent

IContent openContent(IComponent pOpener,
                     String pTitle,
                     boolean pModal,
                     String pClassName,
                     Object... pParameter)
                     throws Throwable
Opens content in an internal frame. It can be specified, if it should be modal or not.

Parameters:
pOpener - the component which opened the content
pTitle - the title of the internal frame.
pModal - the modal flag.
pClassName - the class name of the content.
pParameter - the constructor parameter of the content.
Returns:
the content that is shown.
Throws:
Throwable - if the content could not be initialized

getContents

IContent[] getContents()
Gets all open contents.

Returns:
the contents.

close

void close(IContent pContent)
Closes the given content.

Parameters:
pContent - the content to close.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.