FileDocCategorySizeDatePackage
PluginPeerItemFactory.javaAPI DocAzureus 3.0.3.42329Sun May 16 21:33:18 BST 2004org.gudy.azureus2.plugins.ui.tables.peers

PluginPeerItemFactory

public interface PluginPeerItemFactory
This interface represents the factory responsible of creating PluginPeerItem.
It must also define some methods giving general information about the item.
author
Olivier
deprecated
Use {@link org.gudy.azureus2.plugins.ui.tables}

Fields Summary
public static final String
TYPE_STRING
The String type, used for ordering.
public static final String
TYPE_INT
The int type, used for ordering.
Constructors Summary
Methods Summary
public intgetDefaultSize()
The 'column' default size

return
the size in pixels

public PluginPeerItemgetInstance(PeerTableItem item)
This method is called whenever a new line is created.

param
item the PeerTableItem that is being created
return
the PluginPeerItem that will have to deal with it

public java.lang.StringgetName()
The logical name of the column.
Note that spaces in the name should be avoid.
In order to the plugin to display correctly the column name, a key in the Plugin language file will need to contain PeersView.<getName() result>=The column name.

return
the column name (identification)

public java.lang.StringgetType()
The type of the contained data.
Current supported types are int / long (TYPE_INTEGER) and String TYPE_STRING.

return
TYPE_STRING or TYPE_INT