<s> from pyjamas . ui . Composite import Composite <EOL> class Sink ( Composite ) : <EOL> def __init__ ( self ) : <EOL> Composite . __init__ ( self ) <EOL> def onHide ( self ) : <EOL> pass <EOL> def onShow ( self ) : <EOL> pass <EOL> def baseURL ( self ) : <EOL> return "<STR_LIT>" <EOL> class SinkInfo : <EOL> def __init__ ( self , name , desc , object_type ) : <EOL> self . name = name <EOL> self . description = desc <EOL> self . object_type = object_type <EOL> self . instance = None <EOL> def createInstance ( self ) : <EOL> obj = self . object_type ( ) <EOL> obj . name = self . name <EOL> return obj <EOL> def getDescription ( self ) : <EOL> return self . description <EOL> def getInstance ( self ) : <EOL> if self . instance == None : <EOL> self . instance = self . createInstance ( ) <EOL> return self . instance <EOL> def getName ( self ) : <EOL> return self . name </s>
