|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.src.nodes.SourceElementFilter
Interface for filtering and ordering the items in the visual presentation of a source element. Used to control the children of a source element node.
Note that this does not fire events for changes in its properties; it is expected that a new filter will instead be created and applied to the source children.
SourceElement
,
SourceChildren
Field Summary | |
static int |
ALL
Does not specify any top-level element. |
static int |
ALL_MODIFIERS
Does not specify any member access. |
static int |
CLASS
Specifies a child representing a (top-level) class. |
static int[] |
DEFAULT_ORDER
Default order of the top-level element types in the hierarchy. |
static int |
IMPORT
Specifies a child representing a package or class import. |
static int |
INTERFACE
Specifies a child representing a (top-level) interface. |
static int |
PACKAGE
Specifies package-private member access. |
static int |
PRIVATE
Specifies private member access. |
static int |
PROTECTED
Specifies protected member access. |
static int |
PUBLIC
Specifies public member access. |
Constructor Summary | |
SourceElementFilter()
|
Method Summary | |
int |
getModifiers()
Get permitted access modes. |
int[] |
getOrder()
Get the current order for elements. |
boolean |
isAllClasses()
Test whether all classes in the source should be recursively shown. |
void |
setAllClasses(boolean allClasses)
Set whether all classes should be shown. |
void |
setModifiers(int modifiers)
Set permitted access modes. |
void |
setOrder(int[] order)
Set a new order for elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int IMPORT
public static final int CLASS
public static final int INTERFACE
public static final int ALL
public static final int PACKAGE
public static final int PUBLIC
public static final int PRIVATE
public static final int PROTECTED
public static final int ALL_MODIFIERS
public static final int[] DEFAULT_ORDER
Constructor Detail |
public SourceElementFilter()
Method Detail |
public boolean isAllClasses()
true
to include inner classes/interfaces, false
to only
include top-level classes/interfacespublic void setAllClasses(boolean allClasses)
allClasses
- true
if soisAllClasses()
public int[] getOrder()
CLASS
). If null
, the DEFAULT_ORDER
,
or no particular order at all, may be used.public void setOrder(int[] order)
order
- the new order, or null
for the defaultgetOrder()
public int getModifiers()
PROTECTED
public void setModifiers(int modifiers)
modifiers
- the new modifier maskgetModifiers()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |