Search in sources :

Example 1 with PropertyBean

use of org.freeplane.core.resources.components.PropertyBean in project freeplane by freeplane.

the class OptionPanelController method getCurrentOptionProperties.

public Properties getCurrentOptionProperties() {
    final Properties p = new Properties();
    Vector<IPropertyControl> controls = this.propertyControls;
    for (final IPropertyControl control : controls) {
        if (control instanceof PropertyBean) {
            final PropertyBean bean = (PropertyBean) control;
            final String value = bean.getValue();
            if (value != null) {
                p.setProperty(bean.getName(), value);
            }
        }
    }
    return p;
}
Also used : IPropertyControl(org.freeplane.core.resources.components.IPropertyControl) Properties(java.util.Properties) PropertyBean(org.freeplane.core.resources.components.PropertyBean)

Aggregations

Properties (java.util.Properties)1 IPropertyControl (org.freeplane.core.resources.components.IPropertyControl)1 PropertyBean (org.freeplane.core.resources.components.PropertyBean)1