net.curre.prefcount.event
Class LafMenuItemListener

java.lang.Object
  extended by net.curre.prefcount.event.LafMenuItemListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener

public class LafMenuItemListener
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.ItemListener

Object of this class represents a listener for a L&F menu item (a CheckboxMenuItem object).

Created date: Jan 22, 2008

Author:
Yevgeny Nyden

Constructor Summary
LafMenuItemListener(PrefSkin skin)
          Constructor that sets the skin this listener is for.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
          Changes the current L&F skin to the listener's skin (this.skin).
 void itemStateChanged(java.awt.event.ItemEvent itemEvent)
          Changes the current L&F skin to the listener's skin (this.skin).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LafMenuItemListener

public LafMenuItemListener(PrefSkin skin)
Constructor that sets the skin this listener is for.

Parameters:
skin - Pref skin to set.
Method Detail

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent itemEvent)
Changes the current L&F skin to the listener's skin (this.skin). This ItemListener method is for awt menu only.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionEvent)
Changes the current L&F skin to the listener's skin (this.skin). This ActionListener method is for swing menu only.

Specified by:
actionPerformed in interface java.awt.event.ActionListener


Copyright © 2008. All Rights Reserved.