@Override public boolean isEnabled() { return getListBox().isEnabled(); }
@Override public boolean isEnabled() { return getListBox().isEnabled(); }
@Override public boolean isEnabled() { return listBox.isEnabled(); }
@Override public boolean isEnabled() { return listBox.isEnabled(); }
public BoundListAsyncCallback(BindingHolder<T> bindingHolder, String sourceProperty, ListBox targetWidget, String itemTextProperty, String itemValueProperty) { super(); this.bindingHolder = bindingHolder; this.sourceProperty = sourceProperty; this.targetWidget = targetWidget; this.itemTextProperty = itemTextProperty; this.itemValueProperty = itemValueProperty; wasEnabled = targetWidget.isEnabled(); }
@Override public boolean isEnabled() { return listBox.isEnabled(); }
@Override public boolean isReadOnly() { return !dropBox.isEnabled(); }
@Override public boolean isReadOnly() { return !dropBox.isEnabled(); }
@Override public boolean isEnabled() { return getListBox().isEnabled(); }
@Override public boolean isEnabled() { return getListBox().isEnabled(); }
@Override protected void commit() { //If there are no pattern bindings don't update the model if ( !listBox.isEnabled() ) { return; } // Update value String value = null; int selectedIndex = listBox.getSelectedIndex(); if ( selectedIndex >= 0 ) { value = listBox.getValue( selectedIndex ); } setValue( lastContext, lastParent, value ); if ( valueUpdater != null ) { valueUpdater.update( value ); } panel.hide(); }
public void testEnabled() { // given MaterialListValueBox<T> listValueBox = getWidget(); // when / then final Element element = listValueBox.getListBox().getElement(); assertFalse(element.hasAttribute(CssName.DISABLED)); listValueBox.setEnabled(true); assertFalse(element.hasAttribute(CssName.DISABLED)); assertTrue(listValueBox.isEnabled()); listValueBox.setEnabled(false); assertTrue(element.hasAttribute(CssName.DISABLED)); assertFalse(listValueBox.getListBox().isEnabled()); }
public void testEnabled() { // given MaterialListValueBox<T> listValueBox = getWidget(); // when / then final Element element = listValueBox.getListBox().getElement(); assertFalse(element.hasAttribute(CssName.DISABLED)); listValueBox.setEnabled(true); assertFalse(element.hasAttribute(CssName.DISABLED)); assertTrue(listValueBox.isEnabled()); listValueBox.setEnabled(false); assertTrue(element.hasAttribute(CssName.DISABLED)); assertFalse(listValueBox.getListBox().isEnabled()); }