本文整理汇总了Java中org.apache.pivot.util.Vote类的典型用法代码示例。如果您正苦于以下问题:Java Vote类的具体用法?Java Vote怎么用?Java Vote使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Vote类属于org.apache.pivot.util包,在下文中一共展示了Vote类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: previewWindowOpen
import org.apache.pivot.util.Vote; //导入依赖的package包/类
@Override
public Vote previewWindowOpen(Window window) {
for (String key : getComponents()) {
final Object value = Objects.requireNonNull(getBean(key));
if (value instanceof Bindable) {
org.apache.pivot.wtk.ApplicationContext.queueCallback(new BindingCallback(AbstractLumpiApplicationContext.this, (Bindable) value));
}
}
return super.previewWindowOpen(window);
}
示例2: previewInsertText
import org.apache.pivot.util.Vote; //导入依赖的package包/类
@Override
public Vote previewInsertText(TextInput textInput, CharSequence text, int index) {
String oldText = textInput.getText();
String newText = new StringBuilder(oldText).insert(index, text).toString();
if (textInput.getValidator().isValid(newText)) {
return Vote.APPROVE;
}
return Vote.DENY;
}
示例3: previewWindowOpen
import org.apache.pivot.util.Vote; //导入依赖的package包/类
@Override
public Vote previewWindowOpen(Window arg0) {
return Vote.APPROVE;
}
示例4: previewWindowClose
import org.apache.pivot.util.Vote; //导入依赖的package包/类
@Override
public Vote previewWindowClose(Window arg0) {
handleClose(arg0);
return Vote.APPROVE;
}
示例5: getPreviewRemoveTabs
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public CallableWithArgs<Vote> getPreviewRemoveTabs() {
return this.previewRemoveTabs;
}
示例6: setPreviewRemoveTabs
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public void setPreviewRemoveTabs(CallableWithArgs<Vote> previewRemoveTabs) {
this.previewRemoveTabs = previewRemoveTabs;
}
示例7: previewRemoveTabs
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public org.apache.pivot.util.Vote previewRemoveTabs(org.apache.pivot.wtk.TabPane arg0, int arg1, int arg2) {
if (previewRemoveTabs != null) {
return previewRemoveTabs.call(arg0, arg1, arg2);
}
return Vote.APPROVE;
}
示例8: removeTabsVetoed
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public void removeTabsVetoed(org.apache.pivot.wtk.TabPane arg0, org.apache.pivot.util.Vote arg1) {
if (removeTabsVetoed != null) {
removeTabsVetoed.call(arg0, arg1);
}
}
示例9: getPreviewSuggestionPopupClose
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public CallableWithArgs<Vote> getPreviewSuggestionPopupClose() {
return this.previewSuggestionPopupClose;
}
示例10: setPreviewSuggestionPopupClose
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public void setPreviewSuggestionPopupClose(CallableWithArgs<Vote> previewSuggestionPopupClose) {
this.previewSuggestionPopupClose = previewSuggestionPopupClose;
}
示例11: previewSuggestionPopupClose
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public org.apache.pivot.util.Vote previewSuggestionPopupClose(org.apache.pivot.wtk.SuggestionPopup arg0, boolean arg1) {
if (previewSuggestionPopupClose != null) {
return previewSuggestionPopupClose.call(arg0, arg1);
}
return Vote.APPROVE;
}
示例12: suggestionPopupCloseVetoed
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public void suggestionPopupCloseVetoed(org.apache.pivot.wtk.SuggestionPopup arg0, org.apache.pivot.util.Vote arg1) {
if (suggestionPopupCloseVetoed != null) {
suggestionPopupCloseVetoed.call(arg0, arg1);
}
}
示例13: getPreviewInsertText
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public CallableWithArgs<Vote> getPreviewInsertText() {
return this.previewInsertText;
}
示例14: getPreviewRemoveText
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public CallableWithArgs<Vote> getPreviewRemoveText() {
return this.previewRemoveText;
}
示例15: setPreviewInsertText
import org.apache.pivot.util.Vote; //导入依赖的package包/类
public void setPreviewInsertText(CallableWithArgs<Vote> previewInsertText) {
this.previewInsertText = previewInsertText;
}