Class SJFormattedLongField

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.AbstractField<LongField, Long>
com.vaadin.flow.component.AbstractSinglePropertyField<LongField, Long>
com.vaadin.flow.component.textfield.TextFieldBase<LongField, Long>
com.vaadin.flow.component.textfield.AbstractNumberField<LongField, Long>
com.vaadin.swingbridge.surrogates.LongField
com.vaadin.swingbridge.surrogates.SJFormattedLongField
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.BlurNotifier<LongField>, com.vaadin.flow.component.CompositionNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.Focusable<LongField>, com.vaadin.flow.component.FocusNotifier<LongField>, com.vaadin.flow.component.HasAriaDescription, com.vaadin.flow.component.HasAriaLabel, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasHelper, com.vaadin.flow.component.HasLabel, com.vaadin.flow.component.HasPlaceholder, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasValidation, com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<LongField, Long>, Long>, com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<LongField, Long>, Long>, com.vaadin.flow.component.InputNotifier, com.vaadin.flow.component.KeyNotifier, com.vaadin.flow.component.shared.HasClearButton, com.vaadin.flow.component.shared.HasPrefix, com.vaadin.flow.component.shared.HasSuffix, com.vaadin.flow.component.shared.HasTooltip, com.vaadin.flow.component.shared.HasValidationProperties, com.vaadin.flow.component.shared.InputField<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<LongField, Long>, Long>, com.vaadin.flow.component.textfield.HasAutocapitalize, com.vaadin.flow.component.textfield.HasAutocomplete, com.vaadin.flow.component.textfield.HasAutocorrect, com.vaadin.flow.data.binder.HasValidator<Long>, com.vaadin.flow.data.value.HasValueChangeMode, ComponentMixin, ContainerMixin, EnterClaims.Claimant, JComponentMixin, Serializable

public class SJFormattedLongField extends LongField implements JComponentMixin, EnterClaims.Claimant
Surrogate for JFormattedTextField when the emulator's formatter is a NumberFormatter bound to Long.class (D_jformattedtextfield LongStrategy). Extends the surrogate-local LongField (Long-typed sibling of Vaadin's IntegerField, ported under SD_sjspinner to close the Long precision gap for SJSpinner).

Mirrors SJFormattedIntegerField's shape — see that surrogate for design notes; this one differs only in the peer's value type (Long vs Integer).

See Also:
  • Field Details

  • Constructor Details

    • SJFormattedLongField

      public SJFormattedLongField()
    • SJFormattedLongField

      public SJFormattedLongField(Long initialValue)
  • Method Details

    • validate

      public void validate()
      Description copied from interface: ComponentMixin
      Deliberate no-op.
      Specified by:
      validate in interface ComponentMixin
      Overrides:
      validate in class com.vaadin.flow.component.textfield.AbstractNumberField<LongField, Long>
    • setLongValue

      public void setLongValue(Long value)
    • getFocusLostBehavior

      public int getFocusLostBehavior()
    • setFocusLostBehavior

      public void setFocusLostBehavior(int behavior)
    • addActionListener

      public void addActionListener(ActionListener l)
    • removeActionListener

      public void removeActionListener(ActionListener l)
    • getActionListeners

      public ActionListener[] getActionListeners()
    • fireActionPerformed

      protected void fireActionPerformed()
    • setActionCommand

      public void setActionCommand(String command)
    • getColumns

      public int getColumns()
    • setColumns

      public void setColumns(int columns)
    • getHorizontalAlignment

      public int getHorizontalAlignment()
    • setHorizontalAlignment

      public void setHorizontalAlignment(int alignment)
    • getUIClassID

      public String getUIClassID()
      Description copied from interface: JComponentMixin
      Deliberate no-op — L&F key.
      Specified by:
      getUIClassID in interface JComponentMixin
    • getAccessibleContext

      public AccessibleContext getAccessibleContext()
    • claimsEnter

      public boolean claimsEnter()
      The SJFormattedTextField.claimsEnter() rule: Enter commits an edit and only an unedited field lets it through.
      Specified by:
      claimsEnter in interface EnterClaims.Claimant