本文整理匯總了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);
}
}