FileDocCategorySizeDatePackage
Show.javaAPI DocAzureus 3.0.3.41907Tue Sep 06 06:44:54 BST 2005org.gudy.azureus2.ui.console.multiuser.commands

Show

public class Show extends org.gudy.azureus2.ui.console.commands.Show
subclass of Show command that is useful for multi-user
author
pauld

Fields Summary
Constructors Summary
public Show()

		super();
	
Methods Summary
protected java.lang.StringexpandVariable(char variable, org.gudy.azureus2.core3.download.DownloadManager dm)
adds an additional variable 'o' for torrent owner

		switch( variable )
		{
			case 'o":
				String user = dm.getDownloadState().getAttribute(DownloadManagerState.AT_USER);
				if( user == null )
					user = "admin";
				return user;
			default:
				return super.expandVariable(variable, dm);
		}
	
protected java.lang.StringgetDefaultSummaryFormat()
display a similar torrent summary to the superclass but also display the username

		return "[%o] " + super.getDefaultSummaryFormat();