本文整理汇总了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>();
}
示例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());
}
}
}
}
示例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;
}
示例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;
}
示例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;
}