Skip to content

Commit efe1293

Browse files
authored
Fix dialog size issue (#708)
1 parent a32d265 commit efe1293

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed
54.9 KB
Loading

feature_layers/create-mobile-geodatabase/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Create a mobile geodatabase.
66

77
## Use case
88

9-
A mobile geodatabase is a collection of various types of GIS datasets contained in a single file (.geodatabase) on disk that can store, query, and manage spatial and non-spatial data. Mobile geodatabases are stored in a SQLite database and can contain up to 2 TB of portable data. Users can create, edit and share mobile geodatabases across ArcGIS Pro, ArcGIS Runtime, or any SQL software. These mobile geodatabases support both viewing and editing and enable new offline editing workflows that don’t require a feature service.
9+
A mobile geodatabase is a collection of various types of GIS datasets contained in a single file (.geodatabase) on disk that can store, query, and manage spatial and non-spatial data. Mobile geodatabases are stored in a SQLite database and can contain up to 2 TB of portable data. Users can create, edit and share mobile geodatabases across ArcGIS Pro, ArcGIS Runtime, or any SQL software. These mobile geodatabases support both viewing and editing and enable new offline editing workflows without requiring a feature service.
1010

1111
For example, a user would like to track the location of their device at various intervals to generate a heat map of the most visited locations. The user can add each location as a feature to a table and generate a mobile geodatabase. The user can then instantly share the mobile geodatabase to ArcGIS Pro to generate a heat map using the recorded locations stored as a geodatabase feature table.
1212

1313
## How to use the sample
1414

15-
Click "Create geodatabase" to create the geodatabase and its feature table. Click on the map to add new features to the geodatabase. Click "View Table" to view the contents of the geodatabase feature table. Once you have added the features to the map, click on "Close Geodatabase" to save the .geodatabase file which can then be imported into ArcGIS Pro or opened in an ArcGIS Runtime application.
15+
Click "Create Geodatabase" to create the geodatabase and its feature table. Click on the map to add new features to the geodatabase. Click "View Table" to view the contents of the geodatabase feature table. Once you have added the features to the map, click on "Close Geodatabase" to save the .geodatabase file which can then be imported into ArcGIS Pro or opened in an ArcGIS Runtime application.
1616

1717
## How it works
1818

feature_layers/create-mobile-geodatabase/src/main/java/com/esri/samples/create_mobile_geodatabase/CreateMobileGeodatabaseController.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import javafx.scene.control.TableView;
4040
import javafx.scene.control.cell.PropertyValueFactory;
4141
import javafx.scene.input.MouseButton;
42+
import javafx.scene.layout.Region;
4243
import javafx.scene.layout.StackPane;
4344
import javafx.stage.Stage;
4445

@@ -242,6 +243,8 @@ private void handleCloseGeodatabase() {
242243
dialog.initOwner(mapView.getScene().getWindow());
243244
dialog.setHeaderText(null);
244245
dialog.setTitle(("Information"));
246+
dialog.setResizable(true);
247+
dialog.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
245248
dialog.showAndWait();
246249

247250
// handle UI
@@ -300,6 +303,7 @@ private void handleDisplayTable() {
300303
// set up stage properties before display
301304
tableStage = new Stage();
302305
tableStage.setTitle("Features");
306+
tableStage.centerOnScreen();
303307
tableStage.setScene(scene);
304308
tableStage.show();
305309

feature_layers/create-mobile-geodatabase/src/main/resources/create_mobile_geodatabase/main.fxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@
5252
text="Click button to start."
5353
wrapText="true"/>
5454
<Button fx:id="createGeodatabaseButton"
55-
text="Create geodatabase"
55+
text="Create Geodatabase"
5656
textAlignment="CENTER"
5757
prefWidth="Infinity"
5858
onAction="#handleCreateGeodatabase"/>
5959
<Button fx:id="viewTableButton"
60-
text="View table"
60+
text="View Table"
6161
textAlignment="CENTER"
6262
prefWidth="Infinity"
6363
disable="true"
6464
onAction="#handleDisplayTable"/>
6565
<Button fx:id="closeGeodatabaseButton"
66-
text="Close geodatabase"
66+
text="Close Geodatabase"
6767
textAlignment="CENTER"
6868
prefWidth="Infinity"
6969
disable="true"

0 commit comments

Comments
 (0)