本文整理了Java中com.google.gwt.user.client.ui.Button.addStyleName()
方法的一些代码示例,展示了Button.addStyleName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.addStyleName()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:addStyleName
暂无
代码示例来源:origin: kaaproject/kaa
backButton.addStyleName(Utils.kaaAdminStyle.bAppBackButton());
backButtonPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
backButtonPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
deleteSchemaVersionButton.addStyleName(Utils.kaaAdminStyle.deleteButton());
deleteSchemaVersionButton.setVisible(!create && editable);
deleteSchemaVersionButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
代码示例来源:origin: kaaproject/kaa
@Override
protected void initDetailsTable() {
tenantName = new KaaAdminSizedTextBox(TENANT_NAME_TEXT_SIZE_BOX);
tenantName.setWidth("100%");
tenantName.addInputHandler(this);
lableUser = new Label("Users");
Label titleLabel = new Label(Utils.constants.tenantName());
titleLabel.addStyleName(REQUIRED);
detailsTable.setWidget(0, 0, titleLabel);
detailsTable.setWidget(0, 1, tenantName);
tenantAdminsGrid = new UsersGrid(false, true);
tenantAdminsGrid.setWidth("100%");
tenantAdminsGrid.setSize("1000px", "400px");
detailsTable.getFlexCellFormatter().setColSpan(2, 0, 3);
tenantAdminAddButton = new Button(Utils.constants.addNewUser());
tenantAdminAddButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
tenantName.setFocus(true);
if (!create) {
detailsTable.setWidget(2, 0, tenantAdminsGrid);
detailsTable.setWidget(3, 3, tenantAdminAddButton);
detailsTable.setWidget(1, 0, lableUser);
}
}
代码示例来源:origin: kaaproject/kaa
endpointKeyHash.setWidth("100%");
findButton = new Button(Utils.constants.find());
findButton.addStyleName(Utils.avroUiStyle.buttonSmall());
keyHashPanel.add(endpointKeyHashButton);
keyHashPanel.add(endpointKeyHash);
代码示例来源:origin: kaaproject/kaa
loginButton.addStyleName(Utils.kaaAdminStyle.loginButton());
loginTable.setWidget(3, 2, loginButton);
loginButton.getElement().getStyle().setMarginTop(15, Unit.PX);
代码示例来源:origin: kaaproject/kaa
uploadButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
uploadButton.setEnabled(false);
uploadTable = new FlexTable();
代码示例来源:origin: kaaproject/kaa
addProfileFilterButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
addConfigurationButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
addTopicButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
代码示例来源:origin: kaaproject/kaa
backButton.addStyleName(Utils.kaaAdminStyle.bAppBackButton());
backButtonPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
backButtonPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
代码示例来源:origin: kaaproject/kaa
ecfsDisclosure.setContent(ecfsTable);
addAefMapButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
removeAefMapButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
代码示例来源:origin: kaaproject/kaa
addEcfVersionButton.addStyleName(Utils.kaaAdminStyle.bAppButtonSmall());
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void applystyles(final Button button, final boolean buttonEnable) {
button.setStyleName(VButton.CLASSNAME);
button.addStyleName(getStyle("tiny"));
button.addStyleName(getStyle("borderless-colored"));
button.addStyleName(getStyle("button-no-border"));
button.addStyleName(getStyle("action-type-padding"));
if (buttonEnable) {
return;
}
button.addStyleName("v-disabled");
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
protected void showPart2() {
nextButton.addStyleName("hidden");
part2Row.removeStyleName("hidden");
}
}
代码示例来源:origin: eclipse/hawkbit
private static void applyStyles(final Button button, final boolean buttonDisabled, final String additionalStyle) {
button.setStyleName(VButton.CLASSNAME);
button.addStyleName(getStyle("tiny"));
button.addStyleName(getStyle("borderless"));
button.addStyleName(getStyle("button-no-border"));
button.addStyleName(getStyle("action-type-padding"));
button.addStyleName(getStyle(additionalStyle));
if (buttonDisabled) {
button.addStyleName("v-disabled");
}
}
代码示例来源:origin: geogebra/geogebra
protected void setSelected(Button btn, boolean value) {
if (value) {
btn.addStyleName("selected");
} else {
btn.removeStyleName("selected");
}
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
private void setWideIcon(){
if (isWide){
wideButton.removeStyleName(CLASSNAME_WIDEBUTTON_ICON);
wideButton.addStyleName(CLASSNAME_WIDEBUTTON_ICON_CLOSE);
}else{
wideButton.removeStyleName(CLASSNAME_WIDEBUTTON_ICON_CLOSE);
wideButton.addStyleName(CLASSNAME_WIDEBUTTON_ICON);
}
}
代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt
protected void setEnable(final Button button, final boolean enable) {
button.setEnabled( enable );
if ( enable ) {
button.removeStyleName( "btnDisabled" );
} else {
button.addStyleName( "btnDisabled" );
}
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
public void setEnabled(boolean enabled) {
dropdownButton.setEnabled(enabled);
if (!enabled) {
dropdownButton.addStyleName(Styles.DISABLED);
} else {
dropdownButton.removeStyleName(Styles.DISABLED);
}
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
@Inject
public ConfirmDialogFooter(
final @NotNull UILocalizationConstant messages, WindowClientBundle resources) {
this.messages = messages;
rootPanel = uiBinder.createAndBindUi(this);
okButton.addStyleName(resources.getStyle().windowFrameFooterButtonPrimary());
okButton.getElement().setId("ask-dialog-ok");
cancelButton.addStyleName(resources.getStyle().windowFrameFooterButton());
cancelButton.getElement().setId("ask-dialog-cancel");
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
@Inject
public ChoiceDialogFooter(WindowClientBundle resources) {
rootPanel = uiBinder.createAndBindUi(this);
firstChoiceButton.addStyleName(resources.getStyle().windowFrameFooterButtonPrimary());
firstChoiceButton.getElement().setId("ask-dialog-first");
secondChoiceButton.addStyleName(resources.getStyle().windowFrameFooterButton());
secondChoiceButton.getElement().setId("ask-dialog-second");
thirdChoiceButton.addStyleName(resources.getStyle().windowFrameFooterButton());
thirdChoiceButton.getElement().setId("ask-dialog-third");
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-app
/** Displays a notification with a proposal to start the current workspace. */
void show() {
if (restartingStateHolder.isRestarting()) {
return;
}
Widget widget = uiBinder.createAndBindUi(StartWorkspaceNotification.this);
button.addStyleName(windowClientBundle.getStyle().windowFrameFooterButtonPrimary());
wsStatusNotification.show(WORKSPACE_STOPPED, widget);
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
private void construct() {
label.addClassName("v-form-field-label");
fieldWrapper.addClassName("v-form-field-container");
errorAction.addStyleName("action-validation");
root.appendChild(label);
root.appendChild(fieldWrapper);
add(helpButton, fieldWrapper);
add(errorAction, fieldWrapper);
}
内容来源于网络,如有侵权,请联系作者删除!