BrightSide Workbench Full Report + Source Code
org.turro.elephant.configuration.FilesItem Class Reference
Inheritance diagram for org.turro.elephant.configuration.FilesItem:
Collaboration diagram for org.turro.elephant.configuration.FilesItem:

Public Member Functions

 FilesItem (File file, String label, String pattern)
 
 FilesItem (File file, String label, String pattern, boolean dynamicLoad)
 
boolean isDynamicLoad ()
 
void addFile (FilesItem file)
 
FilesTree getTree ()
 
File getCurrentFile ()
 
void refresh ()
 

Detailed Description

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

Definition at line 37 of file FilesItem.java.

Constructor & Destructor Documentation

◆ FilesItem() [1/2]

org.turro.elephant.configuration.FilesItem.FilesItem ( File  file,
String  label,
String  pattern 
)

Definition at line 42 of file FilesItem.java.

42  {
43  this(file, label, pattern, false);
44  }

◆ FilesItem() [2/2]

org.turro.elephant.configuration.FilesItem.FilesItem ( File  file,
String  label,
String  pattern,
boolean  dynamicLoad 
)

Definition at line 46 of file FilesItem.java.

46  {
47  this.label = Strings.isBlank(label) ? file.getName() : label;
48  this.pattern = pattern;
49  this.dynamicLoad = dynamicLoad;
50  setValue(file);
51  initiate();
52  }

Member Function Documentation

◆ addFile()

void org.turro.elephant.configuration.FilesItem.addFile ( FilesItem  file)

Definition at line 58 of file FilesItem.java.

58  {
59  if(!isContainer()) {
60  appendChild(new Treechildren());
61  }
62  getTreechildren().appendChild(file);
63  }
Here is the caller graph for this function:

◆ getCurrentFile()

File org.turro.elephant.configuration.FilesItem.getCurrentFile ( )

Definition at line 70 of file FilesItem.java.

70  {
71  return getValue();
72  }
Here is the caller graph for this function:

◆ getTree()

FilesTree org.turro.elephant.configuration.FilesItem.getTree ( )

Definition at line 66 of file FilesItem.java.

66  {
67  return (FilesTree) super.getTree();
68  }

◆ isDynamicLoad()

boolean org.turro.elephant.configuration.FilesItem.isDynamicLoad ( )

Definition at line 54 of file FilesItem.java.

54  {
55  return dynamicLoad;
56  }
Here is the caller graph for this function:

◆ refresh()

void org.turro.elephant.configuration.FilesItem.refresh ( )

Definition at line 74 of file FilesItem.java.

74  {
75  getTreechildren().getChildren().clear();
76  fillChildren();
77  }
Here is the caller graph for this function:

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