Skip to content

Commit

Permalink
CSSTUDIO-1812 Change "GridPane" to "VBox" and add a "ScrollPane" arou…
Browse files Browse the repository at this point in the history
…nd the "TableView" to enable scrolling.
  • Loading branch information
abrahamwolk committed Jan 31, 2023
1 parent 24c0a9d commit e0d09f9
Showing 1 changed file with 25 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,28 @@
~ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-->

<GridPane minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.csstudio.trends.databrowser3.ui.properties.StatisticsTabController">
<children>

<ToolBar minHeight="-Infinity" minWidth="-Infinity" prefHeight="40.0" prefWidth="600.0" VBox.vgrow="NEVER">
<items>
<Button fx:id="refreshAll" mnemonicParsing="false" onAction="#refreshAll" text="Refresh All" />
</items>
</ToolBar>
<TableView fx:id="tracesTable" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" GridPane.hgrow="ALWAYS" GridPane.rowIndex="1" VBox.vgrow="ALWAYS">
<columns>
<TableColumn fx:id="indicatorColumn" minWidth="22.0" maxWidth="22.0" prefWidth="22.0" />
<TableColumn fx:id="displayNameColumn" minWidth="130.0" prefWidth="260.0" text="Display Name"/>
<TableColumn fx:id="countColumn" minWidth="130" prefWidth="130.0" text="Sample Count" />
<TableColumn fx:id="meanColumn" minWidth="200.0" prefWidth="200.0" text="Mean" />
<TableColumn fx:id="medianColumn" minWidth="200.0" prefWidth="200.0" text="Median" />
<TableColumn fx:id="stdDevColumn" minWidth="200.0" prefWidth="200.0" text="Standard Deviation" />
<TableColumn fx:id="minColumn" minWidth="200.0" prefWidth="200.0" text="Min Value" />
<TableColumn fx:id="maxColumn" minWidth="200.0" prefWidth="200.0" text="Max Value" />
<TableColumn fx:id="sumColumn" minWidth="200.0" prefWidth="200.0" text="Sum" />
</columns>
</TableView>
</children>
<columnConstraints>
<ColumnConstraints />
</columnConstraints>
<rowConstraints>
<RowConstraints />
<RowConstraints />
</rowConstraints>
</GridPane>
<VBox xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="org.csstudio.trends.databrowser3.ui.properties.StatisticsTabController">
<children>
<ToolBar prefHeight="40.0" VBox.vgrow="NEVER">
<items>
<Button fx:id="refreshAll" mnemonicParsing="false" onAction="#refreshAll" text="Refresh All"/>
</items>
</ToolBar>
<ScrollPane fitToHeight="true" fitToWidth="true" VBox.vgrow="ALWAYS">
<TableView fx:id="tracesTable">
<columns>
<TableColumn fx:id="indicatorColumn" minWidth="22.0" maxWidth="22.0" prefWidth="22.0"/>
<TableColumn fx:id="displayNameColumn" minWidth="130.0" prefWidth="260.0" text="Display Name"/>
<TableColumn fx:id="countColumn" minWidth="130" prefWidth="130.0" text="Sample Count"/>
<TableColumn fx:id="meanColumn" minWidth="200.0" prefWidth="200.0" text="Mean"/>
<TableColumn fx:id="medianColumn" minWidth="200.0" prefWidth="200.0" text="Median"/>
<TableColumn fx:id="stdDevColumn" minWidth="200.0" prefWidth="200.0" text="Standard Deviation"/>
<TableColumn fx:id="minColumn" minWidth="200.0" prefWidth="200.0" text="Min Value"/>
<TableColumn fx:id="maxColumn" minWidth="200.0" prefWidth="200.0" text="Max Value"/>
<TableColumn fx:id="sumColumn" minWidth="200.0" prefWidth="200.0" text="Sum"/>
</columns>
</TableView>
</ScrollPane>
</children>
</VBox>

0 comments on commit e0d09f9

Please sign in to comment.