- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
public void stateChanged(ChangeEvent e) { try { if (adjustMethod != null && !change.onAdjust()) { if ((Boolean) adjustMethod.invoke(changeObject)) return; } ofm.getMethod().invoke(ofm.getObject()); } catch (InvocationTargetException itex) { logger.error("exception during action firing", itex.getCause()); } catch (Exception ex) { logger.error("exception during action firing", ex); } } };
private static void wire(final OnChange change, Field field, BindingContext context) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { String call = change.call(); if (call == null) { throw new BindingException("call on @OnChange on " + field.getName() + " must be specified");
public final JLabel label = new JLabel("Toggle: "); @Bound(to = "toggle") @OnChange(call = "incrementStateChangeCount") public final JToggleButton button = new JToggleButton("Click Me!"); public final JLabel countLabel = new JLabel("Button State Changes: ");