Package com.sshtools.common.ui
Class SessionProvider
- java.lang.Object
-
- com.sshtools.common.ui.SessionProvider
-
public class SessionProvider extends java.lang.ObjectInstances of this class are created by the
SessionProviderFactoryfor each installed session provider. Instances of this class can be supplied to theSessionProviderFrameto create windows contains the session providers service- Version:
- $Id: SessionProvider.java,v 1.12 2003/09/22 15:57:57 martianx Exp $
- Author:
- Lee David Painter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares this session provider against another object.java.lang.StringgetDescription()Get the description of the provider e.g.java.lang.StringgetId()Get the id of the provider e.g.ResourceIcongetLargeIcon()Get the large icon of the provider.chargetMnemonic()Get the mnemonic character for key accessjava.lang.StringgetName()Get the name of the provider e.g.java.lang.ClassgetOptionsClass()Get the options class implementationjava.lang.Class[]getPropertyPages()Get an array of class instances for the providers property pages.java.lang.ClassgetProviderClass()Get the class instance for the session providers implementation.ResourceIcongetSmallIcon()Get the small icon of the provider.intgetWeight()Get the weight of the provider.java.lang.StringtoString()Returns the name of the provider.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the provider e.g. 'Terminal Session'.- Returns:
-
getProviderClass
public java.lang.Class getProviderClass()
Get the class instance for the session providers implementation.- Returns:
-
getPropertyPages
public java.lang.Class[] getPropertyPages()
Get an array of class instances for the providers property pages.- Returns:
-
getDescription
public java.lang.String getDescription()
Get the description of the provider e.g. 'Opens a terminal session'- Returns:
-
getMnemonic
public char getMnemonic()
Get the mnemonic character for key access- Returns:
-
getWeight
public int getWeight()
Get the weight of the provider.- Returns:
-
getId
public java.lang.String getId()
Get the id of the provider e.g. 'sshterm'.- Returns:
-
getSmallIcon
public ResourceIcon getSmallIcon()
Get the small icon of the provider.- Returns:
-
getLargeIcon
public ResourceIcon getLargeIcon()
Get the large icon of the provider.- Returns:
-
getOptionsClass
public java.lang.Class getOptionsClass()
Get the options class implementation- Returns:
-
equals
public boolean equals(java.lang.Object obj)
Compares this session provider against another object. This method will only return true if the object provided is an instance ofSessionProviderand that the provider id and implementation class are equal.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj-- Returns:
-
toString
public java.lang.String toString()
Returns the name of the provider.- Overrides:
toStringin classjava.lang.Object- Returns:
-
-