Package io.keikai.model.impl
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
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.model.SFormControl
SFormControl.ControlType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ViewAnchorprotected booleanprotected Stringprotected Stringprotected final Stringprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the anchor that positions this form control on the sheet.Returns the cell reference string for value binding (e.g., "$A$1").Returns the range reference for populating combo box or list box items (e.g., "$B$1:$B$10").getName()Returns the name of this form control.booleanReturns whether this form control is enabled for interaction.booleanReturns whether this form control is visible.voidsetEnabled(boolean enabled) voidsetLinkedCell(String ref) Sets the cell reference for value binding.voidsetListFillRange(String ref) Sets the range reference for populating combo box or list box items.voidsetVisible(boolean visible) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.keikai.model.SFormControl
getType
-
Field Details
-
name
-
anchor
-
linkedCell
-
listFillRange
-
enabled
protected boolean enabled -
visible
protected boolean visible
-
-
Constructor Details
-
AbstractFormControlAdv
-
-
Method Details
-
getName
Description copied from interface:SFormControlReturns the name of this form control.- Specified by:
getNamein interfaceSFormControl- Returns:
- the control name
-
getAnchor
Description copied from interface:SFormControlReturns the anchor that positions this form control on the sheet.- Specified by:
getAnchorin interfaceSFormControl- Returns:
- the view anchor
-
getLinkedCell
Description copied from interface:SFormControlReturns the cell reference string for value binding (e.g., "$A$1"). The linked cell receives the control's current value.- Specified by:
getLinkedCellin interfaceSFormControl- Returns:
- the linked cell reference, or null if not bound
-
setLinkedCell
Description copied from interface:SFormControlSets the cell reference for value binding.- Specified by:
setLinkedCellin interfaceSFormControl- Parameters:
ref- the cell reference string, e.g., "$A$1"
-
getListFillRange
Description copied from interface:SFormControlReturns the range reference for populating combo box or list box items (e.g., "$B$1:$B$10").- Specified by:
getListFillRangein interfaceSFormControl- Returns:
- the list fill range reference, or null if not set
-
setListFillRange
Description copied from interface:SFormControlSets the range reference for populating combo box or list box items.- Specified by:
setListFillRangein interfaceSFormControl- Parameters:
ref- the range reference string
-
isEnabled
public boolean isEnabled()Description copied from interface:SFormControlReturns whether this form control is enabled for interaction.- Specified by:
isEnabledin interfaceSFormControl- Returns:
- true if enabled
-
setEnabled
public void setEnabled(boolean enabled) -
isVisible
public boolean isVisible()Description copied from interface:SFormControlReturns whether this form control is visible.- Specified by:
isVisiblein interfaceSFormControl- Returns:
- true if visible
-
setVisible
public void setVisible(boolean visible)
-