lf uten tester
This commit is contained in:
@@ -1,16 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.ListView?>
|
||||
|
||||
<VBox alignment="CENTER" spacing="20.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="app.AppController">
|
||||
<children>
|
||||
<Label text="Primary View" />
|
||||
<Button fx:id="primaryButton" text="Switch to Secondary View" onAction="#switchToSecondary"/>
|
||||
</children>
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
<GridPane xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="app.AppController"
|
||||
alignment="CENTER" hgap="10.0" vgap="10.0" >
|
||||
|
||||
<ListView fx:id="operandsView" prefHeight="80.0"
|
||||
GridPane.rowIndex="0" GridPane.columnIndex="0" GridPane.columnSpan="4"/>
|
||||
<Label text="" fx:id="operandView"
|
||||
GridPane.rowIndex="1" GridPane.columnIndex="0" GridPane.columnSpan="4"/>
|
||||
|
||||
<Button text="E n t e r" onAction="#handleEnter"
|
||||
GridPane.rowIndex="2" GridPane.columnIndex="3" GridPane.rowSpan="4"/>
|
||||
|
||||
<Button text="7" onAction="#handleDigit"
|
||||
GridPane.rowIndex="2" GridPane.columnIndex="0"/>
|
||||
<Button text="8" onAction="#handleDigit"
|
||||
GridPane.rowIndex="2" GridPane.columnIndex="1"/>
|
||||
<Button text="9" onAction="#handleDigit"
|
||||
GridPane.rowIndex="2" GridPane.columnIndex="2"/>
|
||||
<Button text="4" onAction="#handleDigit"
|
||||
GridPane.rowIndex="3" GridPane.columnIndex="0"/>
|
||||
<Button text="5" onAction="#handleDigit"
|
||||
GridPane.rowIndex="3" GridPane.columnIndex="1"/>
|
||||
<Button text="6" onAction="#handleDigit"
|
||||
GridPane.rowIndex="3" GridPane.columnIndex="2"/>
|
||||
<Button text="1" onAction="#handleDigit"
|
||||
GridPane.rowIndex="4" GridPane.columnIndex="0"/>
|
||||
<Button text="2" onAction="#handleDigit"
|
||||
GridPane.rowIndex="4" GridPane.columnIndex="1"/>
|
||||
<Button text="3" onAction="#handleDigit"
|
||||
GridPane.rowIndex="4" GridPane.columnIndex="2"/>
|
||||
<Button text="0" onAction="#handleDigit"
|
||||
GridPane.rowIndex="5" GridPane.columnIndex="0"/>
|
||||
<Button text="." onAction="#handlePoint"
|
||||
GridPane.rowIndex="5" GridPane.columnIndex="1"/>
|
||||
<Button text="π" onAction="#handlePi"
|
||||
GridPane.rowIndex="5" GridPane.columnIndex="2"/>
|
||||
|
||||
<Button text="+" onAction="#handleOpAdd"
|
||||
GridPane.rowIndex="6" GridPane.columnIndex="0"/>
|
||||
<Button text="-" onAction="#handleOpSub"
|
||||
GridPane.rowIndex="6" GridPane.columnIndex="1"/>
|
||||
<Button text="*" onAction="#handleOpMult"
|
||||
GridPane.rowIndex="6" GridPane.columnIndex="2"/>
|
||||
<Button text="/" onAction="#handleOpDiv"
|
||||
GridPane.rowIndex="6" GridPane.columnIndex="3"/>
|
||||
</GridPane>
|
||||
|
||||
Reference in New Issue
Block a user