/**
* 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();
}
AbstractFormBuilder.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:ComputerScienceGraduation
作者:
评论列表
文章目录