Class TreeItemBinder
java.lang.Object
io.github.snoopy137.languagemanager.binding.TreeItemBinder
- All Implemented Interfaces:
ControlBinder
Binds the
valueProperty of TreeItem controls to language
keys.
This binder checks whether a given control is an instance of TreeItem
and binds its value (and the value of its children) to the language bundle
using the provided key and an index.
- Since:
- 1.1.0
- Author:
- alan
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TreeItemBinder
public TreeItemBinder()
-
-
Method Details
-
supports
Returnstrueif the control is aTreeItem.- Specified by:
supportsin interfaceControlBinder- Parameters:
control- the control to check- Returns:
trueif the control is a TreeItem, otherwisefalse
-
bind
Binds thevaluePropertyof theTreeItem(and its children) to the language key.- Specified by:
bindin interfaceControlBinder- Parameters:
control- the control to bindkey- the language key used to retrieve localized text from the resource bundle
-