Package com.scriptographer.adm.layout

Examples of com.scriptographer.adm.layout.TableLayout


              str,
              reader.readInteger(0),
              reader.readInteger(0));
        } else {
          // TableLayout
          return new TableLayout(str,
              reader.readString(""),
              reader.readInteger(0),
              reader.readInteger(0));
        }
      } else {
        reader.revert();
        // Try if there's an array now:
        Object[] array = reader.readObject(Object[].class);
        if (array != null) {
          // TableLayout
          return new TableLayout(array,
              reader.readObject(Object[].class),
              reader.readInteger(0),
              reader.readInteger(0));
        } else {
          reader.revert();
          // BorderLayout
          return new BorderLayout(
              reader.readInteger(0),
              reader.readInteger(0));
        }
      }
    } else if (reader.isMap()) {
      if (reader.has("columns")) {
        // TableLayout
        String str = reader.readString("columns");
        if (str != null) {
          return new TableLayoutstr,
              reader.readString("rows", ""),
              reader.readInteger("", 0),
              reader.readInteger(0));
        } else {
          Object[] array = reader.readObject("columns",
              Object[].class);
          if (array != null) {
            return new TableLayout(array,
                reader.readObject("rows", Object[].class),
                reader.readInteger("hgap", 0),
                reader.readInteger("vgap", 0));
          } else {
            throw new RuntimeException(
View Full Code Here


    Button okButton = new Button(this);
    okButton.setText("  OK  ");
    buttons.addToContent(okButton);
   
    // Add one more row for the buttons to the layout.
    TableLayout layout =
        AdmPaletteProxy.createLayout(this, components, true, 1, 5);

    int numRows = layout.getNumRow();

    // Add row of buttons to the layout
    addToContent(buttons, "1, " + (numRows - 1) + ", 2, "
        + (numRows - 1) + ", right, top");
View Full Code Here

      if (borderLayout) {
        this.setLayout(new BorderLayout());
      } else {
        // TODO: Figure out amount of rows and columns by analyzing the keys.
        // for now we don't do that...
        this.setLayout(new TableLayout("preferred", "preferred"));
      }
    }

    Content content = getContent();
    content.removeAll();
View Full Code Here

    double[][] sizes = {
      { TableLayout.PREFERRED, TableLayout.FILL, TableLayout.PREFERRED },
      { TableLayout.FILL, TableLayout.PREFERRED }
    };

    TableLayout layout = new TableLayout(sizes);
    setLayout(layout);
    setMargin(10);

    ImagePane logo = new ImagePane(this);
    logo.setImage(AdmUiFactory.getImage("logo.png"));
View Full Code Here

      { TableLayout.PREFERRED, TableLayout.FILL, TableLayout.PREFERRED,
        TableLayout.PREFERRED },
      { TableLayout.FILL, TableLayout.PREFERRED }
    };

    TableLayout layout = new TableLayout(sizes);
    this.setLayout(layout);
    this.setMargin(10);

    ImagePane logo = new ImagePane(this);
    logo.setImage(AdmUiFactory.getImage("logo.png"));
View Full Code Here

        ? new double[] { TableLayout.PREFERRED, TableLayout.PREFERRED,
          TableLayout.FILL }
        : new double[] { TableLayout.PREFERRED, TableLayout.FILL },
      rows
    };
    TableLayout layout = new TableLayout(sizes, 0, gap);
    dialog.setLayout(layout);
    dialog.setContent(content);

    return layout;
  }
View Full Code Here

        double[][] sizes = {
          new double[] { TableLayout.PREFERRED, TableLayout.FILL },
          new double[] { TableLayout.FILL, TableLayout.PREFERRED,
              TableLayout.FILL }
        };
        group.setLayout(new TableLayout(sizes));
        group.add(labelItem, "0, 0, 0, 2");
        group.setMarginTop(2);
      } else {
        group = null;
      }
View Full Code Here

TOP

Related Classes of com.scriptographer.adm.layout.TableLayout

Copyright © 2018 www.massapicom. 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.