本文整理了Java中org.gwtbootstrap3.client.ui.Button.setActive()
方法的一些代码示例,展示了Button.setActive()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setActive()
方法的具体详情如下:
包路径:org.gwtbootstrap3.client.ui.Button
类名称:Button
方法名:setActive
暂无
代码示例来源:origin: kiegroup/jbpm-wb
@Override
public void setDelegateButtonActive(boolean enable) {
delegateButton.setActive(enable);
}
}
代码示例来源:origin: org.jbpm/jbpm-wb-human-tasks-client
@Override
public void setDelegateButtonActive(boolean enable) {
delegateButton.setActive(enable);
}
}
代码示例来源:origin: org.jbpm/jbpm-console-ng-process-runtime-client
public void setActiveLogTypeButton( LogType logType ) {
this.logType = logType;
switch ( logType ) {
case TECHNICAL:
showTechnicalLogButton.setActive( true );
showBusinessLogButton.setActive( false );
break;
case BUSINESS:
showBusinessLogButton.setActive( true );
showTechnicalLogButton.setActive( false );
break;
}
}
代码示例来源:origin: org.jbpm/jbpm-console-ng-process-runtime-client
public void setActiveLogOrderButton( LogOrder logOrder ) {
this.logOrder = logOrder;
switch ( logOrder ) {
case ASC:
showAscLogButton.setActive( true );
showDescLogButton.setActive( false );
break;
case DESC:
showDescLogButton.setActive( true );
showAscLogButton.setActive( false );
break;
}
}
代码示例来源:origin: kiegroup/appformer
public void active() {
itemButton.setActive(false);
}
代码示例来源:origin: kiegroup/appformer
public void onClose(CloseEvent<PopupPanel> popupPanelCloseEvent) {
if (popupPanelCloseEvent.isAutoClosed()) {
button.setActive(false);
}
}
});
代码示例来源:origin: org.uberfire/uberfire-widgets-table
public void onClose(CloseEvent<PopupPanel> popupPanelCloseEvent) {
if (popupPanelCloseEvent.isAutoClosed()) {
button.setActive(false);
}
}
});
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client
@Override
public void setStopScannerState(final State state) {
this.stopScanner.setEnabled(state.equals(State.ENABLED));
this.stopScanner.setActive(!state.equals(State.ENABLED));
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client
@Override
public void setContainerStartState(final State state) {
containerStop.setEnabled(state.equals(State.ENABLED));
containerStop.setActive(!state.equals(State.ENABLED));
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client
@Override
public void errorOnInterval() {
startScanner.setEnabled(true);
startScanner.setActive(false);
StyleHelper.addUniqueEnumStyleName(scannerForm,
ValidationState.class,
ValidationState.ERROR);
interval.setFocus(true);
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client
@Override
public void setContainerStopState(final State state) {
containerStart.setEnabled(state.equals(State.ENABLED));
containerStart.setActive(!state.equals(State.ENABLED));
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-server-ui-client
@Override
public void setStartScannerState(final State state) {
this.startScanner.setEnabled(state.equals(State.ENABLED));
this.startScanner.setActive(!state.equals(State.ENABLED));
}
代码示例来源:origin: kiegroup/appformer
@Test
public void createWithOpenedSideDockTest() {
when(sideDockItem.isOpened()).thenReturn(true);
focusedItem.createButton(sideDockItem);
clickHandler.onClick(new ClickEvent() {
});
verify(sideDockItem).closeAndExecuteCommand();
verify(sideDockItem, never()).openAndExecuteExpandCommand();
verify(button).setActive(true);
verify(button, never()).setActive(false);
}
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
@Test
public void createWithOpenedSideDockTest() {
when(sideDockItem.isOpened()).thenReturn(true);
focusedItem.createButton(sideDockItem);
clickHandler.onClick(new ClickEvent() {
});
verify(sideDockItem).closeAndExecuteCommand();
verify(sideDockItem, never()).openAndExecuteExpandCommand();
verify(button).setActive(true);
verify(button, never()).setActive(false);
}
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
@Test
public void createWithClosedSideDockTest() {
when(sideDockItem.isOpened()).thenReturn(false);
focusedItem.createButton(sideDockItem);
clickHandler.onClick(new ClickEvent() {
});
verify(sideDockItem).openAndExecuteExpandCommand();
verify(sideDockItem, never()).closeAndExecuteCommand();
verify(button).setActive(false);
verify(button, never()).setActive(true);
}
代码示例来源:origin: kiegroup/appformer
@Test
public void createWithClosedSideDockTest() {
when(sideDockItem.isOpened()).thenReturn(false);
focusedItem.createButton(sideDockItem);
clickHandler.onClick(new ClickEvent() {
});
verify(sideDockItem).openAndExecuteExpandCommand();
verify(sideDockItem, never()).closeAndExecuteCommand();
verify(button).setActive(false);
verify(button, never()).setActive(true);
}
代码示例来源:origin: kiegroup/appformer
@Override
public void open() {
opened = true;
itemButton.setActive(true);
itemButton.setType(ButtonType.INFO);
if (getDock().getImageIconFocused() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIconFocused());
}
}
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
@Override
public void open() {
opened = true;
itemButton.setActive(true);
itemButton.setType(ButtonType.INFO);
if (getDock().getImageIconFocused() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIconFocused());
}
}
代码示例来源:origin: org.uberfire/uberfire-simple-docks-client
@Override
public void close() {
opened = false;
popup.inactive();
itemButton.setActive(false);
itemButton.setType(ButtonType.LINK);
if (getDock().getImageIcon() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIcon());
}
}
代码示例来源:origin: kiegroup/appformer
@Override
public void close() {
opened = false;
popup.inactive();
itemButton.setActive(false);
itemButton.setType(ButtonType.LINK);
if (getDock().getImageIcon() != null) {
itemButton.remove(0);
configureImageIcon(itemButton,
getDock().getImageIcon());
}
}
内容来源于网络,如有侵权,请联系作者删除!