@Test public void testPreviewInsertText() { final boolean[] invoked = new boolean[1]; CallableWithArgs<org.apache.pivot.util.Vote> callable = new CallableWithArgs<org.apache.pivot.util.Vote>() { public org.apache.pivot.util.Vote call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getPreviewInsertText()); adapter.previewInsertText(null, null, 0); assertFalse(invoked[0]); adapter.setPreviewInsertText(callable); adapter.previewInsertText(null, null, 0); assertTrue(invoked[0]); }
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; }
TextInputContentAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TextInputContentListener { 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; } }
TextInputContentAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TextInputContentListener { 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; }  }
TextInputContentAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TextInputContentListener { 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; }  CallableWithArgs<Void> getTextChanged(); CallableWithArgs<Vote> getPreviewInsertText(); CallableWithArgs<Void> getTextInserted(); CallableWithArgs<Void> getInsertTextVetoed(); CallableWithArgs<Vote> getPreviewRemoveText(); CallableWithArgs<Void> getTextRemoved(); CallableWithArgs<Void> getRemoveTextVetoed(); void setTextChanged(CallableWithArgs<Void> textChanged); void setPreviewInsertText(CallableWithArgs<Vote> previewInsertText); void setTextInserted(CallableWithArgs<Void> textInserted); void setInsertTextVetoed(CallableWithArgs<Void> insertTextVetoed); void setPreviewRemoveText(CallableWithArgs<Vote> previewRemoveText); void setTextRemoved(CallableWithArgs<Void> textRemoved); void setRemoveTextVetoed(CallableWithArgs<Void> removeTextVetoed); void textChanged(org.apache.pivot.wtk.TextInput arg0); org.apache.pivot.util.Vote previewInsertText(org.apache.pivot.wtk.TextInput arg0, java.lang.CharSequence arg1, int arg2); void textInserted(org.apache.pivot.wtk.TextInput arg0, int arg1, int arg2); void insertTextVetoed(org.apache.pivot.wtk.TextInput arg0, org.apache.pivot.util.Vote arg1); org.apache.pivot.util.Vote previewRemoveText(org.apache.pivot.wtk.TextInput arg0, int arg1, int arg2); void textRemoved(org.apache.pivot.wtk.TextInput arg0, int arg1, int arg2); void removeTextVetoed(org.apache.pivot.wtk.TextInput arg0, org.apache.pivot.util.Vote arg1); }
TextInputContentAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.TextInputContentListener { 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; }  CallableWithArgs<Void> getTextChanged(); CallableWithArgs<Vote> getPreviewInsertText(); CallableWithArgs<Void> getTextInserted(); CallableWithArgs<Void> getInsertTextVetoed(); CallableWithArgs<Vote> getPreviewRemoveText(); CallableWithArgs<Void> getTextRemoved(); CallableWithArgs<Void> getRemoveTextVetoed(); void setTextChanged(CallableWithArgs<Void> textChanged); void setPreviewInsertText(CallableWithArgs<Vote> previewInsertText); void setTextInserted(CallableWithArgs<Void> textInserted); void setInsertTextVetoed(CallableWithArgs<Void> insertTextVetoed); void setPreviewRemoveText(CallableWithArgs<Vote> previewRemoveText); void setTextRemoved(CallableWithArgs<Void> textRemoved); void setRemoveTextVetoed(CallableWithArgs<Void> removeTextVetoed); void textChanged(org.apache.pivot.wtk.TextInput arg0); org.apache.pivot.util.Vote previewInsertText(org.apache.pivot.wtk.TextInput arg0, java.lang.CharSequence arg1, int arg2); void textInserted(org.apache.pivot.wtk.TextInput arg0, int arg1, int arg2); void insertTextVetoed(org.apache.pivot.wtk.TextInput arg0, org.apache.pivot.util.Vote arg1); org.apache.pivot.util.Vote previewRemoveText(org.apache.pivot.wtk.TextInput arg0, int arg1, int arg2); void textRemoved(org.apache.pivot.wtk.TextInput arg0, int arg1, int arg2); void removeTextVetoed(org.apache.pivot.wtk.TextInput arg0, org.apache.pivot.util.Vote arg1);  }