|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.lightdev.lib.filesystem.FileSystemEvent
public class FileSystemEvent
A class that models events in the Light Development File System
| Field Summary | |
|---|---|
static int |
ACTION_COPY
action type constant |
static int |
ACTION_CREATE
action type constant |
static int |
ACTION_DELETE
action type constant |
static int |
ACTION_EXPORT
action type constant |
static int |
ACTION_IMPORT
action type constant |
static int |
ACTION_RENAME
action type constant |
static int |
PROCESS_END
event type constant |
static int |
PROCESS_START
event type constant |
static int |
PROGRESS
event type constant |
| Constructor Summary | |
|---|---|
FileSystemEvent(Object source,
int action,
int type,
FileRef[] files)
create a new instance of class FileSystemEvent |
|
FileSystemEvent(Object source,
int action,
int type,
FileRef[] files,
Object value)
create a new instance of class FileSystemEvent |
|
| Method Summary | |
|---|---|
int |
getAction()
get the action that initiated this event |
String |
getActionName(int action)
Get action name for a given action id |
FileRef[] |
getFiles()
get the files that were changed |
int |
getType()
get the type of event |
Object |
getValue()
get the new value the FileRef with new file name in case of rename a progress value as a long in case of progress (not the total processed, only the progress value of this particular event) |
| 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 PROGRESS
public static final int PROCESS_START
public static final int PROCESS_END
public static final int ACTION_COPY
public static final int ACTION_RENAME
public static final int ACTION_CREATE
public static final int ACTION_DELETE
public static final int ACTION_IMPORT
public static final int ACTION_EXPORT
| Constructor Detail |
|---|
public FileSystemEvent(Object source,
int action,
int type,
FileRef[] files)
source - the file system file have changed inaction - the action that initiated this event, e.g. FileSystemEvent.ACTION_COPYtype - the type of event, one of FILE_DELETED, FILE_CREATED and FILE_RENAMEDfiles - the files affected by the change
public FileSystemEvent(Object source,
int action,
int type,
FileRef[] files,
Object value)
source - the file system file have changed inaction - the action that initiated this event, e.g. FileSystemEvent.ACTION_COPYtype - the type of event, one of FILE_DELETED, FILE_CREATED and FILE_RENAMEDfiles - the files affected by the changevalue - a value to transport wihtin this class| Method Detail |
|---|
public int getType()
public int getAction()
public FileRef[] getFiles()
public Object getValue()
public String getActionName(int action)
action - id of action to get name for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||