本文整理汇总了Java中gwt.material.design.client.ui.MaterialPanel.setBackgroundColor方法的典型用法代码示例。如果您正苦于以下问题:Java MaterialPanel.setBackgroundColor方法的具体用法?Java MaterialPanel.setBackgroundColor怎么用?Java MaterialPanel.setBackgroundColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gwt.material.design.client.ui.MaterialPanel
的用法示例。
在下文中一共展示了MaterialPanel.setBackgroundColor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: QueryView
import gwt.material.design.client.ui.MaterialPanel; //导入方法依赖的package包/类
public QueryView() {
splitPanel = new MaterialSplitPanel();
splitPanel.setHeight(Window.getClientHeight() - 102 + "px");
splitPanel.setBarPosition(25);
leftPanel = new MaterialPanel();
leftPanel.setBackgroundColor(Color.WHITE);
leftPanel.setGrid("s6 l3");
leftScrollPanel = new ScrollPanel();
leftScrollPanel.setHeight(Window.getClientHeight() - 130 + "px");
rightPanel = new MaterialPanel();
rightPanel.setBackgroundColor(Color.GREY_LIGHTEN_2);
rightPanel.setGrid("s6 l9");
rightScrollPanel = new ScrollPanel();
rightScrollPanel.setHeight(Window.getClientHeight() - 130 + "px");
splitPanel.add(leftPanel);
splitPanel.add(rightPanel);
add(splitPanel);
}
示例2: LectureWidget
import gwt.material.design.client.ui.MaterialPanel; //导入方法依赖的package包/类
public LectureWidget(Course course, Lecture lecture) {
setBackgroundColor(Color.WHITE);
setShadow(1);
setHoverable(true);
addStyleName(res.style().view());
MaterialPanel titlePanel = new MaterialPanel();
titlePanel.setBackgroundColor(Color.RED_LIGHTEN_2);
titlePanel.addStyleName(res.style().titlePanel());
titleLink = new MaterialLink();
title = new Heading(HeadingSize.H5);
title.addStyleName(res.style().title());
title.setTextColor(Color.GREY_LIGHTEN_3);
titleLink.add(title);
titlePanel.add(titleLink);
add(titlePanel);
MaterialRow contentRow = new MaterialRow();
MaterialColumn imageColumn = new MaterialColumn();
imageColumn.setGrid("s12 m6 l4");
imageLink = new MaterialLink();
image = new MaterialImage();
image.addStyleName(res.style().image());
imageLink.add(image);
imageColumn.add(imageLink);
contentRow.add(imageColumn);
MaterialColumn contentColumn = new MaterialColumn();
contentColumn.setGrid("s12 m6 l8");
description = new Paragraph();
description.addStyleName(res.style().description());
description.addStyleName("flow-text");
contentColumn.add(description);
keywordsContainer = new MaterialPanel();
keywordsContainer.setPaddingLeft(20.0);
keywordsContainer.setPaddingRight(20.0);
keywordsContainer.setPaddingBottom(20.0);
contentColumn.add(keywordsContainer);
contentRow.add(contentColumn);
add(contentRow);
MaterialPanel actionsPanel = new MaterialPanel();
actionsPanel.addStyleName(res.style().actionsPanel());
unitsLink = new MaterialLink();
unitsLink.addStyleName(res.style().unitsLink());
actionsPanel.add(unitsLink);
add(actionsPanel);
setLecture(course, lecture);
}