New Page Wizard
The New Scout Page wizard can be used to create a new page and related classes. To start the wizard use Ctrl+N.
or pressIn the case of Figure 1 the package org.eclipse.scout.apps.helloworld.client.helloworld
has been selected in the Package Explorer. The only wizard field that then needs to be filled in manually is the Name field.
By clicking on the Finish button the wizard is started and the specified components are created.
Wizard Fields and Default Values
Most of the fields of the Figure 1 will be filled with default values depending on the current context of the IDE. The context can be derived from a package selected in the Package Explorer or from the class in the active Java Editor.
- Source Folder
-
The source folder of the Maven client module used for the creation of the page. The default value is the
src/main/java
folder in the Maven client module. - Package
-
The Java package that will contain the page class. The Scout SDK will try to guess the package name from the current context and derive matching package names for the Maven shared module.
- Name
-
The name of the page class. According to Scout conventions the class name ends with the suffix
TablePage
(for subclasses ofAbstractPageWithTable
) orNodePage
(forAbstractPageWithNodes
). - Super Class
-
The super class for the form.
AbstractPageWithTable
is the default value. - Shared Source Folder
-
The source folder of the Maven shared module used for creation of the page data and the service interface. The default value is the
src/main/java
folder in the Maven shared module. - Server Source Folder
-
The source folder of the Maven server module used for creation of the service implementation. The default value is the
src/main/java
folder in the Maven server module.
Created Components
In the Figure 1 example shown above the Scout SDK will create the following components.
-
In Maven module helloworld.client
-
The
MyTablePage
page class in foldersrc/main/java
and packageorg.eclipse.scout.apps.helloworld.client.helloworld
-
-
In Maven module helloworld.shared
-
The
IMyService
service interface in foldersrc/main/java
and packageorg.eclipse.scout.apps.helloworld.shared.helloworld
-
MyTablePageData
page data class in foldersrc/generated/java
and packageorg.eclipse.scout.apps.helloworld.shared.helloworld
-
-
In Maven module helloworld.server
-
The
MyService
implementation in foldersrc/main/java
and packageorg.eclipse.scout.apps.helloworld.server.helloworld
-
Go back to the Scout Wizards.
Do you want to improve this document? Have a look at the sources on GitHub.