|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.jtechlabs.ui.widget.directorychooser.DirectoryChooserNameRequestEvent
An event, that notifies about request to provide JDirectoryChooser
component with a name
for the directory. Used for creation of new directories and renaming of existing directories.
Field Summary | |
static int |
NEW_DIRECTORY
Request name for the new directory. |
static int |
RENAME_DIRECTORY
Request name to rename the directory. |
Constructor Summary | |
DirectoryChooserNameRequestEvent(java.lang.Object source,
java.io.File path,
int type)
Notifies about request to provide name for the directory. |
Method Summary | |
java.lang.String |
getName()
Returns the name of the directory, entered by user. |
java.io.File |
getPath()
Returns currently selected directory object. |
int |
getType()
Returns the type of this request. |
void |
setName(java.lang.String name)
Set new name for the directory. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NEW_DIRECTORY
public static final int RENAME_DIRECTORY
Constructor Detail |
public DirectoryChooserNameRequestEvent(java.lang.Object source, java.io.File path, int type)
path
- the currently selected directory.Method Detail |
public java.io.File getPath()
public int getType()
NEW_DIRECTORY
or RENAME_DIRECTORY
.
public void setName(java.lang.String name)
name
- the name, entered by user.public java.lang.String getName()
null
if operation was canceled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |