本文整理汇总了Java中org.kuali.rice.krad.uif.element.ViewHeader类的典型用法代码示例。如果您正苦于以下问题:Java ViewHeader类的具体用法?Java ViewHeader怎么用?Java ViewHeader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ViewHeader类属于org.kuali.rice.krad.uif.element包,在下文中一共展示了ViewHeader类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isStickyHeader
import org.kuali.rice.krad.uif.element.ViewHeader; //导入依赖的package包/类
/**
* If true, the ViewHeader for this view will be sticky (fixed to top of window).
*
* @return true if the header is sticky, false otherwise
*/
@BeanTagAttribute
public boolean isStickyHeader() {
if (this.getHeader() != null && this.getHeader() instanceof ViewHeader) {
return ((ViewHeader) this.getHeader()).isSticky();
} else {
return false;
}
}
示例2: setStickyHeader
import org.kuali.rice.krad.uif.element.ViewHeader; //导入依赖的package包/类
/**
* @see View#isStickyHeader()
*/
public void setStickyHeader(boolean stickyHeader) {
checkMutable(true);
this.stickyHeader = stickyHeader;
if (this.getHeader() != null && this.getHeader() instanceof ViewHeader) {
((ViewHeader) this.getHeader()).setSticky(stickyHeader);
}
}
示例3: testKradUifTemplateHeaderMetadata
import org.kuali.rice.krad.uif.element.ViewHeader; //导入依赖的package包/类
@Test
public void testKradUifTemplateHeaderMetadata() {
FormView formView = new FormView();
ViewHeader viewHeader = new ViewHeader();
formView.setHeader(viewHeader);
Message headerMetadataMessage = new Message();
viewHeader.setMetadataMessage(headerMetadataMessage);
assertSame(headerMetadataMessage, ObjectPropertyUtils.getPropertyValue(formView, "header.metadataMessage"));
}
示例4: isStickyHeader
import org.kuali.rice.krad.uif.element.ViewHeader; //导入依赖的package包/类
/**
* If true, the ViewHeader for this view will be sticky (fixed to top of window)
*
* @return true if the header is sticky, false otherwise
*/
@BeanTagAttribute(name = "stickyHeader")
public boolean isStickyHeader() {
if (this.getHeader() != null && this.getHeader() instanceof ViewHeader) {
return ((ViewHeader) this.getHeader()).isSticky();
} else {
return false;
}
}
示例5: setStickyHeader
import org.kuali.rice.krad.uif.element.ViewHeader; //导入依赖的package包/类
/**
* Set to true to make the ViewHeader sticky
*
* @param stickyHeader
*/
public void setStickyHeader(boolean stickyHeader) {
this.stickyHeader = stickyHeader;
if (this.getHeader() != null && this.getHeader() instanceof ViewHeader) {
((ViewHeader) this.getHeader()).setSticky(stickyHeader);
}
}