Class AbstractFormControlAdv

java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
All Implemented Interfaces:
SFormControl, Serializable
Direct Known Subclasses:
ButtonControlImpl, CheckBoxControlImpl, ComboBoxControlImpl, GroupBoxControlImpl, LabelControlImpl, ListBoxControlImpl, RadioButtonControlImpl, ScrollBarControlImpl, SpinButtonControlImpl, TextBoxControlImpl

public abstract class AbstractFormControlAdv extends Object implements SFormControl, Serializable
Common base for form control implementations. Holds the fields shared by every SFormControl (name, anchor, linked-cell, list-fill range, enabled, visible) so individual *ControlImpl subclasses contain only their type-specific state.
Since:
7.0.0
See Also:
  • Field Details

    • name

      protected final String name
    • anchor

      protected final ViewAnchor anchor
    • linkedCell

      protected String linkedCell
    • listFillRange

      protected String listFillRange
    • enabled

      protected boolean enabled
    • visible

      protected boolean visible
  • Constructor Details

    • AbstractFormControlAdv

      protected AbstractFormControlAdv(String name, ViewAnchor anchor)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SFormControl
      Returns the name of this form control.
      Specified by:
      getName in interface SFormControl
      Returns:
      the control name
    • getAnchor

      public ViewAnchor getAnchor()
      Description copied from interface: SFormControl
      Returns the anchor that positions this form control on the sheet.
      Specified by:
      getAnchor in interface SFormControl
      Returns:
      the view anchor
    • getLinkedCell

      public String getLinkedCell()
      Description copied from interface: SFormControl
      Returns the cell reference string for value binding (e.g., "$A$1"). The linked cell receives the control's current value.
      Specified by:
      getLinkedCell in interface SFormControl
      Returns:
      the linked cell reference, or null if not bound
    • setLinkedCell

      public void setLinkedCell(String ref)
      Description copied from interface: SFormControl
      Sets the cell reference for value binding.
      Specified by:
      setLinkedCell in interface SFormControl
      Parameters:
      ref - the cell reference string, e.g., "$A$1"
    • getListFillRange

      public String getListFillRange()
      Description copied from interface: SFormControl
      Returns the range reference for populating combo box or list box items (e.g., "$B$1:$B$10").
      Specified by:
      getListFillRange in interface SFormControl
      Returns:
      the list fill range reference, or null if not set
    • setListFillRange

      public void setListFillRange(String ref)
      Description copied from interface: SFormControl
      Sets the range reference for populating combo box or list box items.
      Specified by:
      setListFillRange in interface SFormControl
      Parameters:
      ref - the range reference string
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: SFormControl
      Returns whether this form control is enabled for interaction.
      Specified by:
      isEnabled in interface SFormControl
      Returns:
      true if enabled
    • setEnabled

      public void setEnabled(boolean enabled)
    • isVisible

      public boolean isVisible()
      Description copied from interface: SFormControl
      Returns whether this form control is visible.
      Specified by:
      isVisible in interface SFormControl
      Returns:
      true if visible
    • setVisible

      public void setVisible(boolean visible)