FileDocCategorySizeDatePackage
PluginMyTorrentsItemFactory.javaAPI DocAzureus 3.0.3.43612Sun May 16 21:33:18 BST 2004org.gudy.azureus2.plugins.ui.tables.mytorrents

PluginMyTorrentsItemFactory

public interface PluginMyTorrentsItemFactory
This interface represents the factory responsible of creating PluginMyTorrentsItem.
It must also define some methods giving general information about the item.
author
TuxPaper
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.
public static final String
ORIENT_RIGHT
Right orient the colmn items text
public static final String
ORIENT_LEFT
Left orient the colmn items text
public static final int
POSITION_INVISIBLE
For getDefaultPosition(). Make column invisible initially.
public static final int
POSITION_LAST
For getDefaultPosition(). Make column the last column initially.
public static final int
TABLE_COMPLETE
Visible for Completed Torrents table
public static final int
TABLE_INCOMPLETE
Visible for Incompleted Torrents table
public static final int
TABLE_ALL
Visible for all My Torrent tables
Constructors Summary
Methods Summary
public intgetDefaultPosition()
Default location to put the column

return
Column Number (0 based), or -1 for initially invisible

public intgetDefaultSize()
The 'column' default size

return
the size in pixels

public PluginMyTorrentsItemgetInstance(MyTorrentsTableItem item)
This method is called whenever a new line is created.

param
item the MyTorrentsTableItem that is being created
return
the PluginMyTorrentsItem you created

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 MyTorrentsView.getName() result=The column name.

return
the column name (identification)

public java.lang.StringgetOrientation()
Orientation of the columns text

return
ORIENT_LEFT or ORIENT_RIGHT

public intgetTablesVisibleIn()
Which tables the column will be visible in

return
TABLE_COMPLETE, TABLE_INCOMPLETE or both

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