Interface StaticTextHandler

  • All Superinterfaces:
    ComponentHandler<StaticTextData>, StaticTextData

    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 StaticTextData objects. By calling 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 StaticTextData 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 setData() explicitly for setting the changed values.

    This interface simply combines the StaticTextData interface with the ComponentHandler interface.

    Version:
    $Id: StaticTextHandler.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger