Class UIHints

    • Field Detail

      • tab

        public String tab
        Name to give the tab in which the associated property will be created in, when displayed in the Properties View of StreamBase Studio. Ignored for Schema properties.

        This string will be used as-is as the tab title. All properties sharing the same tab name will be placed together.

        By default, Studio will place all properties in one common tab.

      • maskStringDisplay

        public boolean maskStringDisplay
        Set a hint for the associated property to mask displayed characters when presented to the end-user. Applies only to a String property, otherwise this call will have no effect.

        This hint may be ignored under certain circumstances, and should not be seen as a security feature.

        By default, this hint is false.

      • numLines

        public int numLines
        Set a hint for the associated property to be displayed as a multiline editable box of height (number of lines) size. Valid only for a String property.

        By default, this hint is 1.

      • tableColumnNames

        public String[] tableColumnNames
        Set a hint for the associated table property to be displayed with the following column names. As of 7.3.5, there is support for at most two columns (for Map and String[][] types).
        Since:
        7.1
    • Method Detail

      • create

        public static UIHints create()
        Creates a new UIHints with all values initialized to default
        Returns:
        a new UIHints
      • setTab

        public UIHints setTab​(String tab)
        Sets the tab name hint. Do not use the & character in the String. Note that Schema properties are always placed in a special tab.
        Parameters:
        tab - the tab name
        Returns:
        this, useful for chaining method calls
        See Also:
        tab
      • setMaskStringDisplay

        public UIHints setMaskStringDisplay​(boolean maskStringDisplay)
        Sets the mask hint, applicable to String property types.
        Parameters:
        maskStringDisplay - whether to set the string mask hint or not
        Returns:
        this, useful for chaining method calls
        See Also:
        maskStringDisplay
      • setNumLines

        public UIHints setNumLines​(int numLines)
        Sets the number of lines to display this property as, applicable to String property types.
        Parameters:
        numLines - the number of lines desired
        Returns:
        this, useful for chaining method calls
        See Also:
        numLines
      • setTableColumnNames

        public UIHints setTableColumnNames​(String... tableColumnNames)
        Set column names to use for properties displayed in a user interface Table
        Parameters:
        tableColumnNames - the names of the columns, from first to last
        Returns:
        this, useful for chaining method calls
        Since:
        7.1
        See Also:
        tableColumnNames
      • setProposals

        public UIHints setProposals​(String... proposals)
        Set string proposals that will be offered to the user when editing an associated String property
        Parameters:
        proposals - string values that will be proposed to the user
        Returns:
        this, useful for chaining method calls
        Since:
        7.3.1
        See Also:
        proposals
      • setTextWidth

        public UIHints setTextWidth​(UIHints.TextWidthHint width)
        Set the desired width hint for text-field-like controls
        Parameters:
        width - the desired width
        Returns:
        this, useful for chaining method calls
        Since:
        7.5.1
      • setTextFont

        public UIHints setTextFont​(UIHints.TextFontHint hint)
        Set the desired font hint for text-field-like controls
        Parameters:
        hint - the font hint
        Returns:
        this, useful for chaining method calls
        Since:
        7.7.3