|
org.netbeans.api.debugger.jpda/2 2.4.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.debugger.jpda.VariablesFilter
public abstract class VariablesFilter
This filter allows to change nodes in Locals View and Watches View for some concrete variable types. For example itallows to define "logical" view for java.util.Hashtable. Instances of this filter should be registerred in: " "META-INF\debugger\netbeans-JPDADebuggerEngine\org.netbeans.spi.debugger.jpda.VariablesFilter" file.
Constructor Summary | |
---|---|
VariablesFilter()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariablesFilter()
Method Detail |
---|
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 fields
NoInformationException
- if the set of children can not be
resolved
ComputingException
- if the children resolving process
is time consuming, and will be performed off-line
UnknownTypeException
- 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 fields
NoInformationException
- if the set of children can not be
resolved
ComputingException
- if the children resolving process
is time consuming, and will be performed off-line
UnknownTypeException
- 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 model
UnknownTypeException
- 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 later
UnknownTypeException
- 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 later
UnknownTypeException
- 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 later
UnknownTypeException
- 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 later
UnknownTypeException
- 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 position
UnknownTypeException
- if there is no TableModel defined for given
parameter type
|
org.netbeans.api.debugger.jpda/2 2.4.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |