public class StoreGroup extends Object
StoreGroup
is capable of doing two things: First create the representation of the project properties which
can be used in the GUI. Second at some time convert the objects back to the ANT properties form and
store them into the project properties.StoreGroup.createToggleButtonModel(org.netbeans.spi.project.support.ant.PropertyEvaluator, java.lang.String)
, StoreGroup.createStringDocument(org.netbeans.spi.project.support.ant.PropertyEvaluator, java.lang.String)
, etc. which
will create the swing models for you.setModel()
or setDocument()
SourceGroup with the EditableProperties
as parameter
Constructor and Description |
---|
StoreGroup() |
Modifier and Type | Method and Description |
---|---|
JToggleButton.ToggleButtonModel |
createInverseToggleButtonModel(PropertyEvaluator evaluator,
String propertyName)
Creates toggle button model representing a boolean in the StoreGroup.
|
Document |
createStringDocument(PropertyEvaluator evaluator,
String propertyName)
Creates Document containing the string value of given property.
|
JToggleButton.ToggleButtonModel |
createToggleButtonModel(PropertyEvaluator evaluator,
String propertyName)
Creates toggle button model representing a boolean in the StoreGroup.
|
void |
store(EditableProperties editableProperties)
Stores all models created in the StoreGroup into given
EditableProperties.
|
public void store(EditableProperties editableProperties)
editableProperties
- The properties where to store the
values.public final JToggleButton.ToggleButtonModel createToggleButtonModel(PropertyEvaluator evaluator, String propertyName)
IllegalArgumentException
if you try to get more
than one model for one property.evaluator
- The PropertyEvaluator to be used to evaluate given
propertypropertyName
- Name of the ANT propertypublic final JToggleButton.ToggleButtonModel createInverseToggleButtonModel(PropertyEvaluator evaluator, String propertyName)
IllegalArgumentException
if you try to get more
than one model for one property.evaluator
- The PropertyEvaluator to be used to evaluate given
propertypropertyName
- Name of the ANT propertypublic final Document createStringDocument(PropertyEvaluator evaluator, String propertyName)
IllegalArgumentException
if you try to get more
than one model for one property.evaluator
- The PropertyEvaluator to be used to evaluate given
propertypropertyName
- Name of the ANT property