//package COM.blackdirt.convert;

public class bdcFrame extends Control {

    /////////////////////////////////
    // Component Definition Methods
    //////////////////////////////////


    public void initialize(Control c) {
      super.initialize(c);
        this.setType("Frame");
        this.setJavaType("BDFrame");
    }
    
    public String declareString() {
        return ("    BDFrame  " + this.getName() + " = new BDFrame(" +  "\"" + this.getCaption() + "\"" + "); "  );
    }

    public String controlArrayInitString() {
        return ("      " + this.getName() + "[" + getIndex() + "] = new BDFrame(" + "\"" +  this.getCaption() + "\""  + ");"  );
    }

    public String addString( Control cParent) {
    String returnString;
    String thisName;

      returnString = defaultAddString(cParent);
      
      if (isControlArray()){
         thisName = this.getName() + "[" + getIndex() +"]";
      }
      else{
         thisName = getName();
      }
      returnString = returnString + "      " + thisName + ".setLayout(null);" + "\n";
      return (returnString);
    }

    public String addString11( Control cParent) {
    String returnString;
    String thisName;

      returnString = defaultAddString11(cParent);
      
      if (isControlArray()){
         thisName = this.getName() + "[" + getIndex() +"]";
      }
      else{
         thisName = getName();
      }
      returnString = returnString + "      " + thisName + ".setLayout(null);" + "\n";
      return (returnString);

    }



}
