Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package jfx;
- import javafx.event.ActionEvent;
- import javafx.event.EventHandler;
- public class RechenEngine implements EventHandler<ActionEvent> {
- public static final String OPERATION_ADD = "addition";
- public static final String OPERATION_SUB = "subtraktion";
- private static final String OPERATION_NONE = "";
- private double operandA;
- private double operandB;
- private double ergebnis;
- private String operation;
- public RechenEngine(double operandA, String operation) {
- this.operandA = operandA;
- this.operation = operation;
- }
- public void setOperandA(double operandA) {
- this.operandA = operandA;
- }
- public void setOperandB(double operandB) {
- this.operandB = operandB;
- }
- public void setOperation(String operation) {
- this.operation = operation;
- }
- public void clear() {
- }
- public void executeOperation() {
- }
- @Override
- public void handle(ActionEvent actionEvent) {
- System.out.println(operandA);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement