All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.as.console.client.shared.subsys.jca.ConnectionProperties Maven / Gradle / Ivy

Go to download

Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.

There is a newer version: 0.7.0.Final
Show newest version
package org.jboss.as.console.client.shared.subsys.jca;

import com.google.gwt.user.client.ui.Widget;
import org.jboss.as.console.client.shared.properties.PropertyEditor;
import org.jboss.as.console.client.shared.properties.PropertyRecord;

import java.util.List;

/**
 * @author Heiko Braun
 * @date 10/25/11
 */
public class ConnectionProperties {

    private DataSourcePresenter presenter;
    private PropertyEditor propEditor = null;
    private Widget widget;

    public ConnectionProperties(DataSourcePresenter presenter) {
        this.presenter = presenter;
        propEditor = new PropertyEditor(presenter, true);
        propEditor.setHelpText("JDBC connection properties");
        widget = propEditor.asWidget();
        propEditor.setAllowEditProps(false);
    }

    Widget asWidget() {
       return widget;
    }

    public void setProperties(String reference, List properties) {

        if(propEditor!=null)
            propEditor.setProperties(reference, properties);
    }


    public void clearProperties() {
        propEditor.clearValues();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy