public abstract class VariablesFilterAdapter extends VariablesFilter
VariablesFilter returns original
values (name, icon, fields, ...) for given variable.VariablesFilter.Registration| Constructor and Description |
|---|
VariablesFilterAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Action[] |
getActions(NodeActionsProvider original,
Variable variable)
Returns set of actions for given variable.
|
Object[] |
getChildren(TreeModel original,
Variable variable,
int from,
int to)
Returns filtered children for given variable on given indexes.
|
int |
getChildrenCount(TreeModel original,
Variable variable)
Returns number of filtered children for given variable.
|
String |
getDisplayName(NodeModel original,
Variable variable)
Returns filterred display name for given variable.
|
String |
getIconBase(NodeModel original,
Variable variable)
Returns filterred icon for given variable.
|
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.
|
Object |
getValueAt(TableModel original,
Variable variable,
String columnID)
Returns filterred value to be displayed in column
columnID
and for variable variable. |
boolean |
isLeaf(TreeModel original,
Variable variable)
Returns true if variable is leaf.
|
boolean |
isReadOnly(TableModel original,
Variable variable,
String columnID)
Filters original isReadOnly value from given table model.
|
void |
performDefaultAction(NodeActionsProvider original,
Variable variable)
Performs default action for given variable.
|
void |
setValueAt(TableModel original,
Variable variable,
String columnID,
Object value)
Changes a value displayed in column
columnID
for variable variable. |
public abstract String[] getSupportedAncestors()
getSupportedAncestors in class VariablesFilterpublic abstract String[] getSupportedTypes()
getSupportedTypes in class VariablesFilterpublic Object[] getChildren(TreeModel original, Variable variable, int from, int to) throws UnknownTypeException
getChildren in class VariablesFilteroriginal - 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 int getChildrenCount(TreeModel original, Variable variable) throws UnknownTypeException
getChildrenCount in class VariablesFilteroriginal - 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 boolean isLeaf(TreeModel original, Variable variable) throws UnknownTypeException
isLeaf in class VariablesFilteroriginal - the original tree modelUnknownTypeException - if this TreeModel implementation is not
able to resolve dchildren for given node typepublic String getDisplayName(NodeModel original, Variable variable) throws UnknownTypeException
getDisplayName in class VariablesFilterComputingException - 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 String getIconBase(NodeModel original, Variable variable) throws UnknownTypeException
getIconBase in class VariablesFilterComputingException - 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 String getShortDescription(NodeModel original, Variable variable) throws UnknownTypeException
getShortDescription in class VariablesFilterComputingException - 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 Action[] getActions(NodeActionsProvider original, Variable variable) throws UnknownTypeException
getActions in class VariablesFilterUnknownTypeException - if this NodeActionsProvider implementation
is not able to resolve actions for given node typepublic void performDefaultAction(NodeActionsProvider original, Variable variable) throws UnknownTypeException
performDefaultAction in class VariablesFilterUnknownTypeException - if this NodeActionsProvider implementation
is not able to resolve actions for given node typepublic 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).getValueAt in class VariablesFilteroriginal - 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 boolean isReadOnly(TableModel original, Variable variable, String columnID) throws UnknownTypeException
isReadOnly in class VariablesFilteroriginal - 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 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).setValueAt in class VariablesFilteroriginal - 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 May 16 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.