本文整理汇总了Java中org.uberfire.ext.layout.editor.api.editor.LayoutColumn.getRows方法的典型用法代码示例。如果您正苦于以下问题:Java LayoutColumn.getRows方法的具体用法?Java LayoutColumn.getRows怎么用?Java LayoutColumn.getRows使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.uberfire.ext.layout.editor.api.editor.LayoutColumn
的用法示例。
在下文中一共展示了LayoutColumn.getRows方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: extractColumnWithComponents
import org.uberfire.ext.layout.editor.api.editor.LayoutColumn; //导入方法依赖的package包/类
private void extractColumnWithComponents(LayoutColumn layoutColumn) {
for (LayoutRow row : layoutColumn.getRows()) {
Integer columnWidth = new Integer(layoutColumn.getSpan());
final ColumnWithComponents columnWithComponents = createColumnWithComponentsInstance();
columnWithComponents
.init(id,
columnWidth,
pageStyle,
dropCommand(),
removeComponentCommand,
removeColumnCommand(),
currentLayoutTemplateSupplier,
getHeight(layoutColumn.getHeight()));
for (LayoutColumn column : row.getLayoutColumns()) {
ComponentColumn newComponentColumn = getComponentColumn(column);
newComponentColumn.setColumnHeight(getHeight(column.getHeight()));
columnWithComponents.withComponents(newComponentColumn);
}
this.columns.add(columnWithComponents);
}
}
示例2: hasNavigationComponents
import org.uberfire.ext.layout.editor.api.editor.LayoutColumn; //导入方法依赖的package包/类
public boolean hasNavigationComponents(LayoutRow row) {
for (LayoutColumn column : row.getLayoutColumns()) {
for (LayoutComponent component : column.getLayoutComponents()) {
NavDragComponentType dragType = NavDragComponentType.getByClassName(component.getDragTypeName());
if (dragType != null && ALL_NAV_GROUP_COMPONENTS.contains(dragType)) {
return true;
}
}
for (LayoutRow childRow : column.getRows()) {
boolean hasNavComps = hasNavigationComponents(childRow);
if (hasNavComps) {
return true;
}
}
}
return false;
}
示例3: columnHasNestedRows
import org.uberfire.ext.layout.editor.api.editor.LayoutColumn; //导入方法依赖的package包/类
private boolean columnHasNestedRows(LayoutColumn layoutColumn) {
return layoutColumn.getRows() != null && !layoutColumn.getRows().isEmpty();
}
示例4: columnHasNestedRows
import org.uberfire.ext.layout.editor.api.editor.LayoutColumn; //导入方法依赖的package包/类
private static boolean columnHasNestedRows(LayoutColumn layoutColumn) {
return layoutColumn.getRows() != null && !layoutColumn.getRows().isEmpty();
}