Examples of RatioConstraint


Examples of org.openbp.swing.components.treetable.resize.RatioConstraint

    setRootVisible(false);
    setRowSelectionAllowed(false);

    // Col. 2 = 2 x col 1
    // Editor column min. 200 pixel
    ColumnSizeConstraint csc = new RatioConstraint(new int [] { 1, 2 }, true);
    csc.setMinimumOfColumn(200, 1, this);
    setColumnSizeConstraint(csc);

    createActions();

    processSelection(null);
View Full Code Here

Examples of org.openbp.swing.components.treetable.resize.RatioConstraint

    // is always completely visible and the rest of the width is evenly
    // distributed between the other columns.
    // If the first column is bigger than the half of the table width
    // the tree column is set to the half table width. The user can
    // still make the column smaller or bigger.
    ColumnSizeConstraint csc = new RatioConstraint(true);
    csc.addMaxSizeForColumn(0, 0.5);
    setAutoResizeMode(AUTO_RESIZE_NEXT_COLUMN);
    setColumnSizeConstraint(csc);

    setShowGrid(false);
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.