@Test public void testNodeInserted() { final boolean[] invoked = new boolean[1]; CallableWithArgs<Void> callable = new CallableWithArgs<Void>() { public Void call(Object... args) { invoked[0] = true; return null; } }; assertNull(adapter.getNodeInserted()); adapter.nodeInserted(null, 0); assertFalse(invoked[0]); adapter.setNodeInserted(callable); adapter.nodeInserted(null, 0); assertTrue(invoked[0]); }
public void nodeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1) { if (nodeInserted != null) { nodeInserted.call(arg0, arg1); } }
NodeAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.text.NodeListener { public void nodeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1) { if (nodeInserted != null) { nodeInserted.call(arg0, arg1); } } }
NodeAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.text.NodeListener { public void nodeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1) { if (nodeInserted != null) { nodeInserted.call(arg0, arg1); } }  }
NodeAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.text.NodeListener { public void nodeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1) { if (nodeInserted != null) { nodeInserted.call(arg0, arg1); } }  CallableWithArgs<Void> getRangeInserted(); CallableWithArgs<Void> getRangeRemoved(); CallableWithArgs<Void> getNodeInserted(); CallableWithArgs<Void> getNodesRemoved(); CallableWithArgs<Void> getOffsetChanged(); CallableWithArgs<Void> getParentChanged(); void setRangeInserted(CallableWithArgs<Void> rangeInserted); void setRangeRemoved(CallableWithArgs<Void> rangeRemoved); void setNodeInserted(CallableWithArgs<Void> nodeInserted); void setNodesRemoved(CallableWithArgs<Void> nodesRemoved); void setOffsetChanged(CallableWithArgs<Void> offsetChanged); void setParentChanged(CallableWithArgs<Void> parentChanged); void rangeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1, int arg2); void rangeRemoved(org.apache.pivot.wtk.text.Node arg0, int arg1, int arg2); void nodeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1); void nodesRemoved(org.apache.pivot.wtk.text.Node arg0, org.apache.pivot.collections.Sequence<Node> arg1, int arg2); void offsetChanged(org.apache.pivot.wtk.text.Node arg0, int arg1); void parentChanged(org.apache.pivot.wtk.text.Node arg0, org.apache.pivot.wtk.text.Element arg1); }
NodeAdapter implements GriffonPivotAdapter, org.apache.pivot.wtk.text.NodeListener { public void nodeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1) { if (nodeInserted != null) { nodeInserted.call(arg0, arg1); } }  CallableWithArgs<Void> getRangeInserted(); CallableWithArgs<Void> getRangeRemoved(); CallableWithArgs<Void> getNodeInserted(); CallableWithArgs<Void> getNodesRemoved(); CallableWithArgs<Void> getOffsetChanged(); CallableWithArgs<Void> getParentChanged(); void setRangeInserted(CallableWithArgs<Void> rangeInserted); void setRangeRemoved(CallableWithArgs<Void> rangeRemoved); void setNodeInserted(CallableWithArgs<Void> nodeInserted); void setNodesRemoved(CallableWithArgs<Void> nodesRemoved); void setOffsetChanged(CallableWithArgs<Void> offsetChanged); void setParentChanged(CallableWithArgs<Void> parentChanged); void rangeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1, int arg2); void rangeRemoved(org.apache.pivot.wtk.text.Node arg0, int arg1, int arg2); void nodeInserted(org.apache.pivot.wtk.text.Node arg0, int arg1); void nodesRemoved(org.apache.pivot.wtk.text.Node arg0, org.apache.pivot.collections.Sequence<Node> arg1, int arg2); void offsetChanged(org.apache.pivot.wtk.text.Node arg0, int arg1); void parentChanged(org.apache.pivot.wtk.text.Node arg0, org.apache.pivot.wtk.text.Element arg1);  }