public class UserPropertiesModule extends Object implements TreeContentProvider, TreeIconProvider, TreeLabelProvider
Modifier and Type | Class and Description |
---|---|
protected class |
UserPropertiesModule.CollectionWrapper |
protected class |
UserPropertiesModule.EntryWrapper |
protected class |
UserPropertiesModule.MapWrapper |
protected static class |
UserPropertiesModule.Properties |
protected static class |
UserPropertiesModule.Property |
protected static class |
UserPropertiesModule.Wrapper |
Constructor and Description |
---|
UserPropertiesModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
formatProperty(StyledDocument doc,
UserPropertiesModule.Property property) |
protected void |
formatWrapper(StyledDocument doc,
UserPropertiesModule.Wrapper wrapper) |
EventList<? extends Object> |
getChildren(TreePath treePath)
Returns a
EventList containing all the contents (children) for the last tree path
component of given tree path. |
Icon |
getIcon(TreePath treePath) |
protected String |
getPropertiesNodeName() |
boolean |
hasChildren(TreePath treePath)
Determines whether the last tree path component can have children.
|
boolean |
isEnableCollectionHandling() |
void |
setEnableCollectionHandling(boolean enableCollectionHandling) |
void |
updateLabel(TreePath treePath,
StyledDocument doc) |
public Icon getIcon(TreePath treePath)
getIcon
in interface TreeIconProvider
public void updateLabel(TreePath treePath, StyledDocument doc) throws BadLocationException
updateLabel
in interface TreeLabelProvider
BadLocationException
protected String getPropertiesNodeName()
protected void formatProperty(StyledDocument doc, UserPropertiesModule.Property property) throws BadLocationException
BadLocationException
protected void formatWrapper(StyledDocument doc, UserPropertiesModule.Wrapper wrapper) throws BadLocationException
BadLocationException
public boolean hasChildren(TreePath treePath)
TreeContentProvider
true
is returned from a call to this method, it is still
allowed to return null
or an empty list from calls to
TreeContentProvider.getChildren(TreePath)
.hasChildren
in interface TreeContentProvider
treePath
- to analysetrue
if the last tree path component can have children, otherwise
false
.public EventList<? extends Object> getChildren(TreePath treePath)
TreeContentProvider
EventList
containing all the contents (children) for the last tree path
component of given tree path. If no children should be contributed (neither now, nor in the
future) this method should return null
.getChildren
in interface TreeContentProvider
treePath
- to supply children forEventList
of children or null
.public boolean isEnableCollectionHandling()
public void setEnableCollectionHandling(boolean enableCollectionHandling)
Copyright © 2024 levigo holding gmbh. All rights reserved.