@Test public void testCheckDependency() { String depName = "depName"; String depState = "dep state"; fieldHandler.checkDependency(depName, depState); fieldHandler.checkDependency(null, depState); }
@Override public final void checkDependency(final String depName, final String depState) { if (dependencyName == null || mustMatch == null) { setEnabledContainer(true, panel); return; } if (dependencyName.equals(depName)) { if (!mustMatch.isEmpty()) { if (mustMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } else { if (!mustNotMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } } return; }
AbstractGUITunableHandler extends AbstractTunableHandler implements GUITunableHandler { @Override public final void checkDependency(final String depName, final String depState) { if (dependencyName == null || mustMatch == null) { setEnabledContainer(true, panel); return; } if (dependencyName.equals(depName)) { if (!mustMatch.isEmpty()) { if (mustMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } else { if (!mustNotMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } } return; } }
AbstractGUITunableHandler extends AbstractTunableHandler implements GUITunableHandler { @Override public final void checkDependency(final String depName, final String depState) { if (dependencyName == null || mustMatch == null) { setEnabledContainer(true, panel); return; } if (dependencyName.equals(depName)) { if (!mustMatch.isEmpty()) { if (mustMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } else { if (!mustNotMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } } return; } protected  AbstractGUITunableHandler(final Field field, final Object instance, final Tunable tunable); protected  AbstractGUITunableHandler(final Method getter, final Method setter, final Object instance, final Tunable tunable); }
AbstractGUITunableHandler extends AbstractTunableHandler implements GUITunableHandler { @Override public final void checkDependency(final String depName, final String depState) { if (dependencyName == null || mustMatch == null) { setEnabledContainer(true, panel); return; } if (dependencyName.equals(depName)) { if (!mustMatch.isEmpty()) { if (mustMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } else { if (!mustNotMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } } return; } protected  AbstractGUITunableHandler(final Field field, final Object instance, final Tunable tunable); protected  AbstractGUITunableHandler(final Method getter, final Method setter, final Object instance, final Tunable tunable); @Override void setValue(final Object newValue); @Override void notifyDependents(); @Override void notifyChangeListeners(); @Override void addChangeListener(GUITunableHandler gh); @Override void addDependent(GUITunableHandler gh); @Override String getDependency(); @Override String[] getChangeSources(); @Override final void changeOccurred(final String name, final String state); @Override final void checkDependency(final String depName, final String depState); @Override JPanel getJPanel(); @Override abstract void handle(); @Override void update(); @Override String getState(); boolean isHorizontal(); }
AbstractGUITunableHandler extends AbstractTunableHandler implements GUITunableHandler { @Override public final void checkDependency(final String depName, final String depState) { if (dependencyName == null || mustMatch == null) { setEnabledContainer(true, panel); return; } if (dependencyName.equals(depName)) { if (!mustMatch.isEmpty()) { if (mustMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } else { if (!mustNotMatch.equals(depState)) setEnabledContainer(true, panel); else setEnabledContainer(false, panel); } } return; } protected  AbstractGUITunableHandler(final Field field, final Object instance, final Tunable tunable); protected  AbstractGUITunableHandler(final Method getter, final Method setter, final Object instance, final Tunable tunable); @Override void setValue(final Object newValue); @Override void notifyDependents(); @Override void notifyChangeListeners(); @Override void addChangeListener(GUITunableHandler gh); @Override void addDependent(GUITunableHandler gh); @Override String getDependency(); @Override String[] getChangeSources(); @Override final void changeOccurred(final String name, final String state); @Override final void checkDependency(final String depName, final String depState); @Override JPanel getJPanel(); @Override abstract void handle(); @Override void update(); @Override String getState(); boolean isHorizontal();  }