BrightSide Workbench Full Report + Source Code
org.turro.file.action.DeleteAction Class Reference
Inheritance diagram for org.turro.file.action.DeleteAction:
Collaboration diagram for org.turro.file.action.DeleteAction:

Public Member Functions

 DeleteAction (FileWrapper fw)
 
String getLabel ()
 
String getImage ()
 
Object doAction ()
 
boolean refreshParent ()
 
boolean refreshSelf ()
 
boolean isClientSide ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file DeleteAction.java.

Constructor & Destructor Documentation

◆ DeleteAction()

org.turro.file.action.DeleteAction.DeleteAction ( FileWrapper  fw)

Definition at line 32 of file DeleteAction.java.

32  {
33  this.fw = fw;
34  }

Member Function Documentation

◆ doAction()

Object org.turro.file.action.DeleteAction.doAction ( )

Implements org.turro.file.action.FileAction.

Definition at line 47 of file DeleteAction.java.

47  {
48  Messages.confirmDeletion().add(fw.getFile().getName()).show(() -> {
49  fw.delete();
50  });
51  return null;
52  }
Here is the call graph for this function:

◆ getImage()

String org.turro.file.action.DeleteAction.getImage ( )

Implements org.turro.file.action.FileAction.

Definition at line 42 of file DeleteAction.java.

42  {
43  return "/_zul/images/edit-delete.png";
44  }

◆ getLabel()

String org.turro.file.action.DeleteAction.getLabel ( )

Implements org.turro.file.action.FileAction.

Definition at line 37 of file DeleteAction.java.

37  {
38  return I_.get("Delete");
39  }
Here is the call graph for this function:

◆ isClientSide()

boolean org.turro.file.action.DeleteAction.isClientSide ( )

Implements org.turro.file.action.FileAction.

Definition at line 65 of file DeleteAction.java.

65  {
66  return false;
67  }

◆ refreshParent()

boolean org.turro.file.action.DeleteAction.refreshParent ( )

Implements org.turro.file.action.FileAction.

Definition at line 55 of file DeleteAction.java.

55  {
56  return true;
57  }

◆ refreshSelf()

boolean org.turro.file.action.DeleteAction.refreshSelf ( )

Implements org.turro.file.action.FileAction.

Definition at line 60 of file DeleteAction.java.

60  {
61  return false;
62  }

The documentation for this class was generated from the following file: