com.jtechlabs.ui.widget.directorychooser
Class DirectoryChooserConfirmationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.jtechlabs.ui.widget.directorychooser.DirectoryChooserConfirmationEvent
All Implemented Interfaces:
java.io.Serializable

public class DirectoryChooserConfirmationEvent
extends java.util.EventObject

An event, that notifies listeners about request to confirm that certain operation (moving/deleting directory,...etc) should be performed.

Version:
1.0
Author:
Aleksey Prochukhan

Constructor Summary
DirectoryChooserConfirmationEvent(java.lang.Object source, java.io.File file)
          An event, that notifies listeners about request to confirm certain operation.
 
Method Summary
 java.io.File getFile()
          Returns the target file object of the operation that requested confirmation.
 boolean isConfirmed()
          Returns confirmation result.
 void setConfirmed(boolean confirmed)
          Sets confrimation status.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectoryChooserConfirmationEvent

public DirectoryChooserConfirmationEvent(java.lang.Object source,
                                         java.io.File file)
An event, that notifies listeners about request to confirm certain operation.

Parameters:
source - the source of event (JDirectoryChooser component).
file - the file object that requested confirmation.
Method Detail

getFile

public java.io.File getFile()
Returns the target file object of the operation that requested confirmation.

Returns:
the target file object of the operation that requested confirmation.

isConfirmed

public boolean isConfirmed()
Returns confirmation result.

Returns:
true if given operation should be performed, false if it should be canceled.

setConfirmed

public void setConfirmed(boolean confirmed)
Sets confrimation status.

Parameters:
confirmed - the new confirmation status. true if given operation should be performed, false if it should be canceled.


Copyright © 2005 JTechLabs.com All Rights Reserved.