com.google.gwt.event.dom.client.HasClickHandlers Java Examples

The following examples show how to use com.google.gwt.event.dom.client.HasClickHandlers. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebTable.java    From unitime with Apache License 2.0 6 votes vote down vote up
public LockCell(boolean check, String text, String ariaLabel) {
	super(null);
	if (CONSTANTS.listOfClassesUseLockIcon()) {
		iCheck = new AriaToggleButton(RESOURCES.locked(), RESOURCES.unlocked());
	} else {
		iCheck = new AriaCheckBox();
	}
	if (text != null)
		((HasText)iCheck).setText(text);
	iCheck.setValue(check);
	((HasClickHandlers)iCheck).addClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			event.stopPropagation();
		}
	});
	if (ariaLabel != null) setAriaLabel(ariaLabel);
}
 
Example #2
Source File: GalleryImage.java    From gwtbootstrap3-extras with Apache License 2.0 6 votes vote down vote up
@Override
public void setHeight(String height) {
    super.setHeight(height);
    image.setHeight(height);

    Scheduler.get().scheduleDeferred(new Command() {
        @Override
        public void execute() {
            for (Widget child : GalleryImage.this) {
                if (child instanceof HasClickHandlers && !(child instanceof Image)) {
                    Style style = child.getElement().getStyle();
                    style.setBottom((double) image.getHeight(), Unit.PX);
                }
            }
        }
    });
}
 
Example #3
Source File: SidebarPresenter.java    From gwteventbinder with Apache License 2.0 5 votes vote down vote up
public void setView(HasClickHandlers view) {
  view.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent arg0) {
      eventBus.fireEvent(new ContactScreenOpenedEvent());
    }
  });
}
 
Example #4
Source File: JobDescPopupPanel.java    From EasyML with Apache License 2.0 4 votes vote down vote up
public HasClickHandlers getSubmitBtn() {
	return submitBtn;
}
 
Example #5
Source File: SignInPagePresenter.java    From core with GNU Lesser General Public License v2.1 votes vote down vote up
HasClickHandlers getSignInButton();