本文整理汇总了Java中com.google.gwt.user.client.ui.FocusWidget.setEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java FocusWidget.setEnabled方法的具体用法?Java FocusWidget.setEnabled怎么用?Java FocusWidget.setEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.client.ui.FocusWidget
的用法示例。
在下文中一共展示了FocusWidget.setEnabled方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setEnabled
import com.google.gwt.user.client.ui.FocusWidget; //导入方法依赖的package包/类
private void setEnabled(boolean enabled) {
FocusWidget[] widgets = { listBoxLevelNumber, listBoxLevelName, listBoxPrefecture,
textBoxPlayerName, textBoxGreeting, listBoxDifficultSelect, listBoxNewProblem,
buttonGameVsCom, buttonGameAllClass, buttonGameEvent, buttonGameTheme, textBoxEventName,
buttonShowEventRooms, checkBoxPublicEvent, listBoxTheme, buttonShowUserCode, };
for (FocusWidget widget : widgets) {
widget.setEnabled(enabled);
}
multiItemSelectorGenre.setEnabled(enabled);
multiItemSelectorType.setEnabled(enabled);
}
示例2: setEnable
import com.google.gwt.user.client.ui.FocusWidget; //导入方法依赖的package包/类
private void setEnable(boolean enabled) {
FocusWidget[] widgets = { buttonNewProblem, buttonMoveToVerification, buttonSendProblem,
textBoxGetProblem, buttonGetProblem, buttonCopyProblem, buttonNextProblem };
for (FocusWidget widget : widgets) {
widget.setEnabled(enabled);
}
widgetProblemForm.setEnable(enabled);
}
示例3: setEnable
import com.google.gwt.user.client.ui.FocusWidget; //导入方法依赖的package包/类
public void setEnable(boolean enabled) {
List<FocusWidget> focusWidgets = Lists.newArrayList(listBoxGenre, listBoxType,
listBoxRandomFlag, textAreaSentence, textBoxAnswer[0], textBoxAnswer[1], textBoxAnswer[2],
textBoxAnswer[3], textBoxChoice[0], textBoxChoice[1], textBoxChoice[2], textBoxChoice[3],
radioButtonNone, radioButtonImage, radioButtonYouTube, textBoxExternalUrl, textBoxCreator,
textAreaNote, checkBoxResetAnswerCount, checkBoxImageChoice, checkBoxImageAnswer,
checkBoxRemovePlayerAnswers, buttonClearProblemFeedback, checkBoxResetVote);
focusWidgets.addAll(buttonPolygonCreation);
for (FocusWidget focusWidget : focusWidgets) {
focusWidget.setEnabled(enabled);
}
}
示例4: lock
import com.google.gwt.user.client.ui.FocusWidget; //导入方法依赖的package包/类
public void lock(){
for( FocusWidget wgt : paramBoxs ){
wgt.setEnabled( false );
}
}
示例5: unlock
import com.google.gwt.user.client.ui.FocusWidget; //导入方法依赖的package包/类
public void unlock(){
for( FocusWidget wgt : paramBoxs ){
wgt.setEnabled( true );
}
}