Package org.openhab.core.items
Interface ActiveItem
- All Superinterfaces:
Identifiable<String>,Item
- All Known Implementing Classes:
CallItem,ColorItem,ContactItem,DateTimeItem,DimmerItem,GenericItem,GroupItem,ImageItem,LocationItem,NumberItem,PlayerItem,RollershutterItem,StringItem,SwitchItem
Deprecated.
This class is not meant as a public API - it should only be used internally from within the framework
An
ActiveItem can be modified. It provides methods for adding and
removing tags, adding and removing group names and setting a label and a
category.- Author:
- Dennis Nobel - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupName(String groupItemName) Deprecated.Assigns the according item to a group.voidaddGroupNames(String... groupItemNames) Deprecated.Assigns the according item to the given groups.voidaddGroupNames(List<String> groupItemNames) Deprecated.Assigns the according item to the given groups.voidDeprecated.Adds a tag to the item.voidDeprecated.Adds tags to the item.voidaddTags(Collection<String> tags) Deprecated.Adds tags to the item.voidDeprecated.Clears all tags of this item.voidremoveGroupName(String groupItemName) Deprecated.Removes the according item from a group.voidDeprecated.Removes a tag from the item.voidsetCategory(@Nullable String category) Deprecated.Sets the category of the item (can be null)voidDeprecated.Sets the label of an itemMethods inherited from interface org.openhab.core.common.registry.Identifiable
getUIDMethods inherited from interface org.openhab.core.items.Item
getAcceptedCommandTypes, getAcceptedDataTypes, getCategory, getCommandDescription, getCommandDescription, getGroupNames, getLabel, getLastState, getLastStateChange, getLastStateUpdate, getName, getState, getStateAs, getStateDescription, getStateDescription, getTags, getType, hasTag
-
Method Details
-
setLabel
Deprecated.Sets the label of an item- Parameters:
label- label (can be null)
-
setCategory
Deprecated.Sets the category of the item (can be null)- Parameters:
category- category
-
addTag
Deprecated.Adds a tag to the item.- Parameters:
tag- a tag that is to be added to item's tags.
-
addTags
Deprecated.Adds tags to the item.- Parameters:
tags- tags that are to be added to item's tags.
-
addTags
Deprecated.Adds tags to the item.- Parameters:
tags- tags that are to be added to item's tags.
-
removeTag
Deprecated.Removes a tag from the item.- Parameters:
tag- a tag that is to be removed from item's tags.
-
removeAllTags
void removeAllTags()Deprecated.Clears all tags of this item. -
removeGroupName
Deprecated.Removes the according item from a group.- Parameters:
groupItemName- name of the group (must not be null)
-
addGroupName
Deprecated.Assigns the according item to a group.- Parameters:
groupItemName- name of the group (must not be null)
-
addGroupNames
Deprecated.Assigns the according item to the given groups.- Parameters:
groupItemNames- names of the groups (must not be null)
-
addGroupNames
Deprecated.Assigns the according item to the given groups.- Parameters:
groupItemNames- names of the groups (must not be null)
-