Package ptolemy.actor.gui.style

Examples of ptolemy.actor.gui.style.CheckBoxStyle


        _dataParameters = new Engine.ConversionParameters();

        get1x1asScalars = new Parameter(this, "get1x1asScalars",
                new BooleanToken(_dataParameters.getScalarMatrices));
        new CheckBoxStyle(get1x1asScalars, "style");

        getIntegerMatrices = new Parameter(this, "getIntegerMatrices",
                new BooleanToken(_dataParameters.getIntMatrices));
        new CheckBoxStyle(getIntegerMatrices, "style");

        // _time is not needed, fire() sets a matlab variable directly
        _iteration = new Variable(this, "iteration", new IntToken(1));
    }
View Full Code Here


    if (container.getAttribute(MOCKMODE_PARAM) != null) {
      mockModeParam = (Parameter) container.getAttribute(MOCKMODE_PARAM);
    } else {
      mockModeParam = new Parameter(container, MOCKMODE_PARAM, new BooleanToken(false));
      mockModeParam.setTypeEquals(BaseType.BOOLEAN);
      new CheckBoxStyle(mockModeParam, "style");
      registerConfigurableParameter(mockModeParam);
    }

    if (container.getAttribute(EXPERTMODE_PARAM) != null) {
      expertModeParam = (Parameter) container.getAttribute(EXPERTMODE_PARAM);
    } else {
      expertModeParam = new Parameter(container, EXPERTMODE_PARAM, new BooleanToken(false));
      expertModeParam.setTypeEquals(BaseType.BOOLEAN);
      new CheckBoxStyle(expertModeParam, "style");
      registerConfigurableParameter(expertModeParam);
    }

    if (container.getAttribute(VALIDATE_INITIALIZATION_PARAM) != null) {
      validateInitializationParam = (Parameter) container.getAttribute(VALIDATE_INITIALIZATION_PARAM);
    } else {
      validateInitializationParam = new Parameter(container, VALIDATE_INITIALIZATION_PARAM, new BooleanToken(true));
      validateInitializationParam.setTypeEquals(BaseType.BOOLEAN);
      new CheckBoxStyle(validateInitializationParam, "style");
      registerConfigurableParameter(validateInitializationParam);
    }

    if (container.getAttribute(VALIDATE_ITERATION_PARAM) != null) {
      validateIterationParam = (Parameter) container.getAttribute(VALIDATE_ITERATION_PARAM);
    } else {
      validateIterationParam = new Parameter(container, VALIDATE_ITERATION_PARAM, new BooleanToken(false));
      validateIterationParam.setTypeEquals(BaseType.BOOLEAN);
      new CheckBoxStyle(validateIterationParam, "style");
      registerConfigurableParameter(validateIterationParam);
    }
  }
View Full Code Here

TOP

Related Classes of ptolemy.actor.gui.style.CheckBoxStyle

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.