JComponentPack 1.5.0

com.zfqjava.swing.cell
Class FileProvider

java.lang.Object
  extended by com.zfqjava.swing.cell.FileProvider
All Implemented Interfaces:
CellProvider, IconProvider, TextProvider

public class FileProvider
extends Object
implements IconProvider, TextProvider

FileProvider provides a file icon provider for the renderer.


Method Summary
 Icon getIcon(Object value)
          Returns the icon for the specified value.
static FileProvider getInstance()
           
 String getText(Object value)
          Returns the text for the specified value.
 void setIconMode(IconMode mode)
          Sets the icon mode for this provider.
 void setTextMode(TextMode mode)
          Sets the Text mode for this provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FileProvider getInstance()

setIconMode

public void setIconMode(IconMode mode)
Description copied from interface: IconProvider
Sets the icon mode for this provider.

Specified by:
setIconMode in interface IconProvider
Parameters:
mode - the icon mode

getIcon

public Icon getIcon(Object value)
Description copied from interface: IconProvider
Returns the icon for the specified value.

Specified by:
getIcon in interface IconProvider
Parameters:
value - the object for current icon
Returns:
the icon for the specified value

setTextMode

public void setTextMode(TextMode mode)
Description copied from interface: TextProvider
Sets the Text mode for this provider.

Specified by:
setTextMode in interface TextProvider
Parameters:
mode - the Text mode

getText

public String getText(Object value)
Description copied from interface: TextProvider
Returns the text for the specified value.

Specified by:
getText in interface TextProvider
Parameters:
value - the object for current text
Returns:
the text for the specified value

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.