本文整理了Java中com.google.gwt.user.client.ui.Label.addStyleName()
方法的一些代码示例,展示了Label.addStyleName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.addStyleName()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Label
类名称:Label
方法名:addStyleName
暂无
代码示例来源:origin: kaaproject/kaa
@Override
protected void initDetailsTable() {
super.initDetailsTable();
this.eventClassTypeName = new ValueListBox<String>();
this.eventClassTypeName.addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event) {
EventClassViewImpl.this.fireChanged();
}
});
this.eventClassTypeName.setWidth("100%");
Label label = new Label("Class type");
label.addStyleName(this.avroUiStyle.requiredField());
detailsTable.setWidget(4, 0, label);
this.detailsTable.setWidget(4, 1, this.eventClassTypeName);
}
代码示例来源:origin: kaaproject/kaa
@Override
protected void resetImpl() {
name.setValue("");
name.setEnabled(true);
nameLabel.addStyleName(REQUIRED);
weight.setValue(null);
weight.setEnabled(true);
weightLabel.addStyleName(REQUIRED);
description.setValue("");
createdUsername.setValue("");
createdDateTime.setValue("");
addProfileFilterButton.setVisible(!create);
addConfigurationButton.setVisible(!create);
addTopicButton.setVisible(!create);
profileFiltersGrid.setEnableActions(true);
configurationsGrid.setEnableActions(true);
includeDeprecatedProfileFilters.setVisible(!create);
includeDeprecatedProfileFilters.setValue(false);
includeDeprecatedConfigurations.setVisible(!create);
includeDeprecatedConfigurations.setValue(false);
}
代码示例来源:origin: kaaproject/kaa
userLabel.addStyleName(REQUIRED);
emailLabel.addStyleName(REQUIRED);
detailsTable.setWidget(1, 0, emailLabel);
detailsTable.setWidget(1, 1, email);
authorityLabel.addStyleName(REQUIRED);
detailsTable.setWidget(2, 0, authorityLabel);
detailsTable.setWidget(2, 1, authority);
代码示例来源:origin: kaaproject/kaa
@Override
protected void initDetailsTable() {
Label label = new Label(Utils.constants.userId());
label.addStyleName(Utils.avroUiStyle.requiredField());
externalUserId = new KaaAdminSizedTextBox(DEFAULT_TEXTBOX_SIZE);
configurationSchemaInfo = new SchemaInfoListBox();
downloadUserCongigurationButton = new ImageTextButton(Utils.resources.download(), "Download");
externalUserId.setWidth(FULL_WIDTH);
externalUserId.addInputHandler(this);
detailsTable.setWidget(0, 0, label);
detailsTable.setWidget(0, 1, externalUserId);
label = new Label(Utils.constants.configurationSchema());
label.addStyleName(Utils.avroUiStyle.requiredField());
detailsTable.setWidget(1, 0, label);
detailsTable.setWidget(1, 1, configurationSchemaInfo);
detailsTable.setWidget(2, 0, downloadUserCongigurationButton);
configurationSchemaInfo.addValueChangeHandler(new ValueChangeHandler<SchemaInfoDto>() {
@Override
public void onValueChange(ValueChangeEvent<SchemaInfoDto> event) {
updateConfigurationData(event.getValue());
}
});
}
代码示例来源:origin: kaaproject/kaa
firstNameLabel.addStyleName(REQUIRED);
detailsTable.setWidget(1, 0, firstNameLabel);
detailsTable.setWidget(1, 1, firstName);
lastNameLabel.addStyleName(REQUIRED);
detailsTable.setWidget(2, 0, lastNameLabel);
detailsTable.setWidget(2, 1, lastName);
emailLabel.addStyleName(REQUIRED);
detailsTable.setWidget(3, 0, emailLabel);
detailsTable.setWidget(3, 1, email);
代码示例来源:origin: kaaproject/kaa
@Override
protected int initDetailsTableImpl() {
int row = -1;
Label schemaLabel = new Label(Utils.constants.schemaVersion());
detailsTable.setWidget(++row, 0, schemaLabel);
if (create) {
schemaLabel.addStyleName(Utils.avroUiStyle.requiredField());
schema = new VersionListBox();
schema.setWidth("80px");
VerticalPanel panel = new VerticalPanel();
panel.setWidth("100%");
panel.add(schema);
panel.add(new HTML(" "));
detailsTable.setWidget(row, 1, panel);
schema.addValueChangeHandler(this);
} else {
schemaVersion = new KaaAdminSizedTextBox(-1, false);
schemaVersion.setWidth("100%");
detailsTable.setWidget(row, 1, schemaVersion);
}
return row;
}
代码示例来源:origin: kaaproject/kaa
@Override
protected int initPluginDetails(int idx) {
Label minSchemaVersionLabel = new Label(Utils.constants.minSchemaVersion());
minSchemaVersionLabel.addStyleName(REQUIRED);
minSchemaVersion = new IntegerListBox();
minSchemaVersion.setWidth("30%");
maxSchemaVersionLabel.addStyleName(REQUIRED);
maxSchemaVersion = new IntegerListBox();
maxSchemaVersion.setWidth("30%");
代码示例来源:origin: kaaproject/kaa
@Override
protected void initDetailsTable() {
Label label = new Label(Utils.constants.userId());
label.addStyleName(Utils.avroUiStyle.requiredField());
userId = new KaaAdminSizedTextBox(DEFAULT_TEXTBOX_SIZE);
userId.setWidth(FULL_WIDTH);
label.addStyleName(Utils.avroUiStyle.requiredField());
configurationSchemaInfo = new SchemaInfoListBox();
detailsTable.setWidget(1, 0, label);
代码示例来源:origin: kaaproject/kaa
Label titleLabel = new Label(Utils.constants.title());
if (editable) {
titleLabel.addStyleName(avroUiStyle.requiredField());
label.addStyleName(this.avroUiStyle.requiredField());
代码示例来源:origin: kaaproject/kaa
endpointProfileSchemaLabel.addStyleName(Utils.avroUiStyle.requiredField());
serverProfileSchemaLabel.addStyleName(Utils.avroUiStyle.requiredField());
代码示例来源: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
nameLabel.addStyleName(REQUIRED);
name = new KaaAdminSizedTextBox(DEFAULT_TEXTBOX_SIZE);
name.setWidth("100%");
Label classNameLabel = new Label(Utils.constants.className());
if (create) {
namespaceLabel.addStyleName(REQUIRED);
classNameLabel.addStyleName(REQUIRED);
namespace = new KaaAdminSizedTextBox(DEFAULT_TEXTBOX_SIZE);
namespace.addInputHandler(this);
ecfVersionsGrid.setSize("700px", "200px");
Label ecfVersionsLabel = new Label(Utils.constants.versions());
ecfVersionsLabel.addStyleName(Utils.kaaAdminStyle.bAppContentTitleLabel());
代码示例来源:origin: kaaproject/kaa
ecfLabel.addStyleName(Utils.avroUiStyle.requiredField());
ecf = new EcfListBox();
ecf.setWidth("100%");
eventMapLabel.addStyleName(Utils.kaaAdminStyle.bAppContentTitleLabel());
代码示例来源:origin: kaaproject/kaa
forgotPasswordLabel.addStyleName(Utils.kaaAdminStyle.linkLabel());
loginTable.setWidget(2, 0, forgotPasswordLabel);
代码示例来源:origin: kaaproject/kaa
label.addStyleName(Utils.avroUiStyle.requiredField());
notificationSchemaInfo = new SchemaInfoListBox();
detailsTable.setWidget(row, 0, label);
代码示例来源:origin: kaaproject/kaa
setBodyReadOnly(false);
if (hasLabel()) {
bodyLabel.addStyleName(REQUIRED);
代码示例来源:origin: kaaproject/kaa
name.setWidth("100%");
Label nameLabel = new Label(Utils.constants.name());
nameLabel.addStyleName(Utils.avroUiStyle.requiredField());
detailsTable.setWidget(2, 0, nameLabel);
detailsTable.setWidget(2, 1, name);
代码示例来源:origin: kaaproject/kaa
name.setWidth(FULL_WIDTH);
Label nameLabel = new Label(Utils.constants.name());
nameLabel.addStyleName(REQUIRED);
idx++;
detailsTable.setWidget(idx, 0, nameLabel);
代码示例来源:origin: kaaproject/kaa
name.setWidth("100%");
Label nameLabel = new Label(Utils.constants.name());
nameLabel.addStyleName(REQUIRED);
detailsTable.setWidget(4, 0, nameLabel);
detailsTable.setWidget(4, 1, name);
代码示例来源:origin: kaaproject/kaa
titleLabel.addStyleName(Utils.kaaAdminStyle.bAppContentTitle());
horizontalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
内容来源于网络,如有侵权,请联系作者删除!