org.netbeans.spi.debugger.jpda
public abstract class VariablesFilter extends Object
ExtendedNodeModelFilter
for extra functionality.Modifier and Type | Class and Description |
---|---|
static interface |
VariablesFilter.Registration
Declarative registration of a VariablesFilter implementation.
|
Constructor and Description |
---|
VariablesFilter() |
Modifier and Type | Method and Description |
---|---|
abstract Action[] |
getActions(NodeActionsProvider original,
Variable variable)
Returns set of actions for given variable.
|
abstract Object[] |
getChildren(TreeModel original,
Variable variable,
int from,
int to)
Returns filtered children for given variable on given indexes.
|
abstract int |
getChildrenCount(TreeModel original,
Variable variable)
Returns number of filtered children for given variable.
|
abstract String |
getDisplayName(NodeModel original,
Variable variable)
Returns filterred display name for given variable.
|
abstract String |
getIconBase(NodeModel original,
Variable variable)
Returns filterred icon for given variable.
|
abstract String |
getShortDescription(NodeModel original,
Variable variable)
Returns filterred tooltip for given variable.
|
abstract String[] |
getSupportedAncestors()
Returns set of fully quilified class names (like java.lang.String) this
filter is registerred to.
|
abstract String[] |
getSupportedTypes()
Returns set of fully quilified class names (like java.lang.String) this
filter is registerred to.
|
abstract Object |
getValueAt(TableModel original,
Variable variable,
String columnID)
Returns filterred value to be displayed in column
columnID
and for variable variable . |
abstract boolean |
isLeaf(TreeModel original,
Variable variable)
Returns true if variable is leaf.
|
abstract boolean |
isReadOnly(TableModel original,
Variable variable,
String columnID)
Filters original isReadOnly value from given table model.
|
abstract void |
performDefaultAction(NodeActionsProvider original,
Variable variable)
Performs default action for given variable.
|
abstract void |
setValueAt(TableModel original,
Variable variable,
String columnID,
Object value)
Changes a value displayed in column
columnID
for variable variable . |
public abstract String[] getSupportedTypes()
public abstract String[] getSupportedAncestors()
public abstract Object[] getChildren(TreeModel original, Variable variable, int from, int to) throws UnknownTypeException
original
- the original tree modelvariable
- a variable of returned fieldsNoInformationException
- if the set of children can not be
resolvedComputingException
- if the children resolving process
is time consuming, and will be performed off-lineUnknownTypeException
- if this TreeModelFilter implementation is not
able to resolve dchildren for given node typepublic abstract int getChildrenCount(TreeModel original, Variable variable) throws UnknownTypeException
original
- the original tree modelvariable
- a variable of returned fieldsNoInformationException
- if the set of children can not be
resolvedComputingException
- if the children resolving process
is time consuming, and will be performed off-lineUnknownTypeException
- if this TreeModelFilter implementation is not
able to resolve dchildren for given node typepublic abstract boolean isLeaf(TreeModel original, Variable variable) throws UnknownTypeException
original
- the original tree modelUnknownTypeException
- if this TreeModel implementation is not
able to resolve dchildren for given node typepublic abstract String getDisplayName(NodeModel original, Variable variable) throws UnknownTypeException
ComputingException
- if the display name resolving process
is time consuming, and the value will be updated laterUnknownTypeException
- if this NodeModel implementation is not
able to resolve display name for given node typepublic abstract String getIconBase(NodeModel original, Variable variable) throws UnknownTypeException
ComputingException
- if the icon resolving process
is time consuming, and the value will be updated laterUnknownTypeException
- if this NodeModel implementation is not
able to resolve icon for given node typepublic abstract String getShortDescription(NodeModel original, Variable variable) throws UnknownTypeException
ComputingException
- if the tooltip resolving process
is time consuming, and the value will be updated laterUnknownTypeException
- if this NodeModel implementation is not
able to resolve tooltip for given node typepublic abstract Action[] getActions(NodeActionsProvider original, Variable variable) throws UnknownTypeException
UnknownTypeException
- if this NodeActionsProvider implementation
is not able to resolve actions for given node typepublic abstract void performDefaultAction(NodeActionsProvider original, Variable variable) throws UnknownTypeException
UnknownTypeException
- if this NodeActionsProvider implementation
is not able to resolve actions for given node typepublic abstract Object getValueAt(TableModel original, Variable variable, String columnID) throws UnknownTypeException
columnID
and for variable variable
. Column ID is defined in by
ColumnModel.getID()
, and variables are defined by values returned from
TreeModel.getChildren(java.lang.Object, int, int)
.original
- the original table modelvariable
- a variable returned from TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
ComputingException
- if the value is not known yet and will
be computed laterUnknownTypeException
- if there is no TableModel defined for given
parameter typepublic abstract boolean isReadOnly(TableModel original, Variable variable, String columnID) throws UnknownTypeException
original
- the original table modelvariable
- a variable returned from TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
UnknownTypeException
- if there is no TableModel defined for given
parameter typepublic abstract void setValueAt(TableModel original, Variable variable, String columnID, Object value) throws UnknownTypeException
columnID
for variable variable
. Column ID is defined in by
ColumnModel.getID()
, and variable are defined by values returned from
TreeModel.getChildren(java.lang.Object, int, int)
.original
- the original table modelvariable
- a variable returned from TreeModel.getChildren(java.lang.Object, int, int)
for this rowcolumnID
- a id of column defined by ColumnModel.getID()
value
- a new value of variable on given positionUnknownTypeException
- if there is no TableModel defined for given
parameter typeBuilt on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.