/**
 * This file was automatically generated.  Do not manually modify this file.
 *
 * Runtime vendor: SunSoft, Inc.
 * Runtime version: 1
 *
 * Visual vendor: SunSoft, Inc.
 * Visual version: 1
 */


import sunsoft.jws.visual.rt.awt.GBConstraints;
import sunsoft.jws.visual.rt.base.*;
import sunsoft.jws.visual.rt.shadow.*;
import sunsoft.jws.visual.rt.shadow.java.awt.*;
import sunsoft.jws.visual.rt.type.*;


public class SocketClientRoot extends Root {
  public ButtonShadow button1;
  public GBPanelShadow gbpanel1;
  public Root root1;
  public TextAreaShadow textarea1;
  public TextFieldShadow textfield1;

  public SocketClientRoot(Group group) {
    setGroup(group);

    gbpanel1 = new GBPanelShadow();
    gbpanel1.set("name", "gbpanel1");
    add(gbpanel1);
    {
      int _tmp[] = {14,14};
      gbpanel1.set("rowHeights", _tmp);
    }
    gbpanel1.set("GBConstraints", new GBConstraints("x=0;y=0;fill=both"));
    {
      int _tmp[] = {14,14,14,14};
      gbpanel1.set("columnWidths", _tmp);
    }
    {
      double _tmp[] = {0,0};
      gbpanel1.set("rowWeights", _tmp);
    }
    {
      double _tmp[] = {0,0,0,0};
      gbpanel1.set("columnWeights", _tmp);
    }

    textfield1 = new TextFieldShadow();
    textfield1.set("name", "textfield1");
    gbpanel1.add(textfield1);
    textfield1.set("GBConstraints", new GBConstraints("x=0;y=0;fill=horizontal"));

    textarea1 = new TextAreaShadow();
    textarea1.set("name", "textarea1");
    gbpanel1.add(textarea1);
    textarea1.set("GBConstraints", new GBConstraints("x=0;y=1;width=2;fill=both;ipadx=120"));
    textarea1.set("editable", Boolean.FALSE);

    button1 = new ButtonShadow();
    button1.set("name", "button1");
    gbpanel1.add(button1);
    button1.set("GBConstraints", new GBConstraints("x=1;y=0"));
    button1.set("text", "Send");

    group.addOperations(new SocketClientOps());
  }

  // methods from lib/visual/gen/methods.java

  /**
   * Converts a string to the specified type.
   */
  private Object convert(String type, String value) {
    return(Converter.getConverter(type).convertFromString(value));
  }
}
