Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Scout/Concepts/Desktop"
Dev.jmini.fr (Talk | contribs) m (→See Also) |
m (Category changed) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{ScoutPage|cat= | + | {{ScoutPage|cat=Client}} |
Desktop is the root component of Scout Client applications. | Desktop is the root component of Scout Client applications. | ||
Line 32: | Line 32: | ||
''Defined with {{ScoutLink|Concepts|Exec_Methods|execXxxxxx()}} methods''. | ''Defined with {{ScoutLink|Concepts|Exec_Methods|execXxxxxx()}} methods''. | ||
− | * {{ScoutEvent| | + | * {{ScoutEvent|Init}} |
− | + | ===Application events=== | |
− | * {{ScoutEvent| | + | * {{ScoutEvent|Opened}}: |
− | + | ||
− | + | ||
− | Events to handle GUI | + | This event is occurs after the desktop was opened and setup in UI. It provide the possibility to define what will be displayed in the main windows. The corresponding {{ScoutLink|Concepts|Form|forms}} are instantiated and started. |
+ | |||
+ | In most of the cases, the code generated when you create a new project do not need to be changed. It depends of {{ScoutLink|Concepts|Type of application|the type of application}} you want to create. | ||
+ | |||
+ | For a '''Single form application''': | ||
+ | |||
+ | <source lang="java"> | ||
+ | @Override | ||
+ | protected void execOpened() throws ProcessingException { | ||
+ | // dektop form | ||
+ | DesktopForm desktopForm = new DesktopForm(); | ||
+ | desktopForm.startView(); | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | For an '''{{ScoutLink|Concepts|Outline based application|Outline based application}}''': | ||
+ | |||
+ | <source lang="java"> | ||
+ | @Override | ||
+ | protected void execOpened() throws ProcessingException { | ||
+ | // outline tree | ||
+ | DefaultOutlineTreeForm treeForm = new DefaultOutlineTreeForm(); | ||
+ | treeForm.startView(); | ||
+ | |||
+ | //outline table | ||
+ | DefaultOutlineTableForm tableForm = new DefaultOutlineTableForm(); | ||
+ | tableForm.startView(); | ||
+ | |||
+ | if (getAvailableOutlines().length > 0) { | ||
+ | setOutline(getAvailableOutlines()[0]); | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
+ | * {{ScoutEvent|Closed}}: occures before the application quit. | ||
+ | * {{ScoutEvent|OutlineChanged}}: the active {{ScoutLink|Concepts|Outline|outline}} changed. | ||
+ | |||
+ | ===Events to handle GUI=== | ||
* {{ScoutEvent|GUIAttached}} | * {{ScoutEvent|GUIAttached}} | ||
* {{ScoutEvent|GUIDetached}} | * {{ScoutEvent|GUIDetached}} | ||
− | |||
== See Also == | == See Also == | ||
* {{ScoutLink|Concepts|Outline|Outline}} | * {{ScoutLink|Concepts|Outline|Outline}} | ||
* {{ScoutLink|Concepts|Client Plug-In|Client Plug-In}} | * {{ScoutLink|Concepts|Client Plug-In|Client Plug-In}} |
Revision as of 12:07, 3 November 2011
The Scout documentation has been moved to https://eclipsescout.github.io/.
Desktop is the root component of Scout Client applications.
- implements: The Scout documentation has been moved to https://eclipsescout.github.io/.
- extends: The Scout documentation has been moved to https://eclipsescout.github.io/.
Contents
Description
The desktop is the entry point of every Scout Client application. It can (may) consist of:
- Top-level The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- Set of available The Scout documentation has been moved to https://eclipsescout.github.io/. and an active The Scout documentation has been moved to https://eclipsescout.github.io/.
- active message box stack
- active tableview
- active detail form
- active search form
- form stack (swing: dialogs on desktop as JInternalFrames; eclipse: editors or views)
- dialog stack of modal and non-modal dialogs (swing: dialogs as JDialog, JFrame; eclipse: dialogs in a new Shell)
Properties
Defined with The Scout documentation has been moved to https://eclipsescout.github.io/. methods.
- The Scout documentation has been moved to https://eclipsescout.github.io/.: title of the application.
- The Scout documentation has been moved to https://eclipsescout.github.io/.: provide a list of the Outlines defined in the application.
Events
Defined with The Scout documentation has been moved to https://eclipsescout.github.io/. methods.
- The Scout documentation has been moved to https://eclipsescout.github.io/.
Application events
- The Scout documentation has been moved to https://eclipsescout.github.io/.:
This event is occurs after the desktop was opened and setup in UI. It provide the possibility to define what will be displayed in the main windows. The corresponding The Scout documentation has been moved to https://eclipsescout.github.io/. are instantiated and started.
In most of the cases, the code generated when you create a new project do not need to be changed. It depends of The Scout documentation has been moved to https://eclipsescout.github.io/. you want to create.
For a Single form application:
@Override protected void execOpened() throws ProcessingException { // dektop form DesktopForm desktopForm = new DesktopForm(); desktopForm.startView(); }
For an The Scout documentation has been moved to https://eclipsescout.github.io/.:
@Override protected void execOpened() throws ProcessingException { // outline tree DefaultOutlineTreeForm treeForm = new DefaultOutlineTreeForm(); treeForm.startView(); //outline table DefaultOutlineTableForm tableForm = new DefaultOutlineTableForm(); tableForm.startView(); if (getAvailableOutlines().length > 0) { setOutline(getAvailableOutlines()[0]); } }
- The Scout documentation has been moved to https://eclipsescout.github.io/.: occures before the application quit.
- The Scout documentation has been moved to https://eclipsescout.github.io/.: the active The Scout documentation has been moved to https://eclipsescout.github.io/. changed.
Events to handle GUI
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.
See Also
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.