@Test public void testPreviewExpandedChange() { 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.getPreviewExpandedChange()); adapter.previewExpandedChange(null); assertFalse(invoked[0]); adapter.setPreviewExpandedChange(callable); adapter.previewExpandedChange(null); assertTrue(invoked[0]); }
public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0) { if (previewExpandedChange != null) { return previewExpandedChange.call(arg0); } return Vote.APPROVE; }
ExpanderAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ExpanderListener { public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0) { if (previewExpandedChange != null) { return previewExpandedChange.call(arg0); } return Vote.APPROVE; } }
ExpanderAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ExpanderListener { public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0) { if (previewExpandedChange != null) { return previewExpandedChange.call(arg0); } return Vote.APPROVE; }  }
ExpanderAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ExpanderListener { public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0) { if (previewExpandedChange != null) { return previewExpandedChange.call(arg0); } return Vote.APPROVE; }  CallableWithArgs<Void> getTitleChanged(); CallableWithArgs<Void> getContentChanged(); CallableWithArgs<Void> getCollapsibleChanged(); CallableWithArgs<Vote> getPreviewExpandedChange(); CallableWithArgs<Void> getExpandedChangeVetoed(); CallableWithArgs<Void> getExpandedChanged(); void setTitleChanged(CallableWithArgs<Void> titleChanged); void setContentChanged(CallableWithArgs<Void> contentChanged); void setCollapsibleChanged(CallableWithArgs<Void> collapsibleChanged); void setPreviewExpandedChange(CallableWithArgs<Vote> previewExpandedChange); void setExpandedChangeVetoed(CallableWithArgs<Void> expandedChangeVetoed); void setExpandedChanged(CallableWithArgs<Void> expandedChanged); void titleChanged(org.apache.pivot.wtk.Expander arg0, java.lang.String arg1); void contentChanged(org.apache.pivot.wtk.Expander arg0, org.apache.pivot.wtk.Component arg1); void collapsibleChanged(org.apache.pivot.wtk.Expander arg0); org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0); void expandedChangeVetoed(org.apache.pivot.wtk.Expander arg0, org.apache.pivot.util.Vote arg1); void expandedChanged(org.apache.pivot.wtk.Expander arg0); }
ExpanderAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.ExpanderListener { public org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0) { if (previewExpandedChange != null) { return previewExpandedChange.call(arg0); } return Vote.APPROVE; }  CallableWithArgs<Void> getTitleChanged(); CallableWithArgs<Void> getContentChanged(); CallableWithArgs<Void> getCollapsibleChanged(); CallableWithArgs<Vote> getPreviewExpandedChange(); CallableWithArgs<Void> getExpandedChangeVetoed(); CallableWithArgs<Void> getExpandedChanged(); void setTitleChanged(CallableWithArgs<Void> titleChanged); void setContentChanged(CallableWithArgs<Void> contentChanged); void setCollapsibleChanged(CallableWithArgs<Void> collapsibleChanged); void setPreviewExpandedChange(CallableWithArgs<Vote> previewExpandedChange); void setExpandedChangeVetoed(CallableWithArgs<Void> expandedChangeVetoed); void setExpandedChanged(CallableWithArgs<Void> expandedChanged); void titleChanged(org.apache.pivot.wtk.Expander arg0, java.lang.String arg1); void contentChanged(org.apache.pivot.wtk.Expander arg0, org.apache.pivot.wtk.Component arg1); void collapsibleChanged(org.apache.pivot.wtk.Expander arg0); org.apache.pivot.util.Vote previewExpandedChange(org.apache.pivot.wtk.Expander arg0); void expandedChangeVetoed(org.apache.pivot.wtk.Expander arg0, org.apache.pivot.util.Vote arg1); void expandedChanged(org.apache.pivot.wtk.Expander arg0);  }