本文整理了Java中org.gwtbootstrap3.client.ui.Button.isEnabled()
方法的一些代码示例,展示了Button.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.isEnabled()
方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Button
类名称:Button
方法名:isEnabled
暂无
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-project-explorer-client
@Override
public boolean isEnabled() {
return view.isEnabled();
}
}
代码示例来源:origin: kiegroup/appformer
/**
* Check if the next button is disabled. Visible for testing.
*/
boolean isNextButtonDisabled() {
return nextPage.isEnabled() == false;
}
代码示例来源:origin: kiegroup/appformer
/**
* Check if the previous button is disabled. Visible for testing.
*/
boolean isPreviousButtonDisabled() {
return prevPage.isEnabled() == false;
}
代码示例来源:origin: org.uberfire/uberfire-widgets-table
/**
* Check if the next button is disabled. Visible for testing.
*/
boolean isNextButtonDisabled() {
return nextPage.isEnabled() == false;
}
代码示例来源:origin: org.uberfire/uberfire-commons-editor-client
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: kiegroup/appformer
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: org.uberfire/uberfire-widgets-table
/**
* Check if the previous button is disabled. Visible for testing.
*/
boolean isPreviousButtonDisabled() {
return prevPage.isEnabled() == false;
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: org.uberfire/uberfire-commons-editor-client
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
public boolean isEnabled() {
return textButton.isEnabled();
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: kiegroup/drools-wb
@Override public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: kiegroup/appformer
@Override
public boolean isEnabled() {
return button.isEnabled();
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
public boolean isEnabled() {
return getButtonWidget().isEnabled();
}
代码示例来源:origin: stackoverflow.com
final Button button=new Button("buttn") {
public void onSubmit() {
System.out.println("change....");
setEnabled(false);
};
};
button.add(new AttributeModifier("class", true, new Model<Serializable>() {
@Override
public Serializable getObject() {
if (button.isEnabled())
return "your_enabled_class";
else return "your_disabled_class";
}
}));
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Test
public void testBuildItemWithButtonGroup() {
final MenuUtils.HasEnabledIsWidget wrappedButtonGroup = MenuUtils.buildHasEnabledWidget(buttonGroup, button);
final BaseMenuCustom menuItem = (BaseMenuCustom) MenuUtils.buildItem(wrappedButtonGroup);
assertEquals(buttonGroup,
menuItem.build());
menuItem.setEnabled(true);
verify(button,
times(1)).setEnabled(true);
menuItem.setEnabled(false);
verify(button,
times(1)).setEnabled(false);
when(button.isEnabled()).thenReturn(true);
assertTrue(menuItem.isEnabled());
}
}
内容来源于网络,如有侵权,请联系作者删除!