|
@ -32,6 +32,7 @@ import java.util.ResourceBundle; |
|
|
|
|
|
|
|
|
public class AppController implements Initializable { |
|
|
public class AppController implements Initializable { |
|
|
private static final String TRANSACTION_TAB_TYPE = "transaction"; |
|
|
private static final String TRANSACTION_TAB_TYPE = "transaction"; |
|
|
|
|
|
public static final String DRAG_OVER_CLASS = "drag-over"; |
|
|
|
|
|
|
|
|
@FXML |
|
|
@FXML |
|
|
private CheckMenuItem showTxHex; |
|
|
private CheckMenuItem showTxHex; |
|
@ -70,6 +71,14 @@ public class AppController implements Initializable { |
|
|
event.consume(); |
|
|
event.consume(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
rootStack.setOnDragEntered(event -> { |
|
|
|
|
|
rootStack.getStyleClass().add(DRAG_OVER_CLASS); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
rootStack.setOnDragExited(event -> { |
|
|
|
|
|
rootStack.getStyleClass().removeAll(DRAG_OVER_CLASS); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
tabs.getSelectionModel().selectedItemProperty().addListener((observable, old_val, selectedTab) -> { |
|
|
tabs.getSelectionModel().selectedItemProperty().addListener((observable, old_val, selectedTab) -> { |
|
|
if(selectedTab != null) { |
|
|
if(selectedTab != null) { |
|
|
String tabType = (String)selectedTab.getUserData(); |
|
|
String tabType = (String)selectedTab.getUserData(); |
|
|