Package net.sf.robocode.settings

Examples of net.sf.robocode.settings.ISettingsListener


    battleField = new BattleField(800, 600);

    new BattleObserver(windowManager);

    properties.addPropertyListener(new ISettingsListener() {
      public void settingChanged(String property) {
        loadDisplayOptions();
        if (property.startsWith("robocode.options.rendering")) {
          initialized = false;
          reinitialize();
View Full Code Here


    if (isSoundEnabled()) {
      observer = new BattleObserver();
      battleManager.addListener(observer);
    }

    properties.addPropertyListener(new ISettingsListener() {
      public void settingChanged(String property) {
        if (property.equals(ISettingsManager.OPTIONS_SOUND_ENABLESOUND)) {
          updateListener();
        }
      }
View Full Code Here

    final ISettingsManager props = properties;

    loadPreferences(props);

    props.addPropertyListener(new ISettingsListener() {
      public void settingChanged(String property) {
        if (property.equals(ISettingsManager.OPTIONS_BATTLE_DESIREDTPS)) {
          PreferencesViewOptionsTab.this.desiredTpsTextField.setText("" + props.getOptionsBattleDesiredTPS());
        }
      }
View Full Code Here

      ISettingsManager props = properties;

      replayButton.setVisible(props.getOptionsCommonEnableReplayRecording());

      props.addPropertyListener(new ISettingsListener() {
        public void settingChanged(String property) {
          if (property.equals(ISettingsManager.OPTIONS_COMMON_ENABLE_REPLAY_RECORDING)) {
            replayButton.setVisible(properties.getOptionsCommonEnableReplayRecording());
          }
        }
View Full Code Here

      tpsSlider.setMajorTickSpacing(5);
      tpsSlider.setLabelTable(labels);

      WindowUtil.setFixedSize(tpsSlider, new Dimension((MAX_TPS_SLIDER_VALUE + 1) * 6, 40));

      props.addPropertyListener(new ISettingsListener() {
        public void settingChanged(String property) {
          if (property.equals(ISettingsManager.OPTIONS_BATTLE_DESIREDTPS)) {
            setTpsOnSlider(props.getOptionsBattleDesiredTPS());
          }
        }
View Full Code Here

      battleSaveRecordAsMenuItem.addActionListener(eventHandler);

      ISettingsManager props = properties;

      props.addPropertyListener(
          new ISettingsListener() {
        public void settingChanged(String property) {
          if (property.equals(ISettingsManager.OPTIONS_COMMON_ENABLE_REPLAY_RECORDING)) {
            final boolean canReplayRecord = recordManager.hasRecord();
            final boolean enableSaveRecord = properties.getOptionsCommonEnableReplayRecording()
                & canReplayRecord;
View Full Code Here

      battleExportRecordMenuItem.addActionListener(eventHandler);

      ISettingsManager props = properties;

      props.addPropertyListener(
          new ISettingsListener() {
        public void settingChanged(String property) {
          if (property.equals(ISettingsManager.OPTIONS_COMMON_ENABLE_REPLAY_RECORDING)) {
            final boolean canReplayRecord = recordManager.hasRecord();
            final boolean enableSaveRecord = properties.getOptionsCommonEnableReplayRecording()
                & canReplayRecord;
View Full Code Here

TOP

Related Classes of net.sf.robocode.settings.ISettingsListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.