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

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

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

ListBox.isEnabled介绍

暂无

代码示例

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

@Override
public boolean isEnabled() {
 return getListBox().isEnabled();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

@Override
public boolean isEnabled() {
 return getListBox().isEnabled();
}

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

@Override
public boolean isEnabled() {
  return listBox.isEnabled();
}

代码示例来源:origin: GwtMaterialDesign/gwt-material

@Override
public boolean isEnabled() {
  return listBox.isEnabled();
}

代码示例来源:origin: sk.seges.acris/acris-binding

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();
}

代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material

@Override
public boolean isEnabled() {
  return listBox.isEnabled();
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
public boolean isReadOnly() {
  return !dropBox.isEnabled();
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
public boolean isReadOnly() {
  return !dropBox.isEnabled();
}

代码示例来源:origin: net.wetheinter/gwt-user

@Override
public boolean isEnabled() {
 return getListBox().isEnabled();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

@Override
public boolean isEnabled() {
 return getListBox().isEnabled();
}

代码示例来源:origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

@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();
}

代码示例来源:origin: GwtMaterialDesign/gwt-material

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());
}

代码示例来源:origin: com.github.gwtmaterialdesign/gwt-material

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());
}

相关文章