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

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

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

Label.addClickHandler介绍

暂无

代码示例

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

/**
 * Instantiates a new HeaderViewImpl.
 */
public HeaderViewImpl() {
 settingsLabel = new ActionsLabel(Utils.constants.settings());
 kaaAdminStyle = Utils.kaaAdminStyle;
 settingsLabel.setStyleName(kaaAdminStyle.bAppHeaderMenu());
 initWidget(uiBinder.createAndBindUi(this));
 signoutLabel.setText(Utils.constants.signOut());
 title.addClickHandler(new ClickHandler() {
  @Override
  public void onClick(ClickEvent event) {
   presenter.goToHome();
  }
 });
}

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

private void bind(final HeaderView headerView, final EventBus eventBus) {
 headerView.getUsernameLabel().setText(
   KaaAdmin.getAuthInfo().getDisplayName());
 registrations.add(headerView.getUsernameLabel().addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
   goTo(new UserProfilePlace());
 registrations.add(headerView.getSignoutLabel().addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
   KaaAdmin.signOut();

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

@Override
public void onSuccess(Void result) {
 EnterKeyDownHandler loginHandler = new EnterKeyDownHandler();
 view.getLoginButton().addClickHandler(loginHandler);
 view.getUsernameBox().addKeyDownHandler(loginHandler);
 view.getPasswordBox().addKeyDownHandler(loginHandler);
 ForgotPasswordHandler forgotPasswordHandler = new ForgotPasswordHandler();
 view.getForgotPasswordLabel().addClickHandler(forgotPasswordHandler);
 view.clearMessages();
 RootLayoutPanel.get().clear();
 RootLayoutPanel.get().add(view);
}

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

back.addClickHandler(new ClickHandler() {

代码示例来源:origin: com.googlecode.gwtupload/gwtupload

public HandlerRegistration addCancelHandler(final UploadCancelHandler handler) {
 hasCancelActions = true;
 return cancelLabel.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
   handler.onCancel();
  }
 });
}

代码示例来源:origin: org.kuali.student.core/ks-common-ui

@Override
  public HandlerRegistration addClickHandler(ClickHandler handler) {
    return label.addClickHandler(handler);
  }
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

public HandlerRegistration addClickHandler(ClickHandler handler) {
    textLabel.addClickHandler(handler);
    return plusButton.addClickHandler(handler);
  }
}

代码示例来源:origin: stackoverflow.com

@UiField
Label label;

label.addClickHandler(new ClickHandler() {
  @Override
  public void onClick(ClickEvent event) {
    ...
  }
});

代码示例来源:origin: org.uberfire/widgets-commons

public HandlerRegistration addClickHandler(ClickHandler handler) {
    textLabel.addClickHandler( handler );
    return plusButton.addClickHandler( handler );
  }
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

public LazyStackPanelHeader(String headerText) {
  this();
  final Label titleLabel = new Label(headerText);
  titleLabel.setStyleName("guvnor-cursor");
  titleLabel.addClickHandler(expandClickHandler);
  container.add(titleLabel);
}

代码示例来源:origin: org.jboss.ballroom/widgets

public void addItem(final String text, final Scheduler.ScheduledCommand command) {
  Label label = new Label(text);
  label.setStyleName(POPUP_ITEM_STYLE_NAME);
  menu.add(label);
  label.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      Scheduler.get().scheduleDeferred(command);
      popup.hide();
    }
  });
}

代码示例来源:origin: org.uberfire/widgets-commons

public LazyStackPanelHeader(String headerText) {
  this();
  Label titleLabel = new Label( headerText );
  titleLabel.setStyleName( "guvnor-cursor" );
  titleLabel.addClickHandler( expandClickHandler );
  container.add( titleLabel );
}

代码示例来源:origin: kiegroup/appformer

public LazyStackPanelHeader(String headerText) {
  this();
  final Label titleLabel = new Label(headerText);
  titleLabel.setStyleName("guvnor-cursor");
  titleLabel.addClickHandler(expandClickHandler);
  container.add(titleLabel);
}

代码示例来源:origin: org.kuali.student.core/ks-common-ui

private Widget generateRemoveWidget() {
  ClickHandler ch = new ClickHandler() {
    public void onClick(ClickEvent event) {
      getRemoveCallback().exec(RemovableItem.this);
    }
  };
  itemPanel.addStyleName("KS-Multiplicity-Item");
  Label deleteLabel = new Label("Delete");
  deleteLabel.addStyleName("KS-Multiplicity-Link-Label");
  deleteLabel.addClickHandler(ch);
  return deleteLabel;
}

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

private FlowPanel getNewBreadcrumb(final String name, final ClickHandler handler) {
    final FlowPanel breadcrumb = new FlowPanel();
    breadcrumb.setStyleName(BREADCRUMB_STYLE);
    final Label label = new Label(name);
    label.addClickHandler( handler );
    breadcrumb.add(label);
    //final Image x = new Image("images/close-x2.png");
    //x.addClickHandler( handler );
    //breadcrumb.add(x);
    return breadcrumb;
    
  }
}

代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl

private void addBackupWidget() {
  if (backUpWidget == null) {
    backUpWidget = new Label();
    backUpWidget.setStyleName("v-select-select"); // style like native
                           // input
    add(backUpWidget);
    backUpWidget.addClickHandler(this);
    updateValue();
  }
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

public LazyStackPanelHeader(final String headerText,
              final Image headerIcon) {
  this();
  final Image titleIcon = headerIcon;
  container.add(titleIcon);
  final Label titleLabel = new Label(headerText);
  titleLabel.setStyleName("guvnor-cursor");
  titleLabel.addClickHandler(expandClickHandler);
  container.add(titleLabel);
}

代码示例来源:origin: net.sf.advanced-gwt/advanced-gwt

/** {@inheritDoc} */
protected void addListeners(Widget widget) {
  if (isSortable()) {
    SortHandler handler = new SortHandler();
    getLabel().addClickHandler(handler);
    getImage().addClickHandler(handler);
  }
}

代码示例来源:origin: org.uberfire/widgets-commons

public LazyStackPanelHeader(String headerText,
              ImageResource headerIcon) {
  this();
  Image titleIcon = new Image( headerIcon );
  container.add( titleIcon );
  Label titleLabel = new Label( headerText );
  titleLabel.setStyleName( "guvnor-cursor" );
  titleLabel.addClickHandler( expandClickHandler );
  container.add( titleLabel );
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client

@Inject
public BackgroundLoaderViewImpl(LoaderViewImplUiBinder uiBinder, Resources resources) {
 this.resources = resources;
 LoaderCss styles = resources.css();
 styles.ensureInjected();
 rootElement = uiBinder.createAndBindUi(this);
 iconLoader.getElement().appendChild((resources.loaderIcon().getSvg().getElement()));
 iconClose.getElement().appendChild((resources.errorOperationIcon().getSvg().getElement()));
 iconClose.setVisible(false);
 status.addClickHandler(event -> delegate.showResolverInfo());
}

相关文章