Examples of RowSpec


Examples of com.jgoodies.forms.layout.RowSpec

  }

  public void addSpace( int size )
  {
    if( size > 0 )
      layout.appendRow( new RowSpec( size + "px" ) );
  }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    {
      if( jlabel != null )
        jlabel.setVisible( false );

      if( rowIndex >= 0 && rowIndex < layout.getRowCount() )
        layout.setRowSpec( rowIndex, new RowSpec( "0px" ) );
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    {
      if( jlabel != null )
        jlabel.setVisible( true );

      if( rowIndex >= 0 && rowIndex < layout.getRowCount() )
        layout.setRowSpec( rowIndex, new RowSpec( rowSpacing + "px" ) );
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

  public SwingXFormImpl( String name, int leftIndent )
  {
    this.name = name;
    layout = new FormLayout( leftIndent + "px,left:pref,5px,left:default,5px:grow(1.0)" );
    panel = new JPanel( layout );
    rowSpec = new RowSpec( rowAlignment + ":pref" );
  }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

  }

  public void addSpace( int size )
  {
    if( size > 0 )
      layout.appendRow( new RowSpec( size + "px" ) );
  }
View Full Code Here

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

     * Adds a strut of a specified size.
     *
     * @param size  a constant that describes the gap
     */
    public void addStrut(ConstantSize size) {
        getLayout().appendRow(new RowSpec(RowSpec.TOP,
                                          size,
                                          RowSpec.NO_GROW));
        nextRow();
    }
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.