javax.rad.application.genui
Class RemoteApplication

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UIComponent<C>
          extended by javax.rad.genui.UIContainer<IPanel>
              extended by javax.rad.genui.container.UIPanel
                  extended by javax.rad.application.genui.Content
                      extended by javax.rad.application.genui.ControllerContent
                          extended by javax.rad.application.genui.Application
                              extended by javax.rad.application.genui.RemoteApplication
All Implemented Interfaces:
IApplication, IConnectable, IContent, IMessageConstants, IControl, IControllable, IController, ITranslatable, IPanel, IComponent, IContainer, IResource, INamedObject, ITranslator
Direct Known Subclasses:
Application, RemoteWorkScreenApplication

public abstract class RemoteApplication
extends Application
implements IConnectable

The RemoteApplication extends the Application with an AbstractConnection.


Field Summary
 
Fields inherited from class javax.rad.application.genui.Application
PARAM_SETUP_CLASS
 
Fields inherited from class javax.rad.genui.container.UIPanel
imgBack
 
Fields inherited from class javax.rad.genui.UIContainer
allComponents, components
 
Fields inherited from class javax.rad.genui.UIComponent
bTranslate, lLastTranslationModified, parent, popupMenu
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Fields inherited from interface javax.rad.application.IMessageConstants
MESSAGE_BUTTON_OK, MESSAGE_BUTTON_OK_CANCEL, MESSAGE_BUTTON_YES_NO, MESSAGE_BUTTON_YES_NO_CANCEL, MESSAGE_ICON_ERROR, MESSAGE_ICON_INFO, MESSAGE_ICON_QUESTION, MESSAGE_ICON_WARNING
 
Fields inherited from interface javax.rad.model.ui.IController
PROPERTY_SEARCH_VISIBLE
 
Fields inherited from interface javax.rad.model.ui.IControllable
COMMAND_DELETE, COMMAND_DUPLICATE, COMMAND_EDIT, COMMAND_EXPORT, COMMAND_FIRST, COMMAND_INSERT, COMMAND_INSERT_SUB, COMMAND_LAST, COMMAND_NEXT, COMMAND_PREVIOUS, COMMAND_RESTORE, COMMAND_SEARCH
 
Constructor Summary
RemoteApplication(UILauncher pLauncher)
          Creates a new instance of RemoteApplication with a desired launcher.
RemoteApplication(UILauncher pLauncher, AbstractConnection pConnection)
          Creates a new instance of RemoteApplication with a desired launcher and connection.
 
Method Summary
protected  void afterLogin()
          Fires the after login event.
protected  void afterLogout()
          Fires the after logout event.
 RemoteApplicationHandler<IAfterLoginApplicationListener> eventAfterLogin()
          Gets the event handler for the after login event.
 RemoteApplicationHandler<IAfterLogoutApplicationListener> eventAfterLogout()
          Gets the event handler for the after logout event.
 AbstractConnection getConnection()
          Gets the communication connection.
 boolean isConnected()
          Checks if the communication is established.
 void setConnection(AbstractConnection pConnection)
          Sets the communication connection.
 
Methods inherited from class javax.rad.application.genui.Application
applySetup, getApplicationPane, getContentPane, getControllerProperty, getCursor, getLauncher, getSetup, notifyDestroy, setCursor, setLauncher, showError, showError, showInformation, showInformation, showMessage, showQuestion, showQuestion, showWarning, showWarning
 
Methods inherited from class javax.rad.application.genui.ControllerContent
addNotify, cancelEditing, doActiveControlChanged, doActiveControllableChanged, doActiveDataBookChanged, doCommand, doConfigureCommandButtons, doDelete, doDuplicate, doEdit, doExport, doFirst, doInsert, doInsertSub, doLast, doNext, doNotifyController, doPrevious, doRestore, doSearch, getActiveControl, getActiveControllable, getActiveDataBook, getCommandButtons, getController, getRegisteredCommands, isCommandEnabled, isDeleteEnabled, isDuplicateEnabled, isEditEnabled, isExportEnabled, isFirstEnabled, isInsertEnabled, isInsertSubEnabled, isLastEnabled, isNextEnabled, isPreviousEnabled, isRestoreEnabled, isSearchEnabled, notifyRepaint, registerCommandButton, removeNotify, saveEditing, setActiveControllable, setController, setControllerProperty, unregisterAllCommandButtons, unregisterCommandButton, unregisterCommandButton
 
Methods inherited from class javax.rad.application.genui.Content
createComponentName, getOpener, isDestroyed, notifyVisible, setOpener
 
Methods inherited from class javax.rad.genui.container.UIPanel
getBackgroundImage, setBackgroundImage
 
Methods inherited from class javax.rad.genui.UIContainer
add, add, add, add, addInternal, beforeAddNotify, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, remove, removeAll, removeInternal, setLayout, setUIResourceContainer, setZOrder, updateTranslation
 
Methods inherited from class javax.rad.genui.UIComponent
capture, createComponentNamePrefix, debug, doEventKey, doTriggerPopMenu, equals, error, eventComponentMoved, eventComponentResized, eventFocusGained, eventFocusLost, eventKey, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getDefaultName, getEventSource, getExistingNames, getFactory, getFont, getForeground, getLocation, getLocationOffset, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPopupMenu, getPreferredSize, getResource, getRootName, getSize, getStyle, getTabIndex, getToolTipText, getTranslation, getUIComponent, hashCode, incrementNameIfExists, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isBeforeNotified, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isTranslationChanged, isTranslationEnabled, isVisible, requestFocus, setBackground, setBounds, setBounds, setDefaultName, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocation, setLocationRelativeTo, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPopupMenu, setPreferredSize, setPreferredSize, setRootName, setSize, setSize, setStyle, setTabIndex, setToolTipText, setTranslation, setTranslationEnabled, setUIComponent, setVisible, translate
 
Methods inherited from class javax.rad.genui.UIResource
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.application.IContent
getOpener, isDestroyed, notifyVisible, setOpener
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventFocusGained, eventFocusLost, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyle, getTabIndex, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setStyle, setTabIndex, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.model.ui.ITranslatable
getTranslation, isTranslationEnabled, setTranslation, setTranslationEnabled
 
Methods inherited from interface javax.rad.util.ITranslator
translate
 
Methods inherited from interface javax.rad.ui.IContainer
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout
 

Constructor Detail

RemoteApplication

public RemoteApplication(UILauncher pLauncher)
Creates a new instance of RemoteApplication with a desired launcher.

Parameters:
pLauncher - the launcher of this application

RemoteApplication

public RemoteApplication(UILauncher pLauncher,
                         AbstractConnection pConnection)
Creates a new instance of RemoteApplication with a desired launcher and connection.

Parameters:
pLauncher - the launcher of this application
pConnection - the connection
Method Detail

getConnection

public AbstractConnection getConnection()
Gets the communication connection.

Specified by:
getConnection in interface IConnectable
Returns:
the connection

setConnection

public void setConnection(AbstractConnection pConnection)
Sets the communication connection.

Specified by:
setConnection in interface IConnectable
Parameters:
pConnection - the connection

isConnected

public boolean isConnected()
Checks if the communication is established.

Specified by:
isConnected in interface IConnectable
Returns:
true if the connection is established

eventAfterLogin

public RemoteApplicationHandler<IAfterLoginApplicationListener> eventAfterLogin()
Gets the event handler for the after login event.

Returns:
the event handler

eventAfterLogout

public RemoteApplicationHandler<IAfterLogoutApplicationListener> eventAfterLogout()
Gets the event handler for the after logout event.

Returns:
the event handler

afterLogout

protected void afterLogout()
Fires the after logout event.


afterLogin

protected void afterLogin()
Fires the after login event.



Copyright © 2009 SIB Visions GmbH. All Rights Reserved.