org.brains2b.coffee.plugin
Class MimeHandler

java.lang.Object
  extended by org.brains2b.coffee.plugin.MimeHandler
All Implemented Interfaces:
TicketHandler

public class MimeHandler
extends java.lang.Object
implements TicketHandler

TicketHandler for processing events directed at a plugin by the CoffeeEvent.USE

Handler will detect the plugin to handle this specific request on the basis of the content of the CoffeeEvent.getArgument()

Version:
$Revision: 1.4 $ $Date: 2010/12/30 04:43:06 $
Author:
dennis@brains2b.nl

Constructor Summary
MimeHandler(TargetContainer manager)
          Constructor
 
Method Summary
 void addProgressMonitor(ProgressMonitor m)
           
 void close()
           
 int[] getHandledEvents()
           
 NNTPMessage handleEvent(CoffeeEvent event)
           
 boolean isAvailable()
           
 void open()
           
 void registerPlugin(CoffeeExchangeControl control)
          register a new plugin with a no-visual components
 void registerPlugin(CoffeeExchangeView view)
          register a new plugin with a visual component
 void removeProgressMonitor(ProgressMonitor m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeHandler

public MimeHandler(TargetContainer manager)
Constructor

Parameters:
manager - CfFrame, the place where possible plugins of type CoffeeExchangeView will be shown
Method Detail

addProgressMonitor

public void addProgressMonitor(ProgressMonitor m)
Specified by:
addProgressMonitor in interface TicketHandler

close

public void close()
           throws CoffeeSpill
Specified by:
close in interface TicketHandler
Throws:
CoffeeSpill

getHandledEvents

public int[] getHandledEvents()
Specified by:
getHandledEvents in interface TicketHandler

handleEvent

public NNTPMessage handleEvent(CoffeeEvent event)
                        throws CoffeeSpill
Specified by:
handleEvent in interface TicketHandler
Throws:
CoffeeSpill

isAvailable

public boolean isAvailable()
Specified by:
isAvailable in interface TicketHandler

open

public void open()
          throws CoffeeSpill
Specified by:
open in interface TicketHandler
Throws:
CoffeeSpill

removeProgressMonitor

public void removeProgressMonitor(ProgressMonitor m)
Specified by:
removeProgressMonitor in interface TicketHandler

registerPlugin

public void registerPlugin(CoffeeExchangeView view)
register a new plugin with a visual component

Parameters:
view - CoffeeExchangeView

registerPlugin

public void registerPlugin(CoffeeExchangeControl control)
register a new plugin with a no-visual components

Parameters:
control - CoffeeExchangeControl