rle.simple.ui
Class TypeItemFilter

java.lang.Object
  extended by rle.simple.ui.TypeItemFilter
All Implemented Interfaces:
ItemFilter

public class TypeItemFilter
extends java.lang.Object
implements ItemFilter

Filter for Items, used to restrict available choices based on the "type" of the items. Filtering is performed based on a list of acceptable "types", which are Strings denoting partial item paths, eg equipment/weapon. Items whose path id contains one of the acceptable partial paths are deemed acceptable, other items are not.


Constructor Summary
TypeItemFilter(java.util.List<java.lang.String> types)
           
 
Method Summary
 boolean accept(Item i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeItemFilter

public TypeItemFilter(java.util.List<java.lang.String> types)
Method Detail

accept

public boolean accept(Item i)
Specified by:
accept in interface ItemFilter