Examples of RowSpec


Examples of com.jgoodies.forms.layout.RowSpec

     * @param layout   the <code>FormLayout</code> to inspect
     */
    public static void dumpRowSpecs(FormLayout layout) {
        System.out.print("ROW SPECS:   ");
        for (int row = 1; row <= layout.getRowCount(); row++) {
            RowSpec rowSpec = layout.getRowSpec(row);
            System.out.print(rowSpec.toShortString());
            if (row < layout.getRowCount())
                System.out.print(", ");
        }
        System.out.println();
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

     *
     * @param lineGapSize   the <code>ConstantSize</code> that describes
     *     the size of the gaps between component lines
     */
    public void setLineGapSize(ConstantSize lineGapSize) {
        RowSpec rowSpec = RowSpec.createGap(lineGapSize);
        this.lineGapSpec = rowSpec;
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

     *
     * @param paragraphGapSize   the <code>ConstantSize</code> that describes
     *     the size of the gaps between paragraphs
     */
    public void setParagraphGapSize(ConstantSize paragraphGapSize) {
        RowSpec rowSpec = RowSpec.createGap(paragraphGapSize);
        this.paragraphGapSpec = rowSpec;
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    private void ensureHasGapRow(RowSpec gapRowSpec) {
        if ((getRow() == 1) || (getRow() <= getRowCount()))
            return;

        if (getRow() <= getRowCount()) {
            RowSpec rowSpec = getCursorRowSpec();
            if ((rowSpec == gapRowSpec))
                return;
        }
        appendRow(gapRowSpec);
        nextLine();
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    reporter.setMessageArea(messageArea);

    JPanel panel = new JPanel(new FormLayout(new ColumnSpec[] {
        new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
        FormFactory.UNRELATED_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW) },
        new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), }));
    CellConstraints cc = new CellConstraints();
    panel.add(reporter.getControl(), cc.xy(1, 1));
    AbstractCommand[] reporterCommands = reporter.getReporterCommands();
    AbstractCommand[] commandStack = new AbstractCommand[reporterCommands.length + 1];
    System.arraycopy(reporterCommands, 0, commandStack, 0, reporterCommands.length);
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    
     * @param lineGapSize   the <coide>ConstantSize</code> that describes
     *     the size of the gaps between component lines
     */
    public void setLineGapSize(ConstantSize lineGapSize) {
        RowSpec rowSpec = FormFactory.createGapRowSpec(lineGapSize);
        // No longer supported in version 1.0.4/1.0.5 which are the oldest available versions in maven
        // central repo
        //
        //this.lineGapSpec = rowSpec.asUnmodifyable();
        this.lineGapSpec = rowSpec ;
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    
     * @param paragraphGapSize   the <coide>ConstantSize</code> that describes
     *     the size of the gaps between paragraphs
     */
    public void setParagraphGapSize(ConstantSize paragraphGapSize) {
        RowSpec rowSpec = FormFactory.createGapRowSpec(paragraphGapSize);
        // No longer supported in version 1.0.4/1.0.5 which are the oldest available versions in maven
        // central repo
        //       
        //this.paragraphGapSpec = rowSpec.asUnmodifyable();
        this.paragraphGapSpec = rowSpec;
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

     */
    private void ensureHasGapRow(RowSpec gapRowSpec) {
        if ((getRow() == 1) || (getRow() <= getRowCount()))
            return;
        if (getRow() <= getRowCount()) {
            RowSpec rowSpec = getCursorRowSpec();
            if ((rowSpec == gapRowSpec))
                return;
        }
        appendRow(gapRowSpec);
        nextLine();
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

  public SimpleForm( FormLayout layout )
  {
    this.layout = layout;
    panel = new JPanel( layout );
    rowSpec = new RowSpec( rowAlignment + ":pref" );
  }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

  }

  public void setRowAlignment( String rowAlignment )
  {
    this.rowAlignment = rowAlignment;
    rowSpec = new RowSpec( rowAlignment + ":pref" );
  }
View Full Code Here
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.