[]
        
(Showing Draft Content)

IControl

Interface IControl

All Known Subinterfaces:
IButton, ICellLinkControl, ICellLinkControlT<T>, ICheckBox, IContentControl, IControlT<T>, IDropDown, IGroupBox, ILabel, IListBox, IOptionButton, IRangeBase, IScrollBar, ISelector, ISelectorT<T,TCollection>, ISpinner

public interface IControl
The base of form controls.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Change z-index of this control to front.
    void
    Remove this control from parent.
    Gets the bottom right cell of this control.
    boolean
    Gets whether the control is enabled.
    Returns the form control type of this control.
    double
    Gets the height of this control.
    double
    Gets the left margin of this control.
    boolean
    Gets whether the control is locked.
    Gets the name of this control.
    The parent object, typically IWorksheet.
    Gets the way a control is attached to its underlying cells.
    boolean
    Gets whether the control will be printed.
    Gets the shapes of this control.
    double
    Gets the top margin of this control.
    Gets the top left cell of this control.
    boolean
    Gets whether the control is visible.
    double
    Gets the width of this control.
    int
    Gets the z-index of this control.
    boolean
    Send the Z-Index to back.
    void
    setEnabled(boolean value)
    Sets whether the control is enabled.
    void
    setHeight(double value)
    Sets the height of this control.
    void
    setLeft(double value)
    Sets the left margin of this control.
    void
    setLocked(boolean value)
    Sets whether the control is locked.
    void
    setName(String value)
    Sets the name of this control.
    void
    Sets the way a control is attached to its underlying cells.
    void
    setPrintObject(boolean value)
    Sets whether the control will be printed.
    void
    setTop(double value)
    Sets the top margin of this control.
    void
    setVisible(boolean value)
    Sets whether the control is visible.
    void
    setWidth(double value)
    Sets the width of this control.
  • Method Details

    • getParent

      Object getParent()
      The parent object, typically IWorksheet. In some cases, the type of this property is IControl.
    • getFormControlType

      FormControlType getFormControlType()
      Returns the form control type of this control.
    • getEnabled

      boolean getEnabled()
      Gets whether the control is enabled.
      API Note:
      Not supported by the *.ssjson format.
    • setEnabled

      void setEnabled(boolean value)
      Sets whether the control is enabled.
      API Note:
      Not supported by the *.ssjson format.
    • getHeight

      double getHeight()
      Gets the height of this control.
    • setHeight

      void setHeight(double value)
      Sets the height of this control.
    • getLeft

      double getLeft()
      Gets the left margin of this control.
    • setLeft

      void setLeft(double value)
      Sets the left margin of this control.
    • getLocked

      boolean getLocked()
      Gets whether the control is locked.
      API Note:
      Not supported by the *.ssjson format.
    • setLocked

      void setLocked(boolean value)
      Sets whether the control is locked.
      API Note:
      Not supported by the *.ssjson format.
    • getPlacement

      Placement getPlacement()
      Gets the way a control is attached to its underlying cells.
    • setPlacement

      void setPlacement(Placement value)
      Sets the way a control is attached to its underlying cells.
    • getPrintObject

      boolean getPrintObject()
      Gets whether the control will be printed.
    • setPrintObject

      void setPrintObject(boolean value)
      Sets whether the control will be printed.
    • getTop

      double getTop()
      Gets the top margin of this control.
    • setTop

      void setTop(double value)
      Sets the top margin of this control.
    • getVisible

      boolean getVisible()
      Gets whether the control is visible.
    • setVisible

      void setVisible(boolean value)
      Sets whether the control is visible.
    • getWidth

      double getWidth()
      Gets the width of this control.
    • setWidth

      void setWidth(double value)
      Sets the width of this control.
    • getZOrder

      int getZOrder()
      Gets the z-index of this control.
    • getShapeRange

      IShapeRange getShapeRange()
      Gets the shapes of this control.
    • bringToFront

      boolean bringToFront()
      Change z-index of this control to front.
    • delete

      void delete()
      Remove this control from parent.
    • sendToBack

      boolean sendToBack()
      Send the Z-Index to back.
      Returns:
      Returns true if succeed.
    • getBottomRightCell

      IRange getBottomRightCell()
      Gets the bottom right cell of this control.
    • getName

      String getName()
      Gets the name of this control.
    • setName

      void setName(String value)
      Sets the name of this control.
    • getTopLeftCell

      IRange getTopLeftCell()
      Gets the top left cell of this control.