Examples of RowSpec


Examples of com.jgoodies.forms.layout.RowSpec

     * @param layout   the {@code FormLayout} 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

     * 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

Examples of com.jgoodies.forms.layout.RowSpec

     *
     * @param lineGapSize   the {@code ConstantSize} 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} 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

        if (getRow() == 1 || getRow() <= getRowCount()) {
            return;
        }

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

Examples of com.jgoodies.forms.layout.RowSpec

    }

    private static RowSpec[] getDefaultRowsWithGap(int rowCount) {
        List<RowSpec> rows = new ArrayList<RowSpec>();
        for (int i = 0; i < rowCount; i++) {
            rows.add(new RowSpec("fill:pref:nogrow"));
            rows.add(FormFactory.LINE_GAP_ROWSPEC);
        }
        rows.remove(rows.size() - 1);
        return rows.toArray(new RowSpec[] {});
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

     * @param minimumSize
     * @see #setRowSpec(RowSpec)
     */
    public void setMinimumButtonSize(Size minimumSize)
    {
        this.rowSpec = new RowSpec(minimumSize);
    }
View Full Code Here

Examples of com.jgoodies.forms.layout.RowSpec

    }
    final JLabel label = new JLabel(labelText, icon, JLabel.RIGHT);
    String tooltip = TextUtils.getOptionalText(getTooltip());
    label.setToolTipText(tooltip);
    if (KeyProperty.rowSpec == null) {
      KeyProperty.rowSpec = new RowSpec(RowSpec.FILL, Sizes.dluX(20), 0.0);
    }
    if (3 < builder.getColumn()) {
      builder.appendRelatedComponentsGapRow();
      builder.appendRow(KeyProperty.rowSpec);
      builder.nextLine(2);
View Full Code Here

Examples of org.apache.hadoop.hbase.rest.RowSpec

    servlet.getMetrics().incrementRequests(1);
    try {
      CellSetModel model = new CellSetModel();
      for (String rk : params.get(ROW_KEYS_PARAM_NAME)) {
        RowSpec rowSpec = new RowSpec(rk);

        if (this.versions != null) {
          rowSpec.setMaxVersions(this.versions);
        }

        ResultGenerator generator =
          ResultGenerator.fromRowSpec(this.tableResource.getName(), rowSpec, null);
        if (!generator.hasNext()) {
View Full Code Here

Examples of org.apache.hadoop.hbase.rest.RowSpec

    servlet.getMetrics().incrementRequests(1);
    try {
      CellSetModel model = new CellSetModel();
      for (String rk : params.get(ROW_KEYS_PARAM_NAME)) {
        RowSpec rowSpec = new RowSpec(rk);

        if (this.versions != null) {
          rowSpec.setMaxVersions(this.versions);
        }

        ResultGenerator generator = ResultGenerator.fromRowSpec(this.tableResource.getName(), rowSpec, null);
        if (!generator.hasNext()) {
          throw new WebApplicationException(Response.Status.NOT_FOUND);
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.