/** * Creates and returns a listener that will watch the changes of the * provided <code>Action</code> and will update JXHyperlink's properties * accordingly. */ @Override protected PropertyChangeListener createActionPropertyChangeListener( final Action a) { final PropertyChangeListener superListener = super .createActionPropertyChangeListener(a); // JW: need to do something better - only weak refs allowed! // no way to hook into super return new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { if (AbstractHyperlinkAction.VISITED_KEY.equals(evt.getPropertyName())) { configureClickedPropertyFromAction(a); } else { superListener.propertyChange(evt); } } }; }
/** * Creates and returns a listener that will watch the changes of the * provided <code>Action</code> and will update JXHyperlink's properties * accordingly. */ @Override protected PropertyChangeListener createActionPropertyChangeListener( final Action a) { final PropertyChangeListener superListener = super .createActionPropertyChangeListener(a); // JW: need to do something better - only weak refs allowed! // no way to hook into super return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { if (AbstractHyperlinkAction.VISITED_KEY.equals(evt.getPropertyName())) { configureClickedPropertyFromAction(a); } else { superListener.propertyChange(evt); } } }; }
/** * Creates and returns a listener that will watch the changes of the * provided <code>Action</code> and will update JXHyperlink's properties * accordingly. */ @Override protected PropertyChangeListener createActionPropertyChangeListener( final Action a) { final PropertyChangeListener superListener = super .createActionPropertyChangeListener(a); // JW: need to do something better - only weak refs allowed! // no way to hook into super return new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { if (AbstractHyperlinkAction.VISITED_KEY.equals(evt.getPropertyName())) { configureClickedPropertyFromAction(a); } else { superListener.propertyChange(evt); } } }; }
/** * Creates and returns a listener that will watch the changes of the * provided <code>Action</code> and will update JXHyperlink's properties * accordingly. */ @Override protected PropertyChangeListener createActionPropertyChangeListener( final Action a) { final PropertyChangeListener superListener = super .createActionPropertyChangeListener(a); // JW: need to do something better - only weak refs allowed! // no way to hook into super return new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { if (AbstractHyperlinkAction.VISITED_KEY.equals(evt.getPropertyName())) { configureClickedPropertyFromAction(a); } else { superListener.propertyChange(evt); } } }; }
/** * Creates and returns a listener that will watch the changes of the * provided <code>Action</code> and will update JXHyperlink's properties * accordingly. */ @Override protected PropertyChangeListener createActionPropertyChangeListener( final Action a) { final PropertyChangeListener superListener = super .createActionPropertyChangeListener(a); // JW: need to do something better - only weak refs allowed! // no way to hook into super return new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { if (AbstractHyperlinkAction.VISITED_KEY.equals(evt.getPropertyName())) { configureClickedPropertyFromAction(a); } else { superListener.propertyChange(evt); } } }; }