edu.berkeley.guir.papier_mache.assoc
Class UserAssociationFactory

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.assoc.DefaultAssociationFactory
      extended by edu.berkeley.guir.papier_mache.assoc.UserAssociationFactory
All Implemented Interfaces:
AssociationFactory, edu.berkeley.guir.lib.util.ToShortStringable

public class UserAssociationFactory
extends DefaultAssociationFactory

Author:
Jack Li ( jack(AT)eecs{DOT}berkeley{DOT}edu )

Nested Class Summary
static class UserAssociationFactory.AssociationModel
           
static class UserAssociationFactory.ClassifierModel
           
 
Constructor Summary
UserAssociationFactory()
           
 
Method Summary
 AssociationElt createAssociationEltForPhob(Phob phob)
          Create an AssociationElt based on the given phob
static java.lang.Class popupAssociationChooser(Phob phob)
          Brings out a dialog that lets the user choose which of the registered AssociationElts
 
Methods inherited from class edu.berkeley.guir.papier_mache.assoc.DefaultAssociationFactory
setParameter, toShortString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAssociationFactory

public UserAssociationFactory()
Method Detail

createAssociationEltForPhob

public AssociationElt createAssociationEltForPhob(Phob phob)
Description copied from interface: AssociationFactory
Create an AssociationElt based on the given phob

Specified by:
createAssociationEltForPhob in interface AssociationFactory
Specified by:
createAssociationEltForPhob in class DefaultAssociationFactory
Parameters:
phob - used to decide what type of AssociationElt to create
Returns:
the created AssociatoinElt

popupAssociationChooser

public static java.lang.Class popupAssociationChooser(Phob phob)
Brings out a dialog that lets the user choose which of the registered AssociationElts

Returns:
the AssociationElt the user has selected