/[classpath]/classpath/javax/swing/AbstractButton.java
ViewVC logotype

Diff of /classpath/javax/swing/AbstractButton.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by mkoch, Fri Oct 22 12:43:59 2004 UTC revision 1.25 by mkoch, Tue Jan 25 07:07:25 2005 UTC
# Line 661  public abstract class AbstractButton ext Line 661  public abstract class AbstractButton ext
661     *     *
662     * @param e The event signifying that the button's model changed state     * @param e The event signifying that the button's model changed state
663     */     */
664    public void fireItemStateChanged(ItemEvent e)    protected void fireItemStateChanged(ItemEvent e)
665    {    {
666      e.setSource(this);      e.setSource(this);
667      ItemListener[] listeners = getItemListeners();      ItemListener[] listeners = getItemListeners();
# Line 676  public abstract class AbstractButton ext Line 676  public abstract class AbstractButton ext
676     *     *
677     * @param e The event signifying that the button's model was clicked     * @param e The event signifying that the button's model was clicked
678     */     */
679    public void fireActionPerformed(ActionEvent e)    protected void fireActionPerformed(ActionEvent e)
680    {    {
681      e.setSource(this);      e.setSource(this);
682      ActionListener[] listeners = getActionListeners();      ActionListener[] listeners = getActionListeners();
# Line 689  public abstract class AbstractButton ext Line 689  public abstract class AbstractButton ext
689     * Calls {@link ChangeEvent.stateChanged} on each {@link ChangeListener}     * Calls {@link ChangeEvent.stateChanged} on each {@link ChangeListener}
690     * in the button's listener list.     * in the button's listener list.
691     */     */
692    public void fireStateChanged()    protected void fireStateChanged()
693    {    {
694      ChangeListener[] listeners = getChangeListeners();      ChangeListener[] listeners = getChangeListeners();
695    
# Line 806  public abstract class AbstractButton ext Line 806  public abstract class AbstractButton ext
806    public void setRolloverEnabled(boolean r)    public void setRolloverEnabled(boolean r)
807    {    {
808      if (rollOverEnabled != r)      if (rollOverEnabled != r)
809    {        {
810          rollOverEnabled = r;          rollOverEnabled = r;
811          firePropertyChange(ROLLOVER_ENABLED_CHANGED_PROPERTY, !r, r);          firePropertyChange(ROLLOVER_ENABLED_CHANGED_PROPERTY, !r, r);
812          revalidate();          revalidate();

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26