Skip navigation links
org.netbeans.modules.project.ant.ui/1 1.80
org.netbeans.spi.project.support.ant.ui

Class StoreGroup

    • Constructor Detail

      • StoreGroup

        public StoreGroup()
    • Method Detail

      • store

        public void store(EditableProperties editableProperties)
        Stores all models created in the StoreGroup into given EditableProperties.
        Parameters:
        editableProperties - The properties where to store the values.
      • createToggleButtonModel

        public final JToggleButton.ToggleButtonModel createToggleButtonModel(PropertyEvaluator evaluator,
                                                                             String propertyName)
        Creates toggle button model representing a boolean in the StoreGroup.
        In case the value is one of "true", "yes" "on" the button model will be "selected". If the property does not exist or is set to some other value the result of isPressed will be false.
        Call to the store() method stores the model in appropriate form e.g "true/false", "yes/no", "on/off".
        Method will throw IllegalArgumentException if you try to get more than one model for one property.
        Parameters:
        evaluator - The PropertyEvaluator to be used to evaluate given property
        propertyName - Name of the ANT property
        Returns:
        ButtonModel representing the value
      • createInverseToggleButtonModel

        public final JToggleButton.ToggleButtonModel createInverseToggleButtonModel(PropertyEvaluator evaluator,
                                                                                    String propertyName)
        Creates toggle button model representing a boolean in the StoreGroup.
        In case the value is one of "true", "yes" "on" the button model will NOT be "selected". If the property does not exist or is set to some other value the result of isPressed will be true.
        Call to the store() method stores the model in appropriate form e.g "true/false", "yes/no", "on/off".
        Method will throw IllegalArgumentException if you try to get more than one model for one property.
        Parameters:
        evaluator - The PropertyEvaluator to be used to evaluate given property
        propertyName - Name of the ANT property
        Returns:
        ButtonModel representing the value
      • createStringDocument

        public final Document createStringDocument(PropertyEvaluator evaluator,
                                                   String propertyName)
        Creates Document containing the string value of given property. If the property does not exists or the value of it is null the resulting document will be empty.
        Method will throw IllegalArgumentException if you try to get more than one model for one property.
        Parameters:
        evaluator - The PropertyEvaluator to be used to evaluate given property
        propertyName - Name of the ANT property
        Returns:
        ButtonModel representing the value