Class DefaultJavaFXLabel
- java.lang.Object
-
- de.bmiag.tapir.javafx.element.AbstractJavaFXElement
-
- de.bmiag.tapir.javafx.element.impl.DefaultJavaFXLabel
-
- All Implemented Interfaces:
Label
,JavaFXElement
,Displayable
,TapirElement
@Unstable @Component("tapirLabel") @Scope("prototype") public class DefaultJavaFXLabel extends AbstractJavaFXElement implements Label
This is an experimental implementation of aLabel
for JavaFX-based applications.- Since:
- 2.0.0
- Author:
- Nils Christian Ehmke <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description DefaultJavaFXLabel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Returns the text of the labelboolean
isDisplayed()
Returns true, if the element is displayed.-
Methods inherited from class de.bmiag.tapir.javafx.element.AbstractJavaFXElement
getNode, setNode
-
-
-
-
Method Detail
-
getText
public java.lang.String getText()
Description copied from interface:Label
Returns the text of the label
-
isDisplayed
public boolean isDisplayed()
Description copied from interface:Displayable
Returns true, if the element is displayed. "Displayed" means it has to be part of the dom and it is not hidden using css.- Specified by:
isDisplayed
in interfaceDisplayable
- Returns:
- true, if the element is displayed.
- Since:
- 2.0.0
-
-