Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Scout/Concepts/Desktop"

m (See Also)
m (Category changed)
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{ScoutPage|cat=Concepts}}
+
{{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|ExecInit}}
+
* {{ScoutEvent|Init}}
  
Events of the application:
+
===Application events===
* {{ScoutEvent|ExecOpen}}: used to start the Form responsible to represent pages in the main windows.
+
* {{ScoutEvent|Opened}}:  
* {{ScoutEvent|ExecClosed}}: occures before the application quit.
+
* {{ScoutEvent|ExecOutlineChanged}}: the active {{ScoutLink|Concepts|Outline|outline}} changed.
+
  
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.


Description

The desktop is the entry point of every Scout Client application. It can (may) consist of:

  • 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.


Events

Defined with The Scout documentation has been moved to https://eclipsescout.github.io/. methods.

Application events

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]);
  }
}

Events to handle GUI

See Also

Back to the top