|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.pandoragames.far.ui.model.TargetFile
public class TargetFile
Data container for the files in a result list. Files in that list may have errors, be subject to name changes and selection or be excluded from a subset.
| Constructor Summary | |
|---|---|
TargetFile(java.io.File file)
Constructor requires a non null file object. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears all messages. |
java.lang.Object |
clone()
Returns a copy of this object. |
boolean |
equals(java.lang.Object o)
Two target files are equal if the wraped files are equal. |
void |
error(java.lang.String errorMessage)
Sets an error message for this file. |
java.nio.charset.Charset |
getCharacterset()
Returns the character set of this file, if any was specified. |
java.lang.String |
getErrorMessage()
Returns the error message if any. |
java.io.File |
getFile()
Returns the underlying java.io.File object. |
java.lang.String |
getInfoMessage()
Returns the info message if any. |
java.lang.String |
getName()
Returns the file name. |
java.lang.String |
getNewName()
Returns a planned new name if any was set. |
java.lang.String |
getPath()
Returns the files directory path. |
int |
hashCode()
|
void |
info(java.lang.String message)
Sets an info message for this file. |
boolean |
isIncluded()
Returns true if this file should be considdered part of a subset in the same collection. |
boolean |
isSelected()
Returns true (the default) if this file object has bee selected. |
void |
setCharacterset(java.nio.charset.Charset charaset)
Specifies a character set for this file. |
void |
setIncluded(boolean included)
Includes or excludes this object in a subset of the same collection this instance was taken from. |
void |
setNewName(java.lang.String newName)
Sets the new name property of this object. |
void |
setSelected(boolean select)
Selects or deselects this object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TargetFile(java.io.File file)
file - not null| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getPath()
public java.lang.String getErrorMessage()
public java.lang.String getInfoMessage()
public void error(java.lang.String errorMessage)
error in interface MessageBoxerrorMessage - error messagepublic void info(java.lang.String message)
info in interface MessageBoxmessage - informative messagepublic void clear()
clear in interface MessageBoxpublic java.io.File getFile()
java.io.File object.
File objectpublic boolean isSelected()
public void setSelected(boolean select)
select - true if this file object should be selected.public java.lang.String getNewName()
public void setNewName(java.lang.String newName)
newName - property valuepublic boolean isIncluded()
public void setIncluded(boolean included)
included - set to false to excluidepublic java.nio.charset.Charset getCharacterset()
public void setCharacterset(java.nio.charset.Charset charaset)
public java.lang.Object clone()
clone in class java.lang.ObjectObject.clone()public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||