• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java MaterialPanel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



MaterialPanel类属于gwt.material.design.client.ui包,在下文中一共展示了MaterialPanel类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
 
开发者ID:lumongo,项目名称:lumongo,代码行数:22,代码来源:QueryView.java


示例2: CourseView

import gwt.material.design.client.ui.MaterialPanel; //导入依赖的package包/类
private CourseView() {
	
	MaterialRow row = new MaterialRow();
		MaterialColumn tocColumn = new MaterialColumn();
		tocColumn.setGrid("l2");
		tocColumn.setHideOn(HideOn.HIDE_ON_MED_DOWN);
			toc = new MaterialScrollspy();
			toc.addStyleName(ApplicationShell.res().style().toc());
		tocColumn.add(toc);
			HTML dummy = new HTML(" ");	// for column to survive pinning of TOC
		tocColumn.add(dummy);
	row.add(tocColumn);
		MaterialColumn lecturesColumn = new MaterialColumn();
		lecturesColumn.setGrid("s12 m12 l8");
			courseBanner = new CourseBanner();
		lecturesColumn.add(courseBanner);
			lecturesContainer = new MaterialPanel();
		lecturesColumn.add(lecturesContainer);
	row.add(lecturesColumn);
	add(row);
	
	MaterialPushpin.apply(toc, 64.0, 0.0);
	
}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:25,代码来源:CourseView.java


示例3: LectureView

import gwt.material.design.client.ui.MaterialPanel; //导入依赖的package包/类
private LectureView() {

		MaterialRow row = new MaterialRow();
			MaterialColumn tocColumn = new MaterialColumn();
			tocColumn.setGrid("l2");
			tocColumn.setHideOn(HideOn.HIDE_ON_MED_DOWN);
				toc = new MaterialScrollspy();
				toc.addStyleName(ApplicationShell.res().style().toc());
			tocColumn.add(toc);
				HTML dummy = new HTML(" ");	// for column to survive pinning of TOC
			tocColumn.add(dummy);
		row.add(tocColumn);
			MaterialColumn unitsColumn = new MaterialColumn();
			unitsColumn.setGrid("s12 m12 l8");
				lectureBanner = new LectureBanner();
			unitsColumn.add(lectureBanner);
				unitsContainer = new MaterialPanel();
			unitsColumn.add(unitsContainer);
		row.add(unitsColumn);
		add(row);
		
		MaterialPushpin.apply(toc, 64.0, 0.0);
		
	}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:25,代码来源:LectureView.java


示例4: testChildren

import gwt.material.design.client.ui.MaterialPanel; //导入依赖的package包/类
public void testChildren() {
    // given
    T widget = getWidget();

    // when / then
    if (widget.getChildren().size() == 0) {
        int childCount = 3;
        for (int i = 1; i <= childCount; i++) {
            MaterialPanel panel = new MaterialPanel();
            widget.add(panel);
        }
        assertTrue(widget.getChildren().size() != 0);
        assertEquals(3, widget.getChildren().size());
        widget.getChildren().remove(0);
        assertEquals(2, widget.getChildren().size());
        widget.clear();
        assertEquals(0, widget.getChildren().size());
    }
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material,代码行数:20,代码来源:MaterialWidgetTest.java


示例5: testAnimation

import gwt.material.design.client.ui.MaterialPanel; //导入依赖的package包/类
public void testAnimation() {
    MaterialPanel panel = new MaterialPanel();
    RootPanel.get().add(panel);
    MaterialAnimation animation = new MaterialAnimation();
    animation.delay(0);
    assertEquals(animation.getDelay(), 0);
    animation.infinite(true);
    assertTrue(animation.isInfinite());
    animation.infinite(false);
    assertFalse(animation.isInfinite());
    animation.duration(20);
    assertEquals(animation.getDuration(), 20);
    animation.transition(Transition.FADEIN);
    assertEquals(animation.getTransition(), Transition.FADEIN);
    animation.animate(panel);
    assertEquals(animation.getWidget(), panel);
    // Check Advance Logic
    String WEBKIT_ANIMATION_DURATION = panel.getElement().getStyle().getProperty("WebkitAnimationDuration");
    assertEquals(WEBKIT_ANIMATION_DURATION, animation.getDuration() + "ms");
}
 
开发者ID:GwtMaterialDesign,项目名称:gwt-material,代码行数:21,代码来源:AnimationTest.java


示例6: ClassroomView

import gwt.material.design.client.ui.MaterialPanel; //导入依赖的package包/类
private ClassroomView() {
	
	super();

	MaterialRow bannerRow = new MaterialRow();
		MaterialColumn bannerColumn = new MaterialColumn();
		bannerColumn.setGrid("s12 m12 l8");
		bannerColumn.setOffset("l2");
			ClassroomBanner baner = new ClassroomBanner();
		bannerColumn.add(baner);
	bannerRow.add(bannerColumn);
	add(bannerRow);
	
	filtersRow = new MaterialRow();
		MaterialColumn filtersColumn = new MaterialColumn();
		filtersColumn.setGrid("s12 m10");
		filtersColumn.setOffset("s0 m1");
			filtersPanel = new MaterialPanel();
			filtersPanel.addStyleName(res.style().filtersPanel());
		filtersColumn.add(filtersPanel);
	filtersRow.add(filtersColumn);
	filtersRow.setVisible(false);
	add(filtersRow);
	
	MaterialRow coursesRow = new MaterialRow();
		MaterialColumn coursesColumn = new MaterialColumn();
		coursesColumn.setGrid("s12 m10");
		coursesColumn.setOffset("s0 m1");
			coursesContainerRow = new MaterialRow();
		coursesColumn.add(coursesContainerRow);
	coursesRow.add(coursesColumn);
	add(coursesRow);
	
}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:35,代码来源:ClassroomView.java


示例7: UnitWidget

import gwt.material.design.client.ui.MaterialPanel; //导入依赖的package包/类
protected UnitWidget() {

		addStyleName(res.style().view());
		
		titlePanel = new MaterialPanel();
		titlePanel.addStyleName(res.style().titlePanel());
			title = new Heading(HeadingSize.H4);
			title.addStyleName(res.style().title());
		titlePanel.add(title);
		add(titlePanel);
		
		contentRow = new MaterialRow();
		contentRow.addStyleName(res.style().content());
		add(contentRow);

		nextRow = new MaterialRow();
		nextRow.addStyleName(res.style().next());
		nextRow.setVisible(false);
		add(nextRow);

//			MaterialIcon nextIcon = new MaterialIcon(IconType.NAVIGATE_NEXT);
//			nextIcon.setIconPosition(IconPosition.LEFT);
//			nextIcon.setMarginRight(0);
		nextLink = new MaterialLink(IconType.NAVIGATE_NEXT);
		nextLink.setIconPosition(IconPosition.LEFT);
		nextLink.setWaves(WavesType.DEFAULT);
		nextLink.addStyleName(res.style().nextLink());

		nextLink.addClickHandler(e -> onNext());

	}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:32,代码来源:UnitWidget.java


示例8: 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);
		
	}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:49,代码来源:LectureWidget.java


示例9: getTitlePanel

import gwt.material.design.client.ui.MaterialPanel; //导入依赖的package包/类
protected MaterialPanel getTitlePanel() { return titlePanel; } 
开发者ID:vsite-hr,项目名称:mentor,代码行数:2,代码来源:UnitWidget.java



注:本文中的gwt.material.design.client.ui.MaterialPanel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ThrowablePatternConverter类代码示例发布时间:2022-05-22
下一篇:
Java ExpressionUtils类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap