本文整理汇总了Java中com.rapidminer.gui.tools.dialogs.ConfirmDialog.showConfirmDialogWithOptionalCheckbox方法的典型用法代码示例。如果您正苦于以下问题:Java ConfirmDialog.showConfirmDialogWithOptionalCheckbox方法的具体用法?Java ConfirmDialog.showConfirmDialogWithOptionalCheckbox怎么用?Java ConfirmDialog.showConfirmDialogWithOptionalCheckbox使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.rapidminer.gui.tools.dialogs.ConfirmDialog
的用法示例。
在下文中一共展示了ConfirmDialog.showConfirmDialogWithOptionalCheckbox方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCloseAction
import com.rapidminer.gui.tools.dialogs.ConfirmDialog; //导入方法依赖的package包/类
public Runnable getCloseAction() {
return new Runnable() {
public void run() {
int answer = ConfirmDialog.showConfirmDialogWithOptionalCheckbox(ApplicationFrame.getApplicationFrame(), "free_edition", 0, (String)null, 0, false, new Object[0]);
if(answer == 0) {
EmailVerificationCard.this.verificationTimer.cancel();
EmailVerificationCard.this.getContainer().dispose();
}
}
};
}
示例2: run
import com.rapidminer.gui.tools.dialogs.ConfirmDialog; //导入方法依赖的package包/类
public void run() {
if(AbstractCard.this.isAtLeastCommunityEdition()) {
AbstractCard.this.getContainer().dispose();
} else {
int answer = ConfirmDialog.showConfirmDialogWithOptionalCheckbox(ApplicationFrame.getApplicationFrame(), "free_edition", 0, (String)null, 0, false, new Object[0]);
if(answer == 0) {
AbstractCard.this.getContainer().dispose();
}
}
}
示例3: startNext
import com.rapidminer.gui.tools.dialogs.ConfirmDialog; //导入方法依赖的package包/类
/**
* Starts the next Tour in the tourList
*/
private void startNext() {
if (!newTours.isEmpty()) {
String currentTourKey = newTours.remove();
String propertyKey = "DontAskAgainTourChoosen";
ParameterService.setParameterValue(propertyKey, "null");
int returnValue = ConfirmDialog.showConfirmDialogWithOptionalCheckbox("new_tour_found", ConfirmDialog.YES_NO_OPTION, propertyKey, ConfirmDialog.NO_OPTION, true, currentTourKey);
// save whether we will ask again
if (!Boolean.parseBoolean(ParameterService.getParameterValue(propertyKey))) {
tourManager.setTourState(currentTourKey, TourState.NEVER_ASK);
}
//handle returnValue
if (returnValue == ConfirmDialog.YES_OPTION) {
IntroductoryTour currentTour = tourManager.get(currentTourKey);
currentTour.addListener(new TourListener() {
@Override
public void tourClosed() {
WelcomeTourAction.this.startNext();
}
});
currentTour.startTour();
}
if (returnValue == ConfirmDialog.NO_OPTION) {
this.startNext();
}
}
}