Class EntityEditPanel.ControlKeys

java.lang.Object
is.codion.swing.framework.ui.EntityEditPanel.ControlKeys
Enclosing class:
EntityEditPanel

public static final class EntityEditPanel.ControlKeys extends Object
The controls available for EntityEditPanels.

A control given a key stroke is available while the edit panel, or a component within it, has the focus. Two controls can not have the same key stroke, the panel throwing an IllegalStateException when initialized. Note that changing the shortcut keystroke after a panel has been initialized has no effect on its controls.

Note: CTRL in key stroke descriptions represents the platform menu shortcut key (CTRL on Windows/Linux, ⌘ on macOS).

  • Field Details

    • INSERT

      public static final ControlKey<CommandControl> INSERT
      Performs an insert.
    • UPDATE

      public static final ControlKey<CommandControl> UPDATE
      Performs an update.
    • DELETE

      public static final ControlKey<CommandControl> DELETE
      Performs a delete.
    • CLEAR

      public static final ControlKey<CommandControl> CLEAR
      Clears the input fields.
    • SELECT_INPUT_FIELD

      public static final ControlKey<CommandControl> SELECT_INPUT_FIELD
      Displays a dialog for selecting an input field.
      Default key stroke: CTRL-I
    • VIEW_ENTITY

      public static final ControlKey<CommandControl> VIEW_ENTITY
      Displays the entity viewer, if available.
      Default key stroke: CTRL-ALT-V
      See Also:
    • INSPECT_EDITOR

      public static final ControlKey<CommandControl> INSPECT_EDITOR
      Displays the editor inspector.
      Default key stroke: CTRL-ALT-R
    • PERSIST

      public static final ControlKey<CommandControl> PERSIST
      Toggles whether the value of the component with the focus persists when the editor is reset to its defaults, for the attributes given a persist toggle. Unlike the other controls, available only while one of those components has the focus, so the key stroke may also serve as a label mnemonic elsewhere in the panel. Only the key stroke is used, bound on each of those components, a control set for this key not being bound.
      Default key stroke: ALT-P
      See Also: