/** * Overridden for performance reasons. * See the <a href="#override">Implementation Note</a> * for more information. */ @Override protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // Strings get interned... if ("text".equals(propertyName)) { super.firePropertyChange(propertyName, oldValue, newValue); } }
/** * Overridden for performance reasons. * See the <a href="#override">Implementation Note</a> * for more information. */ @Override protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // Strings get interned... if ("text".equals(propertyName)) { super.firePropertyChange(propertyName, oldValue, newValue); } }
/** * Overridden for performance reasons. * See the <a href="#override">Implementation Note</a> * for more information. */ @Override protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // Strings get interned... if ("text".equals(propertyName)) { super.firePropertyChange(propertyName, oldValue, newValue); } }
/** * Overridden for performance reasons. * See the <a href="#override">Implementation Note</a> * for more information. */ @Override protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // Strings get interned... if ("text".equals(propertyName)) { super.firePropertyChange(propertyName, oldValue, newValue); } }
/** * Overridden for performance reasons. * See the <a href="#override">Implementation Note</a> * for more information. */ @Override protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { // Strings get interned... if ("text".equals(propertyName)) { super.firePropertyChange(propertyName, oldValue, newValue); } }
/** * Sets the overrulesActionOnClick property. It controls whether this * button should overrule the Action's visited property on actionPerformed. <p> * * The default value is <code>false</code>. * * @param overrule if true, fireActionPerformed will set clicked to true * independent of action. * * @see #getOverrulesActionOnClick() * @see #setClicked(boolean) */ public void setOverrulesActionOnClick(boolean overrule) { boolean old = getOverrulesActionOnClick(); this.overrulesActionOnClick = overrule; firePropertyChange("overrulesActionOnClick", old, getOverrulesActionOnClick()); }
/** * Sets the overrulesActionOnClick property. It controls whether this * button should overrule the Action's visited property on actionPerformed. <p> * * The default value is <code>false</code>. * * @param overrule if true, fireActionPerformed will set clicked to true * independent of action. * * @see #getOverrulesActionOnClick() * @see #setClicked(boolean) */ public void setOverrulesActionOnClick(boolean overrule) { boolean old = getOverrulesActionOnClick(); this.overrulesActionOnClick = overrule; firePropertyChange("overrulesActionOnClick", old, getOverrulesActionOnClick()); }
/** * Sets the overrulesActionOnClick property. It controls whether this * button should overrule the Action's visited property on actionPerformed. <p> * * The default value is <code>false</code>. * * @param overrule if true, fireActionPerformed will set clicked to true * independent of action. * * @see #getOverrulesActionOnClick() * @see #setClicked(boolean) */ public void setOverrulesActionOnClick(boolean overrule) { boolean old = getOverrulesActionOnClick(); this.overrulesActionOnClick = overrule; firePropertyChange("overrulesActionOnClick", old, getOverrulesActionOnClick()); }
/** * Sets the color for the previously not visited link. This value will override the one * set by the "JXHyperlink.unclickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has not yet been clicked. */ public void setUnclickedColor(Color color) { Color old = getUnclickedColor(); unclickedColor = color; if (!isClicked()) { setForeground(getUnclickedColor()); } firePropertyChange("unclickedColor", old, getUnclickedColor()); }
/** * Sets the color for the previously visited link. This value will override the one * set by the "JXHyperlink.clickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has already been clicked. */ public void setClickedColor(Color color) { Color old = getClickedColor(); clickedColor = color; if (isClicked()) { setForeground(getClickedColor()); } firePropertyChange("clickedColor", old, getClickedColor()); }
/** * Sets the color for the previously not visited link. This value will override the one * set by the "JXHyperlink.unclickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has not yet been clicked. */ public void setUnclickedColor(Color color) { Color old = getUnclickedColor(); unclickedColor = color; if (!isClicked()) { setForeground(getUnclickedColor()); } firePropertyChange("unclickedColor", old, getUnclickedColor()); }
/** * Sets the color for the previously visited link. This value will override the one * set by the "JXHyperlink.clickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has already been clicked. */ public void setClickedColor(Color color) { Color old = getClickedColor(); clickedColor = color; if (isClicked()) { setForeground(getClickedColor()); } firePropertyChange("clickedColor", old, getClickedColor()); }
/** * Sets the color for the previously not visited link. This value will override the one * set by the "JXHyperlink.unclickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has not yet been clicked. */ public void setUnclickedColor(Color color) { Color old = getUnclickedColor(); unclickedColor = color; if (!isClicked()) { setForeground(getUnclickedColor()); } firePropertyChange("unclickedColor", old, getUnclickedColor()); }
/** * Sets the color for the previously visited link. This value will override the one * set by the "JXHyperlink.clickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has already been clicked. */ public void setUnclickedColor(Color color) { Color old = getUnclickedColor(); unclickedColor = color; if (!isClicked()) { setForeground(getUnclickedColor()); } firePropertyChange("unclickedColor", old, getUnclickedColor()); }
/** * Sets the color for the previously visited link. This value will override the one * set by the "JXHyperlink.clickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has already been clicked. */ public void setClickedColor(Color color) { Color old = getClickedColor(); clickedColor = color; if (isClicked()) { setForeground(getClickedColor()); } firePropertyChange("clickedColor", old, getClickedColor()); }
/** * Sets the color for the previously visited link. This value will override the one * set by the "JXHyperlink.clickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has already been clicked. */ public void setClickedColor(Color color) { Color old = getClickedColor(); clickedColor = color; if (isClicked()) { setForeground(getClickedColor()); } firePropertyChange("clickedColor", old, getClickedColor()); }
/** * Sets the color for the previously not visited link. This value will override the one * set by the "JXHyperlink.unclickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has not yet been clicked. */ public void setUnclickedColor(Color color) { Color old = getUnclickedColor(); unclickedColor = color; if (!isClicked()) { setForeground(getUnclickedColor()); } firePropertyChange("unclickedColor", old, getUnclickedColor()); }
/** * Sets the color for the previously not visited link. This value will override the one * set by the "JXHyperlink.unclickedColor" UIManager property and defaults. * * @param color Color for the hyper link if it has not yet been clicked. */ public void setClickedColor(Color color) { Color old = getClickedColor(); clickedColor = color; if (isClicked()) { setForeground(getClickedColor()); } firePropertyChange("clickedColor", old, getClickedColor()); }
/** * Sets the clicked property and updates visual state depending on clicked. * This implementation updated the foreground color. * <p> * * NOTE: as with all button's visual properties, this will not update the * backing action's "visited" state. * * @param clicked flag to indicate if the button should be regarded as * having been clicked or not. * @see #isClicked() */ public void setClicked(boolean clicked) { boolean old = isClicked(); hasBeenVisited = clicked; setForeground(isClicked() ? getClickedColor() : getUnclickedColor()); firePropertyChange("clicked", old, isClicked()); }
/** * Sets the clicked property and updates visual state depending on clicked. * This implementation updated the foreground color. * <p> * * NOTE: as with all button's visual properties, this will not update the * backing action's "visited" state. * * @param clicked flag to indicate if the button should be regarded as * having been clicked or not. * @see #isClicked() */ public void setClicked(boolean clicked) { boolean old = isClicked(); hasBeenVisited = clicked; setForeground(isClicked() ? getClickedColor() : getUnclickedColor()); firePropertyChange("clicked", old, isClicked()); }