Class AbstractEditValuePanel<V>

    • Constructor Detail

      • AbstractEditValuePanel

        public AbstractEditValuePanel​(java.lang.Class<V> valueClass,
                                      Layout<? extends Constraints> layout)
        Value class and layout constructor.
        Parameters:
        valueClass - The class indicating the type of value displayed within the component.
        layout - The layout definition for the container.
        Throws:
        java.lang.NullPointerException - if the given value class and/or layout is null.
    • Method Detail

      • getRepeatEditListener

        protected EditListener getRepeatEditListener()
        Returns:
        An edit listener to repeat copies of events received, using this component as the source while retaining the original target.
      • 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.