ewe.io
Class FileChooserLink

java.lang.Object
  extended byewe.io.FileChooserLink

public class FileChooserLink
extends Object


Field Summary
 IImage icon
           
 String name
           
 String path
           
 
Constructor Summary
FileChooserLink(String aPath, File fileModel)
           
FileChooserLink(String name, String path, IImage icon)
           
 
Method Summary
 MenuItem addToMenu(ChoiceControl m, FontMetrics fm)
           
 boolean equals(Object other)
          This checks for equality of Paths.
 File toFile(File fileSystem)
           
 String toString()
          Return a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode
 

Field Detail

icon

public IImage icon

name

public String name

path

public String path
Constructor Detail

FileChooserLink

public FileChooserLink(String name,
                       String path,
                       IImage icon)

FileChooserLink

public FileChooserLink(String aPath,
                       File fileModel)
Method Detail

addToMenu

public MenuItem addToMenu(ChoiceControl m,
                          FontMetrics fm)

toString

public String toString()
Description copied from class: Object
Return a String representation of this object.

Overrides:
toString in class Object
Returns:
a String representing this object.

equals

public boolean equals(Object other)
This checks for equality of Paths. The object can be another link, or a file or a path string.

Overrides:
equals in class Object
Parameters:
other - Another object to compare to.
Returns:
true if this object is considered equal to the other object.

toFile

public File toFile(File fileSystem)