many Controls has a TextProperty
but i must check (instanceof) and cast all Controls separatly
if (node instanceof Labeled)
{
Language.bind(((Labeled) node).textProperty());
}
if (node instanceof Tab)
{
Language.bind(((Tab) node).textProperty());
}
if (node instanceof TableColumn)
{
Language.bind(((TableColumn) node).textProperty());
}
an Interface ITextProperty was very nice
so i has only check and cast:
if (node instanceof ITextProperty)
{
Language.bind(((ITextProperty) node).textProperty());
}
same as graphic / content / {min / pref / max}{width/height}Property
but i must check (instanceof) and cast all Controls separatly
if (node instanceof Labeled)
{
Language.bind(((Labeled) node).textProperty());
}
if (node instanceof Tab)
{
Language.bind(((Tab) node).textProperty());
}
if (node instanceof TableColumn)
{
Language.bind(((TableColumn) node).textProperty());
}
an Interface ITextProperty was very nice
so i has only check and cast:
if (node instanceof ITextProperty)
{
Language.bind(((ITextProperty) node).textProperty());
}
same as graphic / content / {min / pref / max}{width/height}Property