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

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

public class AcceptDrive2DC
extends AbstractAcceptAction<cz.cuni.amis.pogamut.sposh.elements.DriveElement,cz.cuni.amis.pogamut.sposh.elements.DriveCollection>

What to do when drive is dropped on drive collection node. Add new drive as last child.

Author:
Honza

Field Summary
 
Fields inherited from class cz.cuni.pogamut.posh.widget.accept.AbstractAcceptAction
dataFlavor, dataNode, log, widget
 
Constructor Summary
AcceptDrive2DC(cz.cuni.amis.pogamut.sposh.elements.DriveCollection dataNode)
           
 
Method Summary
protected  void performAction(cz.cuni.amis.pogamut.sposh.elements.DriveElement drive)
          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

AcceptDrive2DC

public AcceptDrive2DC(cz.cuni.amis.pogamut.sposh.elements.DriveCollection dataNode)
Method Detail

performAction

protected void performAction(cz.cuni.amis.pogamut.sposh.elements.DriveElement drive)
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.DriveElement,cz.cuni.amis.pogamut.sposh.elements.DriveCollection>
Parameters:
drive - 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.