javax.rad.application
Interface IApplication

All Superinterfaces:
IComponent, IContent, IMessageConstants, INamedObject, IResource
All Known Subinterfaces:
IWorkScreenApplication
All Known Implementing Classes:
Application, Application, RemoteApplication, RemoteWorkScreenApplication

public interface IApplication
extends IContent, IMessageConstants

Platform and technology independent application definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


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
 IContainer getApplicationPane()
          Gets the standard application pane where the content will be added.
 IContainer getContentPane()
          Gets the content pane for the application.
 ILauncher getLauncher()
          Returns the platform independent launcher which is associated with this factory.
<OP> IContent
showMessage(OP pOpener, int pIconType, int pButtonType, String pMessage, String pOkAction, String pCancelAction)
          Shows a message.
 
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

getLauncher

ILauncher getLauncher()
Returns the platform independent launcher which is associated with this factory.

Returns:
the associated launcher

showMessage

<OP> IContent showMessage(OP pOpener,
                          int pIconType,
                          int pButtonType,
                          String pMessage,
                          String pOkAction,
                          String pCancelAction)
                     throws Throwable
Shows a message.

Type Parameters:
OP - the opener type
Parameters:
pOpener - the opener/parent component which wants to display the message
pIconType - the icon type IMessageConstants.MESSAGE_BUTTON_OK_CANCEL, IMessageConstants.MESSAGE_BUTTON_YES_NO, IMessageConstants.MESSAGE_BUTTON_OK
pButtonType - the button type IMessageConstants.MESSAGE_ICON_INFO, IMessageConstants.MESSAGE_ICON_WARNING, IMessageConstants.MESSAGE_ICON_ERROR
pMessage - the message
pOkAction - the action name to call when ok or yes was clicked
pCancelAction - the action name to call when cancel or close was clicked
Returns:
the message content or null if the message has no content
Throws:
Throwable - if the message could not be initialized

getApplicationPane

IContainer getApplicationPane()
Gets the standard application pane where the content will be added.

Returns:
the application pane

getContentPane

IContainer getContentPane()
Gets the content pane for the application. The content pane will be used for the application UI.

Returns:
the content pane


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.