OBEROn SDK

com.oberon.client
Class OberonClient

java.lang.Object
  extended by com.oberon.client.Application
      extended by com.oberon.client.OberonClient

public class OberonClient
extends Application

Basic SWT Client

Version:
5.0

Field Summary
 org.eclipse.swt.widgets.Label statusBar
           
 org.eclipse.swt.custom.CTabFolder topTabFolder
           
 
Fields inherited from class com.oberon.client.Application
appIcon, application_MainMenu, conf, CONF_FILE_SECTION, CONF_VIEW_SECTION, dialogs, dictionary_common_section, dictionary_default_language, dictionary_menu_section, dictionary_section, display, driverManager, framework, globalfont, ID, isRWT, locale, name, name_revision_separator, number_separator_symbols, ON_TOP, search_all_label, selectApplication, session, shell, show_object_class, show_object_namerev, sToken, subname, uploadDir, URL_JAVAAPI, URL_OBERON, URL_OOQL, use_search_patterns
 
Constructor Summary
OberonClient(java.lang.String mainMenu)
          Creates the client SWT structure and open the Home page
 
Method Summary
 void addPageToContainer(org.eclipse.swt.widgets.Composite panel, java.lang.String title, ApplicationRequest request)
          Add page to a TabFolder's Item
static void confirmExit()
          Ask confirm message when exit from the application
 org.eclipse.swt.widgets.Composite createPagePanel(java.lang.String title, java.lang.String subTitle, boolean objectMenu, ApplicationRequest request)
          Creates the page container
 void doActivityCompletion(ApplicationRequest request)
          Open the default activity completion popup
 void doActivityList(ApplicationRequest request)
          Open the activity list page
 void doChangeUser(ApplicationRequest request)
          Open the Change User pop-up dialog
 void doClose(ApplicationRequest request)
          Close a page or a pop-up dialog
 void doEdit(ApplicationRequest request)
          Open a object Create/Edit page
 void doEditLink(ApplicationRequest request)
          Open a link Edit page
 void doFiles(ApplicationRequest request)
          Open the files panel
 void doHome(ApplicationRequest request)
          Open the Home page
 void doLifecycle(ApplicationRequest request)
          Open the lifecycle page
 void doNavigate(ApplicationRequest request)
          Open the object navigation page
 void doSearch(ApplicationRequest request)
          Open a search filter page
 void doSearchResult(ApplicationRequest request)
          Open the search result set page
 void doSelect(ApplicationRequest request)
          Open a object selection page
 void doSpaceTree(ApplicationRequest request)
          Open the object spacetree
 void doValidations(ApplicationRequest request)
          Open the validations panel
 void doWork(ApplicationRequest request)
          Perform object operations
 void goForward(org.eclipse.swt.widgets.Widget targetwin, java.lang.String url)
          Open a URL in a target window
 boolean handleRequest(ApplicationRequest request)
          Handle an Application request
 void log(java.lang.String message)
          Show a message in the application Log panel or in the status bar
static void main(java.lang.String[] args)
           
 void setCSSStyles()
          Defines CSS styles
 void setFramework()
          Open the Framework dialog to login into OBEROn
 void setpassword()
          Open the Password dialog to change the OBEROn password
 java.lang.String translateOberonLanguageToISO639Language(java.lang.String language)
          Convert the language code from the Application format to standard ISO code
 
Methods inherited from class com.oberon.client.Application
addDialog, addDownloadFile, closeConnections, computeHeight, computeWidth, convertImage, createMenu, createProgressBarImage, errorMessage, getApp, getClassNameRevision, getCommandCoords, getCommonTranslation, getConnection, getConnectionProperty, getData, getDialog, getDownloadFiles, getFramework, getIcon, getIconFileName, getImage, getImage, getLinkData, getMenuTranslation, getNameRevision, getObjImage, getProperty, getTranslation, getTranslation, getTranslation, getWindow, getWindowHeight, getWindowWidth, isConnected, isDBConnection, loadMonospacedFont, openConnections, openFramework, parseOOQLCommands, performOOQLCommands, performSearch, performSearch, releaseConnection, setApp, setData, setFramework, setNoVerbose, setWindowHeight, setWindowWidth, showMessage, showSplash, windowOpen
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statusBar

public org.eclipse.swt.widgets.Label statusBar

topTabFolder

public org.eclipse.swt.custom.CTabFolder topTabFolder
Constructor Detail

OberonClient

public OberonClient(java.lang.String mainMenu)
Creates the client SWT structure and open the Home page

Parameters:
mainMenu - the application main menu; if null the main menu is read from the configuration file (is the "application" property in the [CONNECTION] section)
Method Detail

setFramework

public void setFramework()
Open the Framework dialog to login into OBEROn

Specified by:
setFramework in class Application

setpassword

public void setpassword()
Open the Password dialog to change the OBEROn password


confirmExit

public static void confirmExit()
                        throws java.lang.Exception
Ask confirm message when exit from the application

Throws:
java.lang.Exception

handleRequest

public boolean handleRequest(ApplicationRequest request)
Handle an Application request

Specified by:
handleRequest in class Application
Returns:
true when the request page is a common page

doHome

public void doHome(ApplicationRequest request)
Open the Home page


doChangeUser

public void doChangeUser(ApplicationRequest request)
Open the Change User pop-up dialog


doClose

public void doClose(ApplicationRequest request)
Close a page or a pop-up dialog


doSearch

public void doSearch(ApplicationRequest request)
Open a search filter page


doSearchResult

public void doSearchResult(ApplicationRequest request)
Open the search result set page


doSelect

public void doSelect(ApplicationRequest request)
Open a object selection page


doEdit

public void doEdit(ApplicationRequest request)
Open a object Create/Edit page


doEditLink

public void doEditLink(ApplicationRequest request)
Open a link Edit page


doLifecycle

public void doLifecycle(ApplicationRequest request)
Open the lifecycle page


doValidations

public void doValidations(ApplicationRequest request)
Open the validations panel


doNavigate

public void doNavigate(ApplicationRequest request)
Open the object navigation page


doSpaceTree

public void doSpaceTree(ApplicationRequest request)
Open the object spacetree


doFiles

public void doFiles(ApplicationRequest request)
Open the files panel


doActivityList

public void doActivityList(ApplicationRequest request)
Open the activity list page


doActivityCompletion

public void doActivityCompletion(ApplicationRequest request)
Open the default activity completion popup


doWork

public void doWork(ApplicationRequest request)
Perform object operations


goForward

public void goForward(org.eclipse.swt.widgets.Widget targetwin,
                      java.lang.String url)
Open a URL in a target window

Parameters:
targetwin - the target window (a CTabItem or a dialog Shell)
url - the URL to open

createPagePanel

public org.eclipse.swt.widgets.Composite createPagePanel(java.lang.String title,
                                                         java.lang.String subTitle,
                                                         boolean objectMenu,
                                                         ApplicationRequest request)
Creates the page container

Parameters:
title - the page title
subTitle - the page subtitle
objectMenu - if true show the object contextual menu
request - related Application request

addPageToContainer

public void addPageToContainer(org.eclipse.swt.widgets.Composite panel,
                               java.lang.String title,
                               ApplicationRequest request)
Add page to a TabFolder's Item

Parameters:
panel - the page panel
title - the TabItem title
request - related Application request

translateOberonLanguageToISO639Language

public java.lang.String translateOberonLanguageToISO639Language(java.lang.String language)
Convert the language code from the Application format to standard ISO code

Specified by:
translateOberonLanguageToISO639Language in class Application

log

public void log(java.lang.String message)
Show a message in the application Log panel or in the status bar

Specified by:
log in class Application

setCSSStyles

public void setCSSStyles()
Defines CSS styles


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

OBEROn SDK

Copyright © 2008-2014 Mirko Solazzi. All Rights Reserved.