/** * 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()); }
/** * 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()); }
/** * 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()); }
private void init() { setForeground(isClicked() ? getClickedColor() : getUnclickedColor()); }
private void init() { setForeground(isClicked() ? getClickedColor() : getUnclickedColor()); }
private void init() { setForeground(isClicked() ? getClickedColor() : getUnclickedColor()); }
private void init() { setForeground(isClicked() ? getClickedColor() : getUnclickedColor()); }
private void init() { setForeground(isClicked() ? getClickedColor() : 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 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 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 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 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()); }