AbstractFormBuilder.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:ComputerScienceGraduation 作者:
/**
 * Constructs a <code>AbstractFormBuilder</code>
 * for the given FormLayout and layout container.
 *
 * @param layout     the {@link FormLayout} to use
 * @param container  the layout container
 *
 * @throws NullPointerException if the layout or container is null
 */
public AbstractFormBuilder(FormLayout layout, Container container) {
    if (layout == null)
        throw new NullPointerException("The layout must not be null.");

    if (container == null)
        throw new NullPointerException("The layout container must not be null.");

    this.container = container;
    this.layout    = layout;

    container.setLayout(layout);
    currentCellConstraints = new CellConstraints();
    ComponentOrientation orientation = container.getComponentOrientation();
    leftToRight = orientation.isLeftToRight()
              || !orientation.isHorizontal();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号