/** * removes the propertyChangeListener. <p> * * Implementation NOTE: this does not clean-up internal state! There is * no need to because updateFromTarget handles both null and not-null * targets. Hmm... * */ @Override protected void uninstallTarget() { if (getTarget() == null) return; getTarget().removePropertyChangeListener(getTargetListener()); }
/** * This action delegates to the visitingDelegate if both * delegate and target are != null, does nothing otherwise. * The actionEvent carries the target as source. * * PENDING: pass through a null target? - most probably! * * * */ public void actionPerformed(ActionEvent e) { if ((delegate != null) && (getTarget() != null)) { delegate.actionPerformed(new ActionEvent(getTarget(), ActionEvent.ACTION_PERFORMED, VISIT_ACTION)); } }
/** * removes the propertyChangeListener. <p> * * Implementation NOTE: this does not clean-up internal state! There is * no need to because updateFromTarget handles both null and not-null * targets. Hmm... * */ @Override protected void uninstallTarget() { if (getTarget() == null) return; getTarget().removePropertyChangeListener(getTargetListener()); }
/** * This action delegates to the visitingDelegate if both * delegate and target are != null, does nothing otherwise. * The actionEvent carries the target as source. * * PENDING: pass through a null target? - most probably! * * * */ @Override public void actionPerformed(ActionEvent e) { if ((delegate != null) && (getTarget() != null)) { delegate.actionPerformed(new ActionEvent(getTarget(), ActionEvent.ACTION_PERFORMED, VISIT_ACTION)); } }
/** * removes the propertyChangeListener. <p> * * Implementation NOTE: this does not clean-up internal state! There is * no need to because updateFromTarget handles both null and not-null * targets. Hmm... * */ @Override protected void uninstallTarget() { if (getTarget() == null) return; getTarget().removePropertyChangeListener(getTargetListener()); }
/** * This action delegates to the visitingDelegate if both * delegate and target are != null, does nothing otherwise. * The actionEvent carries the target as source. * * PENDING: pass through a null target? - most probably! * * * */ @Override public void actionPerformed(ActionEvent e) { if ((delegate != null) && (getTarget() != null)) { delegate.actionPerformed(new ActionEvent(getTarget(), ActionEvent.ACTION_PERFORMED, VISIT_ACTION)); } }
/** * removes the propertyChangeListener. <p> * * Implementation NOTE: this does not clean-up internal state! There is * no need to because updateFromTarget handles both null and not-null * targets. Hmm... * */ @Override protected void uninstallTarget() { if (getTarget() == null) return; getTarget().removePropertyChangeListener(getTargetListener()); }
/** * This action delegates to the visitingDelegate if both * delegate and target are != null, does nothing otherwise. * The actionEvent carries the target as source. * * PENDING: pass through a null target? - most probably! * * * */ @Override public void actionPerformed(ActionEvent e) { if ((delegate != null) && (getTarget() != null)) { delegate.actionPerformed(new ActionEvent(getTarget(), ActionEvent.ACTION_PERFORMED, VISIT_ACTION)); } }
/** * removes the propertyChangeListener. <p> * * Implementation NOTE: this does not clean-up internal state! There is * no need to because updateFromTarget handles both null and not-null * targets. Hmm... * */ @Override protected void uninstallTarget() { if (getTarget() == null) return; getTarget().removePropertyChangeListener(getTargetListener()); }
/** * This action delegates to the visitingDelegate if both * delegate and target are != null, does nothing otherwise. * The actionEvent carries the target as source. * * PENDING: pass through a null target? - most probably! * * * */ @Override public void actionPerformed(ActionEvent e) { if ((delegate != null) && (getTarget() != null)) { delegate.actionPerformed(new ActionEvent(getTarget(), ActionEvent.ACTION_PERFORMED, VISIT_ACTION)); } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }