BrightSide Workbench Full Report + Source Code
org.turro.zkoss.input.FileListbox Class Reference
Inheritance diagram for org.turro.zkoss.input.FileListbox:
Collaboration diagram for org.turro.zkoss.input.FileListbox:

Public Member Functions

File getDir ()
 
void setDir (File dir)
 
String getFilter ()
 
void setFilter (String filter)
 
boolean isExact ()
 
void setExact (boolean exact)
 
void afterCompose ()
 
- Public Member Functions inherited from org.turro.zkoss.input.CollectionListbox< File >
 CollectionListbox ()
 
 CollectionListbox (Collection< V > collection)
 
void updateCollection ()
 
void updateCollection (Collection< V > collection)
 
boolean isAllowNull ()
 
void setAllowNull (boolean allowNull)
 
Collection< V > getCollection ()
 
void setCollection (Collection< V > collection)
 
boolean isNullAtBottom ()
 
void setNullAtBottom (boolean nullAtBottom)
 
String getNullLabel ()
 
void setNullLabel (String nullLabel)
 

Protected Member Functions

String convertToString (File v)
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionListbox< File >
void populateList ()
 
boolean equals (V value, V obj)
 
abstract String convertToString (V v)
 
void beforeAppend (Listitem li)
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.zkoss.input.CollectionListbox< File >
static final String ITEM_SEPARATOR
 

Detailed Description

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

Definition at line 29 of file FileListbox.java.

Member Function Documentation

◆ afterCompose()

void org.turro.zkoss.input.FileListbox.afterCompose ( )

Definition at line 65 of file FileListbox.java.

65  {
66  File files[] = dir.listFiles(new FileFilter() {
67  @Override
68  public boolean accept(File pathname) {
69  return pathname.isFile() && (exact ? pathname.getName().matches(filter) :
70  Strings.finds(pathname.getName(), filter));
71  }
72  });
73  if(files != null && files.length > 0) setCollection(Arrays.asList(files));
74  super.afterCompose();
75  }
void setCollection(Collection< V > collection)
Here is the call graph for this function:

◆ convertToString()

String org.turro.zkoss.input.FileListbox.convertToString ( File  v)
protected

Definition at line 60 of file FileListbox.java.

60  {
61  return v.getName();
62  }

◆ getDir()

File org.turro.zkoss.input.FileListbox.getDir ( )

Definition at line 35 of file FileListbox.java.

35  {
36  return dir;
37  }

◆ getFilter()

String org.turro.zkoss.input.FileListbox.getFilter ( )

Definition at line 43 of file FileListbox.java.

43  {
44  return filter;
45  }

◆ isExact()

boolean org.turro.zkoss.input.FileListbox.isExact ( )

Definition at line 51 of file FileListbox.java.

51  {
52  return exact;
53  }

◆ setDir()

void org.turro.zkoss.input.FileListbox.setDir ( File  dir)

Definition at line 39 of file FileListbox.java.

39  {
40  this.dir = dir;
41  }
Here is the caller graph for this function:

◆ setExact()

void org.turro.zkoss.input.FileListbox.setExact ( boolean  exact)

Definition at line 55 of file FileListbox.java.

55  {
56  this.exact = exact;
57  }
Here is the caller graph for this function:

◆ setFilter()

void org.turro.zkoss.input.FileListbox.setFilter ( String  filter)

Definition at line 47 of file FileListbox.java.

47  {
48  this.filter = filter;
49  }
Here is the caller graph for this function:

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