org.netbeans.spi.palette/1 1.6.1

org.netbeans.spi.palette
Class PaletteFilter

java.lang.Object
  extended by org.netbeans.spi.palette.PaletteFilter

public abstract class PaletteFilter
extends Object

A palette filter than can prevent some categories and/or items from being displayed in palette's window.


Constructor Summary
PaletteFilter()
           
 
Method Summary
abstract  boolean isValidCategory(Lookup lkp)
           
abstract  boolean isValidItem(Lookup lkp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaletteFilter

public PaletteFilter()
Method Detail

isValidCategory

public abstract boolean isValidCategory(Lookup lkp)
Parameters:
lkp - Lookup representing a palette category.
Returns:
True if the category should be displayed in palette's window, false otherwise.

isValidItem

public abstract boolean isValidItem(Lookup lkp)
Parameters:
lkp - Lookup representing a palette item.
Returns:
True if the item should be displayed in palette's window, false otherwise.

org.netbeans.spi.palette/1 1.6.1

Built on July 11 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.