List of usage examples for com.google.gwt.aria.client Roles getComboboxRole
public static ComboboxRole getComboboxRole()
From source file:com.vaadin.client.ui.VComboBox.java
License:Apache License
/** * Default constructor.// w ww. ja v a 2 s. c o m */ public VComboBox() { tb = createTextBox(); suggestionPopup = createSuggestionPopup(); popupOpener.addMouseDownHandler(VComboBox.this); Roles.getButtonRole().setAriaHiddenState(popupOpener.getElement(), true); Roles.getButtonRole().set(popupOpener.getElement()); panel.add(tb); panel.add(popupOpener); initWidget(panel); Roles.getComboboxRole().set(panel.getElement()); tb.addKeyDownHandler(this); tb.addKeyUpHandler(this); tb.addFocusHandler(this); tb.addBlurHandler(this); panel.addDomHandler(this, ClickEvent.getType()); setStyleName(CLASSNAME); sinkEvents(Event.ONPASTE); }
From source file:com.vaadin.client.ui.VFilterSelect.java
License:Apache License
/** * Default constructor./* w w w . ja v a 2 s .c o m*/ */ public VFilterSelect() { tb = createTextBox(); suggestionPopup = createSuggestionPopup(); popupOpener.sinkEvents(Event.ONMOUSEDOWN); Roles.getButtonRole().setAriaHiddenState(popupOpener.getElement(), true); Roles.getButtonRole().set(popupOpener.getElement()); panel.add(tb); panel.add(popupOpener); initWidget(panel); Roles.getComboboxRole().set(panel.getElement()); tb.addKeyDownHandler(this); tb.addKeyUpHandler(this); tb.addFocusHandler(this); tb.addBlurHandler(this); tb.addClickHandler(this); popupOpener.addClickHandler(this); setStyleName(CLASSNAME); sinkEvents(Event.ONPASTE); }