cz.cuni.pogamut.posh.widget.accept
Class AcceptComp2TA

Package class diagram package AcceptComp2TA
java.lang.Object
  extended by cz.cuni.pogamut.posh.widget.accept.AbstractAcceptAction<cz.cuni.amis.pogamut.sposh.elements.Competence,cz.cuni.amis.pogamut.sposh.elements.TriggeredAction>
      extended by cz.cuni.pogamut.posh.widget.accept.AcceptComp2TA
All Implemented Interfaces:
org.netbeans.api.visual.action.AcceptProvider

public class AcceptComp2TA
extends AbstractAcceptAction<cz.cuni.amis.pogamut.sposh.elements.Competence,cz.cuni.amis.pogamut.sposh.elements.TriggeredAction>

When competence is dropped to the triggered action, add competence to the posh plan if it isn't already there and change name of triggered action (that means triggered action will expand to the competence).

Author:
Honza

Field Summary
 
Fields inherited from class cz.cuni.pogamut.posh.widget.accept.AbstractAcceptAction
dataFlavor, dataNode, log, widget
 
Constructor Summary
AcceptComp2TA(cz.cuni.amis.pogamut.sposh.elements.TriggeredAction dataNode)
           
 
Method Summary
protected  void performAction(cz.cuni.amis.pogamut.sposh.elements.Competence competenceNode)
          When deriving from this widget, implement what should actually be done in this function.
 
Methods inherited from class cz.cuni.pogamut.posh.widget.accept.AbstractAcceptAction
accept, displayMessage, getDataFlavor, getIndexInList, isAcceptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptComp2TA

public AcceptComp2TA(cz.cuni.amis.pogamut.sposh.elements.TriggeredAction dataNode)
Method Detail

performAction

protected void performAction(cz.cuni.amis.pogamut.sposh.elements.Competence competenceNode)
Description copied from class: AbstractAcceptAction
When deriving from this widget, implement what should actually be done in this function.

Specified by:
performAction in class AbstractAcceptAction<cz.cuni.amis.pogamut.sposh.elements.Competence,cz.cuni.amis.pogamut.sposh.elements.TriggeredAction>
Parameters:
competenceNode - Object that was stored in the Transferable, basically object that was dropped.


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.