org.netbeans.spi.palette
Class PaletteFilter
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaletteFilter
public PaletteFilter()
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.