com.alee.extended.list
Class FileElement

java.lang.Object
  extended by com.alee.extended.list.FileElement

public class FileElement
extends java.lang.Object

This class represents single file list element.

Author:
Mikle Garin

Constructor Summary
FileElement()
          Constructs element without file.
FileElement(java.io.File file)
          Constructs element with specified file.
 
Method Summary
 javax.swing.ImageIcon getDisabledThumbnail()
          Returns cached element thumbnail icon for disabled state.
 javax.swing.ImageIcon getEnabledThumbnail()
          Returns cached element thumbnail icon for enabled state.
 java.io.File getFile()
          Returns element file.
 boolean isDisabledThumbnailQueued()
          Returns whether disabled thumbnail load is queued or not.
 boolean isThumbnailQueued()
          Returns whether thumbnail load is queued or not.
 void setDisabledThumbnail(javax.swing.ImageIcon disabledThumbnail)
          Sets cached element thumbnail icon for disabled state.
 void setDisabledThumbnailQueued(boolean disabledThumbnailQueued)
          Sets whether disabled thumbnail load is queued or not.
 void setEnabledThumbnail(javax.swing.ImageIcon enabledThumbnail)
          Sets cached element thumbnail icon for enabled state.
 void setFile(java.io.File file)
          Sets element file.
 void setThumbnailQueued(boolean thumbnailQueued)
          Sets whether thumbnail load is queued or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileElement

public FileElement()
Constructs element without file.


FileElement

public FileElement(java.io.File file)
Constructs element with specified file.

Method Detail

getFile

public java.io.File getFile()
Returns element file.

Returns:
element file

setFile

public void setFile(java.io.File file)
Sets element file.

Parameters:
file - new element file

isThumbnailQueued

public boolean isThumbnailQueued()
Returns whether thumbnail load is queued or not.

Returns:
true if thumbnail load is queued, false otherwise

setThumbnailQueued

public void setThumbnailQueued(boolean thumbnailQueued)
Sets whether thumbnail load is queued or not.

Parameters:
thumbnailQueued - whether thumbnail load is queued or not

isDisabledThumbnailQueued

public boolean isDisabledThumbnailQueued()
Returns whether disabled thumbnail load is queued or not.

Returns:
true if disabled thumbnail load is queued, false otherwise

setDisabledThumbnailQueued

public void setDisabledThumbnailQueued(boolean disabledThumbnailQueued)
Sets whether disabled thumbnail load is queued or not.

Parameters:
disabledThumbnailQueued - whether disabled thumbnail load is queued or not

getEnabledThumbnail

public javax.swing.ImageIcon getEnabledThumbnail()
Returns cached element thumbnail icon for enabled state.

Returns:
cached element thumbnail icon for enabled state

setEnabledThumbnail

public void setEnabledThumbnail(javax.swing.ImageIcon enabledThumbnail)
Sets cached element thumbnail icon for enabled state.

Parameters:
enabledThumbnail - new cached element thumbnail icon for enabled state

getDisabledThumbnail

public javax.swing.ImageIcon getDisabledThumbnail()
Returns cached element thumbnail icon for disabled state.

Returns:
cached element thumbnail icon for disabled state

setDisabledThumbnail

public void setDisabledThumbnail(javax.swing.ImageIcon disabledThumbnail)
Sets cached element thumbnail icon for disabled state.

Parameters:
disabledThumbnail - new cached element thumbnail icon for disabled state