org.dllearner.tools.protege
Class ActionHandler

java.lang.Object
  extended by org.dllearner.tools.protege.ActionHandler
All Implemented Interfaces:
ActionListener, ItemListener, MouseListener, EventListener, ListDataListener, ListSelectionListener

public class ActionHandler
extends Object
implements ActionListener, ItemListener, MouseListener, ListSelectionListener, ListDataListener

This class processes input from the user.

Author:
Christian Koetteritzsch

Constructor Summary
ActionHandler(DLLearnerModel m, DLLearnerView view, String i)
          This is the constructor for the action handler.
 
Method Summary
 void actionPerformed(ActionEvent z)
          When a Button is pressed this method select the right.
 void contentsChanged(ListDataEvent listEvent)
           
 void destroyDLLearnerThread()
          Destroys the Thread after the Pluigin is closed.
 String getID()
           
 void intervalAdded(ListDataEvent listEvent)
           
 void intervalRemoved(ListDataEvent listEvent)
           
 void itemStateChanged(ItemEvent i)
          select/deselect the Check boxes.
 void mouseClicked(MouseEvent m)
          Choses the right EvaluatedDescription object after a concept is chosen in the list.
 void mouseEntered(MouseEvent m)
          Nothing happens here.
 void mouseExited(MouseEvent m)
          Nothing happens here.
 void mousePressed(MouseEvent m)
          Sets the ADD button enable after a concept is chosen.
 void mouseReleased(MouseEvent m)
          Nothing happens here.
 void resetToggled()
          Resets the toggled Button after the plugin is closed.
 void valueChanged(ListSelectionEvent e)
          Nothing happens here.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionHandler

public ActionHandler(DLLearnerModel m,
                     DLLearnerView view,
                     String i)
This is the constructor for the action handler.

Parameters:
a - ActionHandler
m - DLLearnerModel
view - DLlearner tab
i - id if it is a subclass or an equivalent class
Method Detail

actionPerformed

public void actionPerformed(ActionEvent z)
When a Button is pressed this method select the right.

Specified by:
actionPerformed in interface ActionListener
Parameters:
z - ActionEvent

getID

public String getID()
Returns:
id StringID if it is a Subclass or an equivalent class.

itemStateChanged

public void itemStateChanged(ItemEvent i)
select/deselect the Check boxes.

Specified by:
itemStateChanged in interface ItemListener
Parameters:
i - ItemEvent

valueChanged

public void valueChanged(ListSelectionEvent e)
Nothing happens here.

Specified by:
valueChanged in interface ListSelectionListener
Parameters:
e - ListSelectionEvent

mouseReleased

public void mouseReleased(MouseEvent m)
Nothing happens here.

Specified by:
mouseReleased in interface MouseListener
Parameters:
m - MouseEvent

mouseEntered

public void mouseEntered(MouseEvent m)
Nothing happens here.

Specified by:
mouseEntered in interface MouseListener
Parameters:
m - MouseEvent

mouseClicked

public void mouseClicked(MouseEvent m)
Choses the right EvaluatedDescription object after a concept is chosen in the list.

Specified by:
mouseClicked in interface MouseListener
Parameters:
m - MouseEvent

mouseExited

public void mouseExited(MouseEvent m)
Nothing happens here.

Specified by:
mouseExited in interface MouseListener
Parameters:
m - MouseEvent

mousePressed

public void mousePressed(MouseEvent m)
Sets the ADD button enable after a concept is chosen.

Specified by:
mousePressed in interface MouseListener
Parameters:
m - MouseEvent

destroyDLLearnerThread

public void destroyDLLearnerThread()
Destroys the Thread after the Pluigin is closed.


resetToggled

public void resetToggled()
Resets the toggled Button after the plugin is closed.


contentsChanged

public void contentsChanged(ListDataEvent listEvent)
Specified by:
contentsChanged in interface ListDataListener

intervalAdded

public void intervalAdded(ListDataEvent listEvent)
Specified by:
intervalAdded in interface ListDataListener

intervalRemoved

public void intervalRemoved(ListDataEvent listEvent)
Specified by:
intervalRemoved in interface ListDataListener


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann