当前位置: 首页>>代码示例>>Java>>正文


Java Vote类代码示例

本文整理汇总了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);
}
 
开发者ID:moosbusch,项目名称:Lumpi,代码行数:12,代码来源:AbstractLumpiApplicationContext.java

示例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;
}
 
开发者ID:moosbusch,项目名称:Lumpi,代码行数:12,代码来源:AbstractNumberFormEditor.java

示例3: previewWindowOpen

import org.apache.pivot.util.Vote; //导入依赖的package包/类
@Override
public Vote previewWindowOpen(Window arg0) {
    return Vote.APPROVE;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:5,代码来源:DefaultPivotWindowManager.java

示例4: previewWindowClose

import org.apache.pivot.util.Vote; //导入依赖的package包/类
@Override
public Vote previewWindowClose(Window arg0) {
    handleClose(arg0);
    return Vote.APPROVE;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:6,代码来源:DefaultPivotWindowManager.java

示例5: getPreviewRemoveTabs

import org.apache.pivot.util.Vote; //导入依赖的package包/类
public CallableWithArgs<Vote> getPreviewRemoveTabs() {
    return this.previewRemoveTabs;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:4,代码来源:TabPaneAdapter.java

示例6: setPreviewRemoveTabs

import org.apache.pivot.util.Vote; //导入依赖的package包/类
public void setPreviewRemoveTabs(CallableWithArgs<Vote> previewRemoveTabs) {
    this.previewRemoveTabs = previewRemoveTabs;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:4,代码来源:TabPaneAdapter.java

示例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;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:7,代码来源:TabPaneAdapter.java

示例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);
    }
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:6,代码来源:TabPaneAdapter.java

示例9: getPreviewSuggestionPopupClose

import org.apache.pivot.util.Vote; //导入依赖的package包/类
public CallableWithArgs<Vote> getPreviewSuggestionPopupClose() {
    return this.previewSuggestionPopupClose;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:4,代码来源:SuggestionPopupStateAdapter.java

示例10: setPreviewSuggestionPopupClose

import org.apache.pivot.util.Vote; //导入依赖的package包/类
public void setPreviewSuggestionPopupClose(CallableWithArgs<Vote> previewSuggestionPopupClose) {
    this.previewSuggestionPopupClose = previewSuggestionPopupClose;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:4,代码来源:SuggestionPopupStateAdapter.java

示例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;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:7,代码来源:SuggestionPopupStateAdapter.java

示例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);
    }
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:6,代码来源:SuggestionPopupStateAdapter.java

示例13: getPreviewInsertText

import org.apache.pivot.util.Vote; //导入依赖的package包/类
public CallableWithArgs<Vote> getPreviewInsertText() {
    return this.previewInsertText;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:4,代码来源:TextInputContentAdapter.java

示例14: getPreviewRemoveText

import org.apache.pivot.util.Vote; //导入依赖的package包/类
public CallableWithArgs<Vote> getPreviewRemoveText() {
    return this.previewRemoveText;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:4,代码来源:TextInputContentAdapter.java

示例15: setPreviewInsertText

import org.apache.pivot.util.Vote; //导入依赖的package包/类
public void setPreviewInsertText(CallableWithArgs<Vote> previewInsertText) {
    this.previewInsertText = previewInsertText;
}
 
开发者ID:aalmiray,项目名称:griffon2,代码行数:4,代码来源:TextInputContentAdapter.java


注:本文中的org.apache.pivot.util.Vote类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。