com.google.gwt.user.client.ui.Label.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(10.1k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中com.google.gwt.user.client.ui.Label.<init>()方法的一些代码示例,展示了Label.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.<init>()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Label
类名称:Label
方法名:<init>

Label.<init>介绍

[英]Creates an empty label.
[中]创建一个空标签。

代码示例

代码示例来源:origin: libgdx/libgdx

/**
 * Override this method to return a custom widget informing the that their browser lacks support of WebGL.
 *
 * @return Widget to display when WebGL is not supported.
 */
public Widget getNoWebGLSupportWidget() {
  return new Label("Sorry, your browser doesn't seem to support WebGL");
}

代码示例来源:origin: libgdx/libgdx

/**
 * Override this method to return a custom widget informing the that their browser lacks support of WebGL.
 *
 * @return Widget to display when WebGL is not supported.
 */
public Widget getNoWebGLSupportWidget() {
  return new Label("Sorry, your browser doesn't seem to support WebGL");
}

代码示例来源:origin: kaaproject/kaa

@Override
protected int initPluginDetails(int idx) {
 verifierToken = new KaaAdminSizedTextBox(-1, false);
 verifierToken.setWidth(FULL_WIDTH);
 idx++;
 Label verifierTokenLabel = new Label(Utils.constants.verifierToken());
 detailsTable.setWidget(idx, 0, verifierTokenLabel);
 detailsTable.setWidget(idx, 1, verifierToken);
 verifierTokenLabel.setVisible(!create);
 verifierToken.setVisible(!create);
 return idx;
}

代码示例来源: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 int initPluginDetails(int idx) {
 Label minSchemaVersionLabel = new Label(Utils.constants.minSchemaVersion());
 minSchemaVersionLabel.addStyleName(REQUIRED);
 minSchemaVersion = new IntegerListBox();
 detailsTable.setWidget(idx, 1, minSchemaVersion);
 Label maxSchemaVersionLabel = new Label(Utils.constants.maxVersion());
 maxSchemaVersionLabel.addStyleName(REQUIRED);
 maxSchemaVersion = new IntegerListBox();
 Label confirmDeliveryLabel = new Label(Utils.constants.confirmDelivery());
 idx++;
 detailsTable.setWidget(idx, 0, confirmDeliveryLabel);
 Label logMetadata = new Label(Utils.constants.logMetadata());
 generateMetadataListBox();
 idx++;

代码示例来源:origin: kaaproject/kaa

authority.setWidth("100%");
Label authorityLabel = new Label(Utils.constants.accountRole());
detailsTable.setWidget(0, 0, authorityLabel);
detailsTable.setWidget(0, 1, authority);
firstName.addInputHandler(this);
Label firstNameLabel = new Label(Utils.constants.firstName());
firstNameLabel.addStyleName(REQUIRED);
detailsTable.setWidget(1, 0, firstNameLabel);
lastName.addInputHandler(this);
Label lastNameLabel = new Label(Utils.constants.lastName());
lastNameLabel.addStyleName(REQUIRED);
detailsTable.setWidget(2, 0, lastNameLabel);
email.addInputHandler(this);
Label emailLabel = new Label(Utils.constants.email());
emailLabel.addStyleName(REQUIRED);
detailsTable.setWidget(3, 0, emailLabel);

代码示例来源: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

@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

applicationName = new KaaAdminSizedTextBox(DEFAULT_TEXTBOX_SIZE, editable);
applicationName.setWidth("100%");
Label titleLabel = new Label(Utils.constants.title());
if (editable) {
 titleLabel.addStyleName(avroUiStyle.requiredField());
 applicationToken.setReadOnly(true);
 Label tokenLabel = new Label(Utils.constants.appToken());
 detailsTable.setWidget(2, 0, tokenLabel);
 detailsTable.setWidget(2, 1, applicationToken);
 this.credentialsServiceName.setWidth("100%");
 Label label = new Label(Utils.constants.credentialsService());
 label.addStyleName(this.avroUiStyle.requiredField());

代码示例来源:origin: kaaproject/kaa

@Override
protected void initDetailsTable() {
 Label authorLabel = new Label(Utils.constants.author());
 createdUsername = new KaaAdminSizedTextBox(-1, false);
 createdUsername.setWidth("100%");
 createdUsername.setVisible(!create);
 Label dateTimeCreatedLabel = new Label(Utils.constants.dateTimeCreated());
 createdDateTime = new KaaAdminSizedTextBox(-1, false);
 createdDateTime.setWidth("100%");
 Label nameLabel = new Label(Utils.constants.name());
 nameLabel.addStyleName(Utils.avroUiStyle.requiredField());
 detailsTable.setWidget(2, 0, nameLabel);
 Label mandatoryLabel = new Label(Utils.constants.mandatory());
 detailsTable.setWidget(3, 0, mandatoryLabel);
 detailsTable.setWidget(3, 1, mandatory);
 description.setWidth("100%");
 description.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 100);
 Label descriptionLabel = new Label(Utils.constants.description());
 detailsTable.setWidget(4, 0, descriptionLabel);
 detailsTable.setWidget(4, 1, description);

代码示例来源:origin: kaaproject/kaa

Label label = new Label(Utils.constants.notificationSchema());
label.addStyleName(Utils.avroUiStyle.requiredField());
notificationSchemaInfo = new SchemaInfoListBox();
row++;
label = new Label(Utils.constants.expiresAt());
expiredAt = new DateBox();
expiredAt.setWidth("200px");
row++;
label = new Label(Utils.constants.endpointKeyHash());
endpointKeyHashTextBox = new TextBox();
endpointKeyHashTextBox.setWidth("200px");

代码示例来源:origin: kaaproject/kaa

passwordBox.setWidth("100%");
Label loginLabel = new Label(Utils.constants.username());
loginTable.setWidget(0, 0, loginLabel);
loginTable.setWidget(0, 1, usernameBox);
Label passwordLabel = new Label(Utils.constants.password());
loginTable.setWidget(1, 0, passwordLabel);
loginTable.setWidget(1, 1, passwordBox);
forgotPasswordLabel = new Label(Utils.constants.forgotPassword());
forgotPasswordLabel.addStyleName(Utils.kaaAdminStyle.linkLabel());
loginTable.setWidget(2, 0, forgotPasswordLabel);

代码示例来源: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("&nbsp;"));
  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 void initDetailsTable() {
 Label label = new Label(Utils.constants.userId());
 label.addStyleName(Utils.avroUiStyle.requiredField());
 userId = new KaaAdminSizedTextBox(DEFAULT_TEXTBOX_SIZE);
 detailsTable.setWidget(0, 1, userId);
 label = new Label(Utils.constants.configurationSchema());
 label.addStyleName(Utils.avroUiStyle.requiredField());
 configurationSchemaInfo = new SchemaInfoListBox();

代码示例来源:origin: kaaproject/kaa

requiredFieldsNoteLabel.getElement().getParentElement().getStyle().setHeight(0, Unit.PX);
Label authorLabel = new Label(Utils.constants.author());
createdUsername = new KaaAdminSizedTextBox(-1, false);
createdUsername.setWidth("100%");
createdUsername.setVisible(!create);
Label dateTimeCreatedLabel = new Label(Utils.constants.dateTimeCreated());
createdDateTime = new KaaAdminSizedTextBox(-1, false);
createdDateTime.setWidth("100%");

代码示例来源:origin: kaaproject/kaa

@Override
protected int initDetailsTableImpl() {
 int row = -1;
 Label endpointProfileSchemaLabel = new Label(Utils.constants.profileSchemaVersion());
 Label serverProfileSchemaLabel = new Label(Utils.constants.serverProfileSchemaVersion());

代码示例来源:origin: kaaproject/kaa

final Label back = new Label(OPEN);
back.setStyleName(kaaAdminStyle.bNavLabel());

代码示例来源:origin: kaaproject/kaa

table.setCellSpacing(6);
Widget label = new Label(Utils.constants.selectNotificationTopics());
label.addStyleName(Utils.avroUiStyle.requiredField());
topic = new TopicListBox();

代码示例来源:origin: kaaproject/kaa

Widget label = new Label(Utils.constants.usernameOrEmail());
label.addStyleName(Utils.avroUiStyle.requiredField());
usernameOrEmail = new KaaAdminSizedTextBox(255);

代码示例来源:origin: kaaproject/kaa

Label titleLabel = new Label();
titleLabel.addStyleName(Utils.kaaAdminStyle.bAppContentTitle());
horizontalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

相关文章