Class ComponentModel<T>

    • Method Detail

      • setObject

        public final void setObject​(T object)
        Description copied from interface: IModel
        Sets the model object.
        Specified by:
        setObject in interface IModel<T>
        Parameters:
        object - The model object
      • getObject

        protected T getObject​(Component component)
        Returns the object from the model with the use of the component where it is attached to.
        Parameters:
        component - The component which has this model.
        Returns:
        The object of the model.
      • setObject

        protected void setObject​(Component component,
                                 T object)
        Sets the model object for this model.
        Parameters:
        component - The component which has this model.
        object - The object that will be set in the model.