public interface StaticTextHandler extends ComponentHandler<StaticTextData>, StaticTextData
Definition of an interface for a handler that represents a static text component.
Though static text elements are no input elements in the common sense it is
possible to update some of their properties. For this purpose this interface
provides some convenience methods, so that specific properties can be set and
it is unnecessary to call setData()
all the time.
The setData()
and getData()
methods of this handler
interface operate on
objects. By calling
StaticTextData
setData()
with a StaticTextData
object all
properties of the managed static text object are updated. If null is
passed in, all properties (text and icon) and cleared.
The getData()
method will always return a
object representing the current state
of the static text element. Note that the returned object is disconnected
from the static text component, i.e. a manipulation of its properties will
not affect the static text component directly. You have to call
StaticTextData
setData()
explicitly for setting the changed values.
This interface simply combines the
interface with the StaticTextData
interface.
ComponentHandler
getComponent, getData, getOuterComponent, getType, isEnabled, setData, setEnabled
getAlignment, getIcon, getText, setAlignment, setIcon, setText
Copyright © 2016 The JGUIraffe Team. All rights reserved.