net.sourceforge.jsh3modtool.gui.imagetable
Class ImageCell

java.lang.Object
  extended by net.sourceforge.jsh3modtool.gui.imagetable.BaseCell
      extended by net.sourceforge.jsh3modtool.gui.imagetable.ImageCell

public class ImageCell
extends BaseCell

A Table cell for an Image

Author:
redsolo

Constructor Summary
ImageCell(ImageModel image)
          Creates a new instance of ImageCell
 
Method Summary
 boolean equals(java.lang.Object other)
          
 java.lang.String getErrorMessage()
          Returns the error message, if there is one
 ImageModel getImageModel()
           
 java.lang.String getName()
           
 java.lang.String getTooltip()
          Returns the tooltip for this cell, the tooltip contains some IPTC fields and is cached for performance
 int hashCode()
          
 boolean hasTriedToLoadImage()
          Returns if the ThumbnailLoader has tried to load the image, if it has and there still is no image, then an error has occurred
 boolean isSelected()
          Returns if this image cell is selected or not
 void resetTooltip()
          Resets the tooltip, next time the GUI wants the tooltip then it is generated on the fly
 void setErrorMessage(java.lang.String msg)
          Sets the error message
 void setHasTriedToLoadImage(boolean triedToLoad)
          Sets if the ThumbnailLoader has tried to load the image
 void setSelected(boolean selected)
          Sets if the iamge cell is selected or not.
 void toggleSelected()
          Toggle the selected status.
 java.lang.String toString()
          Returns the name of the image.
 
Methods inherited from class net.sourceforge.jsh3modtool.gui.imagetable.BaseCell
getCachedName, getCachedNameMaxWidth, recacheName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageCell

public ImageCell(ImageModel image)
Creates a new instance of ImageCell

Parameters:
imageProps - the image
Method Detail

getName

public java.lang.String getName()

getImageModel

public ImageModel getImageModel()

hasTriedToLoadImage

public boolean hasTriedToLoadImage()
Returns if the ThumbnailLoader has tried to load the image, if it has and there still is no image, then an error has occurred

Returns:
true if it has tried to load the image

setHasTriedToLoadImage

public void setHasTriedToLoadImage(boolean triedToLoad)
Sets if the ThumbnailLoader has tried to load the image

Parameters:
triedToLoad - if the image has been tried or not

getErrorMessage

public java.lang.String getErrorMessage()
Returns the error message, if there is one

Returns:
a String containing the error; null otherwise

setErrorMessage

public void setErrorMessage(java.lang.String msg)
Sets the error message

Parameters:
msg - the error message

isSelected

public boolean isSelected()
Returns if this image cell is selected or not

Returns:
true if the cell is selected; false otherwise

setSelected

public void setSelected(boolean selected)
Sets if the iamge cell is selected or not.

Parameters:
selected - if the image is selected.

toggleSelected

public void toggleSelected()
Toggle the selected status.


resetTooltip

public void resetTooltip()
Resets the tooltip, next time the GUI wants the tooltip then it is generated on the fly


getTooltip

public java.lang.String getTooltip()
Returns the tooltip for this cell, the tooltip contains some IPTC fields and is cached for performance

Returns:
a String, never null

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns the name of the image.

Overrides:
toString in class java.lang.Object
Returns:
the name of the image.


Copyright © 2005 sourceforge.net. All Rights Reserved.