Class FxTableViewDelegate

java.lang.Object
org.tentackle.fx.FxControlDelegate
org.tentackle.fx.FxComponentDelegate
org.tentackle.fx.component.delegate.FxTableViewDelegate
All Implemented Interfaces:
ErrorPopupSupported, FxComponent, FxControl, InfoPopupSupported

public class FxTableViewDelegate extends FxComponentDelegate
Delegate for FxTableView.
Author:
harald
  • Constructor Details

    • FxTableViewDelegate

      public FxTableViewDelegate(FxTableView<?> component)
      Creates the delegate.
      Parameters:
      component - the component
  • Method Details

    • getComponent

      public FxTableView<?> getComponent()
      Description copied from class: FxComponentDelegate
      Gets the component of this delegate.
      Specified by:
      getComponent in class FxComponentDelegate
      Returns:
      the component
    • getParentContainer

      public FxContainer getParentContainer()
      Description copied from interface: FxControl
      Gets the parent container.
      Specified by:
      getParentContainer in interface FxControl
      Overrides:
      getParentContainer in class FxComponentDelegate
      Returns:
      the parent, null if not a component of a container
    • setType

      public void setType(Class<?> type)
      Description copied from interface: FxComponent
      Sets the type for this component.

      Notice that the type can be applied only once. This is because previously installed listeners could cause memory leaks.

      Specified by:
      setType in interface FxComponent
      Overrides:
      setType in class FxComponentDelegate
      Parameters:
      type - the type
    • getViewObject

      public javafx.collections.ObservableList getViewObject()
      Description copied from interface: FxComponent
      Retrieves the internal native object of the component.
      Returns:
      the component's object
    • setViewObject

      public void setViewObject(Object viewObject)
      Description copied from interface: FxComponent
      Sets the internal native object of the component.
      Parameters:
      viewObject - the internal object
    • setViewValue

      public void setViewValue(Object value)
      Description copied from interface: FxComponent
      Sets a value in this component.
      The value's type is that of the model.
      Specified by:
      setViewValue in interface FxComponent
      Overrides:
      setViewValue in class FxComponentDelegate
      Parameters:
      value - is the value to set
    • isViewModified

      public boolean isViewModified()
      Description copied from class: FxControlDelegate
      Gets the value of the property viewModified.
      Specified by:
      isViewModified in interface FxControl
      Overrides:
      isViewModified in class FxControlDelegate
      Returns:
      true if user changed the visual representation
    • triggerViewModified

      public void triggerViewModified()
      Description copied from interface: FxControl
      Walks up the component hierarchy and updates the viewModified property.
      This is done by comparing the saved view value with the current view.
      Specified by:
      triggerViewModified in interface FxControl
      Overrides:
      triggerViewModified in class FxComponentDelegate
    • updateModel

      public void updateModel()
      Description copied from interface: FxControl
      Updates the model according to the view.
      Specified by:
      updateModel in interface FxControl
      Overrides:
      updateModel in class FxComponentDelegate
    • updateChangeable

      protected void updateChangeable(boolean changeable)
      Description copied from class: FxControlDelegate
      Updates other properties if changeable is bound to something else.
      Overrides:
      updateChangeable in class FxComponentDelegate
      Parameters:
      changeable - the flag
    • setContainerChangeable

      public void setContainerChangeable(boolean containerChangeable)
      Description copied from interface: FxControl
      Invoked when setChangeable() is invoked on the container of this component.
      Specified by:
      setContainerChangeable in interface FxControl
      Overrides:
      setContainerChangeable in class FxComponentDelegate
      Parameters:
      containerChangeable - true if container is changeable, false if all components readonly