コード例 #1
0
ファイル: MainController.java プロジェクト: jforge/mqtt-spy
 @FXML
 private void resizeMessagePane() {
   // Connection tabs
   for (final ConnectionController controller : connectionManager.getConnectionControllers()) {
     controller.getResizeMessageContentMenu().setSelected(resizeMessagePaneMenu.isSelected());
   }
   // Offline (message log) tabs
   for (final ConnectionController controller :
       connectionManager.getOfflineConnectionControllers()) {
     controller.getResizeMessageContentMenu().setSelected(resizeMessagePaneMenu.isSelected());
   }
 }
コード例 #2
0
ファイル: MainController.java プロジェクト: jforge/mqtt-spy
  @FXML
  private void showPerspective() {
    if (spyPerspective.isSelected()) {
      selectedPerspective = MqttSpyPerspective.SPY;
    } else if (superSpyPerspective.isSelected()) {
      selectedPerspective = MqttSpyPerspective.SUPER_SPY;
    } else if (detailedPerspective.isSelected()) {
      selectedPerspective = MqttSpyPerspective.DETAILED;
    } else {
      selectedPerspective = MqttSpyPerspective.DEFAULT;
    }

    for (final ConnectionController connectionController :
        connectionManager.getConnectionControllers()) {
      showPerspective(connectionController);
    }

    logger.debug("Selected perspective = " + selectedPerspective.toString());
  }