org.gudy.azureus2.plugins.ui.tables.peers
Interface PluginPeerItemFactory


Deprecated. Use org.gudy.azureus2.plugins.ui.tables

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

Field Summary
static java.lang.String TYPE_INT
          Deprecated. The int type, used for ordering.
static java.lang.String TYPE_STRING
          Deprecated. The String type, used for ordering.
 
Method Summary
 int getDefaultSize()
          Deprecated. The 'column' default size
 PluginPeerItem getInstance(PeerTableItem item)
          Deprecated. This method is called whenever a new line is created.
 java.lang.String getName()
          Deprecated. The logical name of the column.
 java.lang.String getType()
          Deprecated. The type of the contained data.
 

Field Detail

TYPE_STRING

static final java.lang.String TYPE_STRING
Deprecated. 
The String type, used for ordering.

See Also:
Constant Field Values

TYPE_INT

static final java.lang.String TYPE_INT
Deprecated. 
The int type, used for ordering.

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Deprecated. 
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.

Returns:
the column name (identification)

getType

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

Returns:
TYPE_STRING or TYPE_INT

getDefaultSize

int getDefaultSize()
Deprecated. 
The 'column' default size

Returns:
the size in pixels

getInstance

PluginPeerItem getInstance(PeerTableItem item)
Deprecated. 
This method is called whenever a new line is created.

Parameters:
item - the PeerTableItem that is being created
Returns:
the PluginPeerItem that will have to deal with it