本文整理汇总了Java中org.apache.pivot.util.Vote.APPROVE属性的典型用法代码示例。如果您正苦于以下问题:Java Vote.APPROVE属性的具体用法?Java Vote.APPROVE怎么用?Java Vote.APPROVE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.pivot.util.Vote
的用法示例。
在下文中一共展示了Vote.APPROVE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: previewInsertText
@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;
}
示例2: previewWindowOpen
@Override
public Vote previewWindowOpen(Window arg0) {
return Vote.APPROVE;
}
示例3: previewWindowClose
@Override
public Vote previewWindowClose(Window arg0) {
handleClose(arg0);
return Vote.APPROVE;
}
示例4: previewRemoveTabs
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;
}
示例5: previewSuggestionPopupClose
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;
}
示例6: previewInsertText
public org.apache.pivot.util.Vote previewInsertText(org.apache.pivot.wtk.TextInput arg0, java.lang.CharSequence arg1, int arg2) {
if (previewInsertText != null) {
return previewInsertText.call(arg0, arg1, arg2);
}
return Vote.APPROVE;
}
示例7: previewRemoveText
public org.apache.pivot.util.Vote previewRemoveText(org.apache.pivot.wtk.TextInput arg0, int arg1, int arg2) {
if (previewRemoveText != null) {
return previewRemoveText.call(arg0, arg1, arg2);
}
return Vote.APPROVE;
}
示例8: previewExpandedChange
public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Rollup arg0) {
if (previewExpandedChange != null) {
return previewExpandedChange.call(arg0);
}
return Vote.APPROVE;
}
示例9: previewMenuPopupClose
public org.apache.pivot.util.Vote previewMenuPopupClose(org.apache.pivot.wtk.MenuPopup arg0, boolean arg1) {
if (previewMenuPopupClose != null) {
return previewMenuPopupClose.call(arg0, arg1);
}
return Vote.APPROVE;
}
示例10: previewDialogClose
public org.apache.pivot.util.Vote previewDialogClose(org.apache.pivot.wtk.Dialog arg0, boolean arg1) {
if (previewDialogClose != null) {
return previewDialogClose.call(arg0, arg1);
}
return Vote.APPROVE;
}
示例11: previewExpandedChange
public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0) {
if (previewExpandedChange != null) {
return previewExpandedChange.call(arg0);
}
return Vote.APPROVE;
}
示例12: previewWindowOpen
public org.apache.pivot.util.Vote previewWindowOpen(org.apache.pivot.wtk.Window arg0) {
if (previewWindowOpen != null) {
return previewWindowOpen.call(arg0);
}
return Vote.APPROVE;
}
示例13: previewWindowClose
public org.apache.pivot.util.Vote previewWindowClose(org.apache.pivot.wtk.Window arg0) {
if (previewWindowClose != null) {
return previewWindowClose.call(arg0);
}
return Vote.APPROVE;
}
示例14: previewSelectedIndexChange
public org.apache.pivot.util.Vote previewSelectedIndexChange(org.apache.pivot.wtk.CardPane arg0, int arg1) {
if (previewSelectedIndexChange != null) {
return previewSelectedIndexChange.call(arg0, arg1);
}
return Vote.APPROVE;
}
示例15: previewSelectedIndexChange
public org.apache.pivot.util.Vote previewSelectedIndexChange(org.apache.pivot.wtk.Accordion arg0, int arg1) {
if (previewSelectedIndexChange != null) {
return previewSelectedIndexChange.call(arg0, arg1);
}
return Vote.APPROVE;
}