本文整理了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
暂无
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!