Class AbstractEditValueControl<V>

    • Constructor Detail

      • AbstractEditValueControl

        public AbstractEditValueControl​(InfoModel infoModel,
                                        ValueModel<V> valueModel,
                                        Enableable enableable)
        Info model, value model, and enableable constructor.
        Parameters:
        infoModel - The component info model.
        valueModel - The component value model.
        enableable - The enableable object in which to store enabled status.
        Throws:
        java.lang.NullPointerException - if the given info model, value model, and/or enableable object is null.
    • Method Detail

      • isEditable

        public boolean isEditable()
        Specified by:
        isEditable in interface EditComponent
        Returns:
        Whether the value is editable and the component will allow the the user to change the value.
      • setEditable

        public void setEditable​(boolean newEditable)
        Description copied from interface: EditComponent
        Sets whether the value is editable and the component will allow the the user to change the value. This is a bound property of type Boolean.
        Specified by:
        setEditable in interface EditComponent
        Parameters:
        newEditable - true if the component should allow the user to change the value.
        See Also:
        EditComponent.EDITABLE_PROPERTY
      • fireEdited

        protected void fireEdited​(EditEvent editEvent)
        Fires a given edit event to all registered edit listeners.
        Parameters:
        editEvent - The edit event to fire.