Class CardDetailView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<io.jmix.flowui.component.layout.ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.flowui.view.StandardDetailView<Card>
de.bytestore.hostinger.view.card.CardDetailView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, CardConfigUpdateListener, io.jmix.flowui.fragment.FragmentOwner, io.jmix.flowui.view.ChangeTracker, io.jmix.flowui.view.DetailView<Card>, io.jmix.flowui.view.HasEditedEntity<Card>, io.jmix.flowui.view.ReadOnlyAwareView, io.jmix.flowui.view.ReadOnlyTracker, io.jmix.flowui.view.SupportEntityLock<Card>, Serializable

@Route(value="cards/:id", layout=MainView.class) @ViewController("host_Card.detail") @ViewDescriptor("card-detail-view.xml") public class CardDetailView extends io.jmix.flowui.view.StandardDetailView<Card> implements CardConfigUpdateListener
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailView

    io.jmix.flowui.view.StandardDetailView.AfterSaveEvent, io.jmix.flowui.view.StandardDetailView.BeforeSaveEvent, io.jmix.flowui.view.StandardDetailView.InitEntityEvent<E extends Object>, io.jmix.flowui.view.StandardDetailView.SetupLockEvent, io.jmix.flowui.view.StandardDetailView.ValidationEvent

    Nested classes/interfaces inherited from class io.jmix.flowui.view.View

    io.jmix.flowui.view.View.AfterCloseEvent, io.jmix.flowui.view.View.BeforeCloseEvent, io.jmix.flowui.view.View.BeforeShowEvent, io.jmix.flowui.view.View.InitEvent, io.jmix.flowui.view.View.PostReadyEvent, io.jmix.flowui.view.View.QueryParametersChangeEvent, io.jmix.flowui.view.View.ReadyEvent, io.jmix.flowui.view.View.RestoreComponentsStateEvent

    Nested classes/interfaces inherited from interface io.jmix.flowui.view.ReadOnlyTracker

    io.jmix.flowui.view.ReadOnlyTracker.ReadOnlyChangeEvent
  • Field Summary

    Fields inherited from class io.jmix.flowui.view.StandardDetailView

    DEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAfterSave(io.jmix.flowui.view.StandardDetailView.AfterSaveEvent event)
     
    void
    onInit(io.jmix.flowui.view.View.InitEvent event)
     
    void
    onInitEntity(io.jmix.flowui.view.StandardDetailView.InitEntityEvent<Card> event)
     
    void
    onProviderFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<io.jmix.flowui.component.textfield.TypedTextField<String>,String> event)
    This method is invoked when the value of the providerField component is changed.
    void
    Updates the configuration values for a dynamic card.

    Methods inherited from class io.jmix.flowui.view.StandardDetailView

    addReadOnlyStateChangeListener, beforeEnter, clearChanges, closeWithDiscard, closeWithSave, getEditedEntity, getEditedEntityOrNull, getLockStatus, hasUnsavedChanges, isCrossFieldValidationEnabled, isReadOnly, isReloadSaved, isShowSaveNotification, isShowValidationErrors, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setReloadSaved, setShowSaveNotification, setShowValidationErrors

    Methods inherited from class io.jmix.flowui.view.View

    afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getId, getPageTitle, isPreventBrowserTabClosing, setId, setPageTitle, setPreventBrowserTabClosing

    Methods inherited from class com.vaadin.flow.component.Composite

    getChildren, getContent, getElement

    Methods inherited from class com.vaadin.flow.component.Component

    findAncestor, from, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, isAttached, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, setVisible

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • CardDetailView

      public CardDetailView()
  • Method Details

    • onInit

      @Subscribe public void onInit(io.jmix.flowui.view.View.InitEvent event)
    • onInitEntity

      @Subscribe public void onInitEntity(io.jmix.flowui.view.StandardDetailView.InitEntityEvent<Card> event)
    • onProviderFieldComponentValueChange

      @Subscribe("providerField") public void onProviderFieldComponentValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<io.jmix.flowui.component.textfield.TypedTextField<String>,String> event)
      This method is invoked when the value of the providerField component is changed. It sets the configuration for the dynamic card based on the selected provider. If the provider is not null, it retrieves the corresponding DynamicCard object from the cardService. It then adds the configurations from the DynamicCard to the cardConfigComponents layout.
      Parameters:
      event - the event object containing information about the value change
    • onAfterSave

      @Subscribe public void onAfterSave(io.jmix.flowui.view.StandardDetailView.AfterSaveEvent event)
    • update

      public void update()
      Updates the configuration values for a dynamic card.

      This method is called to update the configuration values for a dynamic card. It is typically invoked after a configuration change is made by the user via the user interface.

      Specified by:
      update in interface CardConfigUpdateListener