Class StiTextBoxControl

All Implemented Interfaces:
IStiAppExpressionCollection, IStiJsonReportObject, IStiForceSerializable, IStiSerializable, IStiSerializableRef, IStiSerializableToAttributes, IStiName, IStiBorder, IStiBreakable, IStiBrush, IStiCanGrow, IStiCanShrink, IStiComponentGuid, IStiConditions, IStiGrowToHeight, IStiInteraction, IStiPrintOn, IStiSelect, IStiShift, IStiUnitConvert, IStiReportControl, IStiTextBoxControl, IStiReportProperty, IStiIgnoryStyle, IStiInherited, IStiStateSaveRestore, Cloneable

public class StiTextBoxControl extends StiReportControl implements IStiTextBoxControl
Represents a Windows text box control.
  • Constructor Details

    • StiTextBoxControl

      public StiTextBoxControl()
      Creates a new StiTextBoxControl.
    • StiTextBoxControl

      public StiTextBoxControl(StiRectangle rect)
      Creates a new StiTextBoxControl.
      Parameters:
      rect - The rectangle describes sizes and position of the control.
  • Method Details

    • getToolboxPosition

      public int getToolboxPosition()
      Gets value to sort a position in the toolbox.
      Overrides:
      getToolboxPosition in class StiReportControl
    • getLocalizedName

      public String getLocalizedName()
      Gets a localized component name.
      Overrides:
      getLocalizedName in class StiReportControl
    • getTextBinding

      public final String getTextBinding()
      Gets the data bindings for the text.
      Specified by:
      getTextBinding in interface IStiTextBoxControl
    • setTextBinding

      public final void setTextBinding(String value)
      Specified by:
      setTextBinding in interface IStiTextBoxControl
    • getHeight

      public double getHeight()
      Gets or sets the height of the control.
      Overrides:
      getHeight in class StiReportControl
    • setHeight

      public void setHeight(double value)
      Overrides:
      setHeight in class StiReportControl
    • getMultiline

      public boolean getMultiline()
      Gets or sets a value indicating whether this is a multiline text box control.
    • setMultiline

      public void setMultiline(boolean value)
    • getWordWrap

      public boolean getWordWrap()
      Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.
    • setWordWrap

      public void setWordWrap(boolean value)
    • getAcceptsTab

      public boolean getAcceptsTab()
      Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.
    • setAcceptsTab

      public void setAcceptsTab(boolean value)
    • getAcceptsReturn

      public boolean getAcceptsReturn()
      Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form.
    • setAcceptsReturn

      public void setAcceptsReturn(boolean value)
    • getMaxLength

      public final int getMaxLength()
      Gets or sets the maximum number of characters the user can type into the text box control.
    • setMaxLength

      public final void setMaxLength(int value)
    • getPasswordChar

      public final char getPasswordChar()
      Gets or sets the character used to mask characters of a password in a single-line TextBox control.
    • setPasswordChar

      public final void setPasswordChar(char value)
    • getText

      public final String getText()
      Gets or sets the current text in the text box.
      Specified by:
      getText in interface IStiTextBoxControl
    • setText

      public final void setText(String value)
      Specified by:
      setText in interface IStiTextBoxControl
    • GetDefaultEvent

      public StiEvent GetDefaultEvent()
      Gets default event for this report control.
      Specified by:
      GetDefaultEvent in interface IStiReportControl
      Overrides:
      GetDefaultEvent in class StiReportControl
      Returns:
      Default event.
    • SaveToJsonObject

      public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
      Specified by:
      SaveToJsonObject in interface IStiJsonReportObject
      Overrides:
      SaveToJsonObject in class StiReportControl
      Throws:
      JSONException
    • LoadFromJsonObject

      public void LoadFromJsonObject(JSONObject jObject) throws JSONException
      Specified by:
      LoadFromJsonObject in interface IStiJsonReportObject
      Overrides:
      LoadFromJsonObject in class StiReportControl
      Throws:
      JSONException