Package snap.viewx
Class DevPaneViews.ViewTreeResolver
- Enclosing class:
- DevPaneViews
A resolver for Views.
-
Nested Class Summary
Nested classes/interfaces inherited from class snap.view.TreeResolver
TreeResolver.Adapter<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionView[]
getChildren
(View aParent) Returns the children.getGraphic
(View anItem) Return the image to be used for given item.Returns the parent of given item.Returns the text to be used for given item.boolean
Whether given object is a parent (has children).Methods inherited from class snap.view.TreeResolver
getBranchImage, getGraphicAfter, getImage, getImageAfter, getText
-
Constructor Details
-
ViewTreeResolver
public ViewTreeResolver()
-
-
Method Details
-
getParent
Returns the parent of given item.- Specified by:
getParent
in classTreeResolver<View>
-
isParent
Whether given object is a parent (has children).- Specified by:
isParent
in classTreeResolver<View>
-
getChildren
Returns the children.- Specified by:
getChildren
in classTreeResolver<View>
-
getText
Returns the text to be used for given item.- Overrides:
getText
in classTreeResolver<View>
-
getGraphic
Return the image to be used for given item.- Overrides:
getGraphic
in classTreeResolver<View>
-