Class CheckBoxStyle

    • Constructor Detail

      • CheckBoxStyle

        public CheckBoxStyle()
        Construct an attribute in the default workspace with an empty string as its name. The object is added to the directory of the workspace. Increment the version number of the workspace.
      • CheckBoxStyle

        public CheckBoxStyle​(Workspace workspace)
        Construct an attribute in the given workspace with an empty string as its name. The object is added to the directory of the workspace. Increment the version number of the workspace.
        Parameters:
        workspace - The workspace that will contain the attribute that is being constructed.
      • CheckBoxStyle

        public CheckBoxStyle​(Parameter container,
                             java.lang.String name)
                      throws IllegalActionException,
                             NameDuplicationException
        Construct an attribute with the specified container and name.
        Parameters:
        container - The container.
        name - The name of the attribute.
        Throws:
        IllegalActionException - If the attribute is not of an acceptable attribute for the container, or if the container is not an instance of Parameter.
        NameDuplicationException - If the name coincides with an attribute already in the container.
    • Method Detail

      • acceptable

        public boolean acceptable​(Settable param)
        Return true if this style is acceptable for the given parameter.
        Specified by:
        acceptable in class ParameterEditorStyle
        Parameters:
        param - The attribute that this annotates.
        Returns:
        True if the argument is a parameter that contains a boolean token.
      • addEntry

        public void addEntry​(PtolemyQuery query)
                      throws IllegalActionException
        Create a new check box entry in the given query associated with the parameter containing this style. The name of the entry is the name of the parameter. Attach the parameter to the created entry.
        Specified by:
        addEntry in class ParameterEditorStyle
        Parameters:
        query - The query into which to add the entry.
        Throws:
        IllegalActionException - If the containing parameter does not contain a boolean token.