本文整理汇总了Java中gwt.material.design.client.ui.MaterialButton类的典型用法代码示例。如果您正苦于以下问题:Java MaterialButton类的具体用法?Java MaterialButton怎么用?Java MaterialButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MaterialButton类属于gwt.material.design.client.ui包,在下文中一共展示了MaterialButton类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: buildFabButton
import gwt.material.design.client.ui.MaterialButton; //导入依赖的package包/类
public final void buildFabButton(MaterialButton button, IconType iconType) {
button.setType(ButtonType.FLOATING);
button.setWaves(WavesType.LIGHT);
button.setSize(ButtonSize.LARGE);
button.setBackgroundColor(Color.RED);
button.setIconType(iconType);
}
开发者ID:baldram,项目名称:tristar-eye,代码行数:8,代码来源:UiHelper.java
示例2: getFavAddButton
import gwt.material.design.client.ui.MaterialButton; //导入依赖的package包/类
private MaterialButton getFavAddButton(Integer objectId) {
MaterialButton button = new MaterialButton();
button.addClickHandler(clickEvent -> handleFavouriteSection(objectId, button));
button.setType(ButtonType.FLAT);
button.setIconType(IconType.FAVORITE);
button.setClass(FAVOURITES_ADD_CSS);
button.setBackgroundColor(Color.WHITE);
button.setType(ButtonType.FLOATING);
markFavouriteSelection(favouriteCameras.contains(objectId), button);
return button;
}
开发者ID:baldram,项目名称:tristar-eye,代码行数:12,代码来源:CameraDialog.java
示例3: createNavBarOptions
import gwt.material.design.client.ui.MaterialButton; //导入依赖的package包/类
MaterialButton createNavBarOptions() {
MaterialButton moreButton = new MaterialButton();
moreButton.add(createDropDown());
moreButton.setType(ButtonType.FLAT);
moreButton.setIconColor(Color.WHITE);
moreButton.setIconPosition(IconPosition.LEFT);
moreButton.setIconType(IconType.MORE_VERT);
moreButton.getElement().addClassName(NAV_OPTIONS_CSS_CLASS);
return moreButton;
}
开发者ID:baldram,项目名称:tristar-eye,代码行数:14,代码来源:ContextMenu.java
示例4: Footer
import gwt.material.design.client.ui.MaterialButton; //导入依赖的package包/类
public Footer() {
setBackgroundColor(Color.GREY_DARKEN_2);
MaterialRow row = new MaterialRow();
MaterialColumn leftColumn = new MaterialColumn(12, 6, 6);
MaterialColumn rightColumn = new MaterialColumn(12, 6, 6);
row.add(leftColumn);
row.add(rightColumn);
add(row);
setType(FooterType.FIXED);
MaterialLabel label = new MaterialLabel("LuMongo is distributed under a commercially friendly Apache Software license");
label.setTextColor(Color.WHITE);
label.setMarginTop(15);
leftColumn.add(label);
MaterialButton chatButton = new MaterialButton("Chat with Us");
chatButton.setMarginTop(10);
chatButton.setMarginLeft(20);
chatButton.setFloat(Style.Float.RIGHT);
chatButton.setIconType(IconType.CHAT_BUBBLE);
chatButton.addClickHandler(clickEvent -> Window
.open("https://gitter.im/lumongo/lumongo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge", "_blank",
"menubar=1,status=1,toolbar=1,scrollbars=1,resizable=1"));
rightColumn.add(chatButton);
MaterialButton sourceButton = new MaterialButton("Source");
sourceButton.setMarginTop(10);
sourceButton.setIconType(IconType.CODE);
sourceButton.setFloat(Style.Float.RIGHT);
sourceButton.addClickHandler(
clickEvent -> Window.open("https://github.com/lumongo/lumongo", "_blank", "menubar=1,status=1,toolbar=1,scrollbars=1,resizable=1"));
rightColumn.add(sourceButton);
}
开发者ID:lumongo,项目名称:lumongo,代码行数:37,代码来源:Footer.java
示例5: handleFavouriteSection
import gwt.material.design.client.ui.MaterialButton; //导入依赖的package包/类
private void handleFavouriteSection(Integer objectId, MaterialButton button) {
cameraHighlightEvent.fire(new CameraHighlight(objectId));
favouriteCameras = settings.getUserFavouriteCameras();
markFavouriteSelection(favouriteCameras.contains(objectId), button);
}
开发者ID:baldram,项目名称:tristar-eye,代码行数:6,代码来源:CameraDialog.java
示例6: markFavouriteSelection
import gwt.material.design.client.ui.MaterialButton; //导入依赖的package包/类
private void markFavouriteSelection(boolean isFavourite, MaterialButton button) {
button.setIconColor(isFavourite ? Color.RED : Color.GREY_LIGHTEN_1);
}
开发者ID:baldram,项目名称:tristar-eye,代码行数:4,代码来源:CameraDialog.java
注:本文中的gwt.material.design.client.ui.MaterialButton类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论