Package org.jboss.as.console.client.shared.runtime.env

Source Code of org.jboss.as.console.client.shared.runtime.env.EnvironmentView

package org.jboss.as.console.client.shared.runtime.env;

import com.google.gwt.user.client.ui.Widget;
import org.jboss.as.console.client.core.SuspendableViewImpl;
import org.jboss.as.console.client.shared.general.EnvironmentProperties;
import org.jboss.as.console.client.shared.properties.PropertyRecord;

import java.util.List;

/**
* Created with IntelliJ IDEA. User: pehlh Date: 15.10.12 Time: 17:04 To change this template use File | Settings | File
* Templates.
*/
public class EnvironmentView extends SuspendableViewImpl implements EnvironmentPresenter.MyView
{
    private EnvironmentProperties properties;

    @Override
    public void setPresenter(EnvironmentPresenter environmentPresenter) {

    }

    @Override
    public Widget createWidget()
    {
        properties = new EnvironmentProperties();

        return properties.asWidget();
    }

    public void setEnvironment(final List<PropertyRecord> environment)
    {
        properties.setProperties(environment);
    }

    public void clearEnvironment()
    {
        properties.clearValues();
    }
}
TOP

Related Classes of org.jboss.as.console.client.shared.runtime.env.EnvironmentView

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.