public interface IConfigurationTree
Modifier and Type | Method and Description |
---|---|
TreeItem |
addItem(OldRenderConfiguration renderConfig)
Adds a new
TreeItem displaying the given
RenderConfiguration and returns it. |
TreeItem |
getItemByRenderConfiguration(OldRenderConfiguration renderConfig)
Gets the
TreeItem displaying the given RenderConfiguration . |
TreeItem |
getSelectedItem()
Gets the selected item.
|
boolean |
isTemplateTree() |
void |
reload()
Reloads the full tree content.
|
void |
removeItem(TreeItem item)
Removes a specific
TreeItem . |
void |
selectItem(OldRenderConfiguration renderConfig)
Selects the
TreeItem displaying the given
RenderConfiguration . |
void |
setItemColor(TreeItem item,
boolean isValid)
Sets the
TreeItem forground text color.If isValid is true black will
be used, otherwise red. |
void |
setPopupMenuConfigEnabled(boolean enabled)
Enables or disables menu entries depending on the selection state.
|
TreeItem getSelectedItem()
TreeItem
or NULL
if no item is selected.void selectItem(OldRenderConfiguration renderConfig)
TreeItem
displaying the given
RenderConfiguration
.renderConfig
- The RenderConfiguration
to be looked for.TreeItem addItem(OldRenderConfiguration renderConfig)
TreeItem
displaying the given
RenderConfiguration
and returns it.renderConfig
- The RenderConfiguration
to be displayed.TreeItem
.void removeItem(TreeItem item)
TreeItem
.item
- The TreeItem
to be removed.boolean isTemplateTree()
true
if the tree is used for managing render configuration templates,
false
if it manages regular render configurations.void setItemColor(TreeItem item, boolean isValid)
TreeItem
forground text color.isValid
is true
black
will
be used, otherwise red.item
- The TreeItem
to be colored.isValid
- true
to use black, false
to use red.void reload()
void setPopupMenuConfigEnabled(boolean enabled)
enabled
- true
to enable the "Delete" and "Duplicate" menu items.TreeItem getItemByRenderConfiguration(OldRenderConfiguration renderConfig)
TreeItem
displaying the given RenderConfiguration
.renderConfig
- The RenderConfiguration
to be searched for.TreeItem
displaying the given RenderConfiguration
or null
if none can be found.