Class ReadOnlyTextAreaDialog

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.dialog.Dialog
org.jumpmind.vaadin.ui.common.ResizableDialog
org.jumpmind.vaadin.ui.common.ReadOnlyTextAreaDialog
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.dialog.DialogVariant>, Serializable

public class ReadOnlyTextAreaDialog extends ResizableDialog
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jumpmind.vaadin.ui.common.ResizableDialog

    ResizableDialog.CloseButtonListener

    Nested classes/interfaces inherited from class com.vaadin.flow.component.dialog.Dialog

    com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent, com.vaadin.flow.component.dialog.Dialog.DialogFooter, com.vaadin.flow.component.dialog.Dialog.DialogHeader, com.vaadin.flow.component.dialog.Dialog.DialogResizeEvent, com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Column
     
    protected com.vaadin.flow.component.select.Select<String>
     
    protected com.vaadin.flow.component.button.Button
     
    protected List<com.vaadin.flow.component.Component>
     
     
    protected Object[]
     
    protected Table
     
    protected com.vaadin.flow.component.textfield.TextArea
     

    Fields inherited from class org.jumpmind.vaadin.ui.common.ResizableDialog

    escapeShortcutRegistration, innerContent
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReadOnlyTextAreaDialog(String title, String value, boolean isEncodedInHex)
     
    ReadOnlyTextAreaDialog(String title, String value, boolean isEncodedInHex, Consumer<Boolean> shortcutToggler)
     
    ReadOnlyTextAreaDialog(String title, String value, Table table, Object[] primaryKeys, IDatabasePlatform platform, boolean isEncodedInHex, boolean isLob, Consumer<Boolean> shortcutToggler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    buildLobSelect(Column[] pkColumns)
     
    protected String
    buildLobUpdate(Column[] pkColumns)
     
    protected byte[]
     
    void
     
    void
     
    static void
    show(String title, String value, boolean isEncodedInHex)
     
    static void
    show(String title, String value, boolean isEncodedInHex, Consumer<Boolean> shortcutToggler)
     
    static void
    show(String title, String value, Table table, Object[] primaryKeys, IDatabasePlatform platform, boolean isEncodedInHex, boolean isLob)
     
    protected void
    updateTextField(String display, String value)
     

    Methods inherited from class com.vaadin.flow.component.dialog.Dialog

    add, addAttachListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addOpenedChangeListener, addResizeListener, close, getAriaLabel, getClassNames, getFooter, getHeader, getHeaderTitle, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getStyle, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, onAttach, open, setAriaLabel, setClassName, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeaderTitle, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setResizable, setVisible, setWidth

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

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId

    Methods inherited from class java.lang.Object

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

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

    add, add, addComponentAsFirst, remove, remove, removeAll

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

    getElement

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

    isEnabled, setEnabled

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

    getHeightUnit, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull

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

    addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassName

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

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant

    addThemeVariants, removeThemeVariants
  • Field Details

    • leftComponentList

      protected List<com.vaadin.flow.component.Component> leftComponentList
    • textField

      protected com.vaadin.flow.component.textfield.TextArea textField
    • displayBox

      protected com.vaadin.flow.component.select.Select<String> displayBox
    • downloadButton

      protected com.vaadin.flow.component.button.Button downloadButton
    • table

      protected Table table
    • column

      protected Column column
    • primaryKeys

      protected Object[] primaryKeys
    • platform

      protected IDatabasePlatform platform
  • Constructor Details

    • ReadOnlyTextAreaDialog

      public ReadOnlyTextAreaDialog(String title, String value, boolean isEncodedInHex)
    • ReadOnlyTextAreaDialog

      public ReadOnlyTextAreaDialog(String title, String value, boolean isEncodedInHex, Consumer<Boolean> shortcutToggler)
    • ReadOnlyTextAreaDialog

      public ReadOnlyTextAreaDialog(String title, String value, Table table, Object[] primaryKeys, IDatabasePlatform platform, boolean isEncodedInHex, boolean isLob, Consumer<Boolean> shortcutToggler)
  • Method Details

    • show

      public void show()
      Overrides:
      show in class ResizableDialog
    • getLobData

      protected byte[] getLobData(String title)
    • buildLobSelect

      protected String buildLobSelect(Column[] pkColumns)
    • buildLobUpdate

      protected String buildLobUpdate(Column[] pkColumns)
    • selectAll

      public void selectAll()
    • updateTextField

      protected void updateTextField(String display, String value)
    • show

      public static void show(String title, String value, boolean isEncodedInHex)
    • show

      public static void show(String title, String value, boolean isEncodedInHex, Consumer<Boolean> shortcutToggler)
    • show

      public static void show(String title, String value, Table table, Object[] primaryKeys, IDatabasePlatform platform, boolean isEncodedInHex, boolean isLob)