当前位置: 首页>>代码示例>>Java>>正文


Java Orientation类代码示例

本文整理汇总了Java中org.kuali.rice.krad.uif.UifConstants.Orientation的典型用法代码示例。如果您正苦于以下问题:Java Orientation类的具体用法?Java Orientation怎么用?Java Orientation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Orientation类属于org.kuali.rice.krad.uif.UifConstants包,在下文中一共展示了Orientation类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: BoxLayoutManager

import org.kuali.rice.krad.uif.UifConstants.Orientation; //导入依赖的package包/类
public BoxLayoutManager() {
    super();

    itemStyle = "";
    orientation = Orientation.HORIZONTAL;
    itemStyleClasses = new ArrayList<String>();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:BoxLayoutManager.java

示例2: performFinalize

import org.kuali.rice.krad.uif.UifConstants.Orientation; //导入依赖的package包/类
/**
 * Sets the item span style
 *
 * @see org.kuali.rice.krad.uif.layout.LayoutManagerBase#performFinalize(org.kuali.rice.krad.uif.view.View,
 *      java.lang.Object, org.kuali.rice.krad.uif.container.Container)
 */
@Override
public void performFinalize(View view, Object model, Container container) {
    super.performFinalize(view, model, container);

    if (StringUtils.isBlank(itemStyle)) {
        itemStyle = "";
    }

    if (StringUtils.isNotEmpty(padding)) {
        if (orientation.equals(Orientation.VERTICAL)) {
            // set item to block which will cause a line break and margin
            // bottom for padding
            itemStyle += CssConstants.getCssStyle(Padding.PADDING_BOTTOM, padding);
        } else {
            // set margin right for padding
            itemStyle += CssConstants.getCssStyle(Padding.PADDING_RIGHT, padding);
        }
    }

    // classes to identify this layout in jQuery and to clear the float correctly in all browsers
    this.addStyleClass("clearfix");

    for (Component c : container.getItems()) {
        if (c != null) {
            // add item styles to the the item
            List<String> styleClasses = c.getCssClasses();
            if (orientation.equals(Orientation.HORIZONTAL)) {
                styleClasses.add("uif-boxLayoutHorizontalItem");
                styleClasses.addAll(this.getItemStyleClasses());
            } else {
                styleClasses.add("uif-boxLayoutVerticalItem");
                styleClasses.addAll(this.getItemStyleClasses());
                styleClasses.add("clearfix");
            }
            c.setCssClasses(styleClasses);

            if (c.getStyle() != null && !c.getStyle().endsWith(";")) {
                c.appendToStyle(";" + this.getItemStyle());
            } else {
                c.appendToStyle(this.getItemStyle());
            }
        }
    }
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:51,代码来源:BoxLayoutManager.java

示例3: getOrientation

import org.kuali.rice.krad.uif.UifConstants.Orientation; //导入依赖的package包/类
/**
 * Indicates whether the components should be rendered in a horizontal or
 * vertical column
 *
 * @return orientation configured for layout
 */
@BeanTagAttribute
public Orientation getOrientation() {
    return this.orientation;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:BoxLayoutManager.java

示例4: setOrientation

import org.kuali.rice.krad.uif.UifConstants.Orientation; //导入依赖的package包/类
/**
 * Setter for the orientation for layout
 *
 * @param orientation
 */
public void setOrientation(Orientation orientation) {
    this.orientation = orientation;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:9,代码来源:BoxLayoutManager.java

示例5: getOrientation

import org.kuali.rice.krad.uif.UifConstants.Orientation; //导入依赖的package包/类
/**
 * Indicates whether the components should be rendered in a horizontal or
 * vertical column
 *
 * @return orientation configured for layout
 */
@BeanTagAttribute(name = "orientation", type = BeanTagAttribute.AttributeType.SINGLEBEAN)
public Orientation getOrientation() {
    return this.orientation;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:11,代码来源:BoxLayoutManager.java


注:本文中的org.kuali.rice.krad.uif.UifConstants.Orientation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。