Class RowSpacerItem

All Implemented Interfaces:
HasHandlers, HasBlurHandlers, HasChangedHandlers, HasChangeHandlers, HasClickHandlers, HasDoubleClickHandlers, HasEditorEnterHandlers, HasEditorExitHandlers, HasFocusHandlers, HasIconClickHandlers, HasIconKeyPressHandlers, HasItemHoverHandlers, HasKeyDownHandlers, HasKeyPressHandlers, HasKeyUpHandlers, HasPendingStatusChangedHandlers, HasPickerIconClickHandlers, HasShowContextMenuHandlers, HasTitleClickHandlers, HasTitleDoubleClickHandlers, HasTitleHoverHandlers, HasValueHoverHandlers, HasValueIconClickHandlers

public class RowSpacerItem extends SpacerItem
Form item that renders as a blank row in the form layout.
Set startRow to false to create a rowSpacer that simply takes up every remaining column in the current row rather than starting a new row.
  • Constructor Details

    • RowSpacerItem

      public RowSpacerItem()
    • RowSpacerItem

      public RowSpacerItem(JavaScriptObject jsObj)
    • RowSpacerItem

      public RowSpacerItem(String name)
  • Method Details

    • getOrCreateRef

      public static RowSpacerItem getOrCreateRef(JavaScriptObject jsObj)
    • changeAutoChildDefaults

      public static void changeAutoChildDefaults(String autoChildName, Canvas defaults)
      Changes the defaults for Canvas AutoChildren named autoChildName.
      Parameters:
      autoChildName - name of an AutoChild to customize the defaults for.
      defaults - Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see SGWTProperties.
      See Also:
    • changeAutoChildDefaults

      public static void changeAutoChildDefaults(String autoChildName, FormItem defaults)
      Changes the defaults for FormItem AutoChildren named autoChildName.
      Parameters:
      autoChildName - name of an AutoChild to customize the defaults for.
      defaults - FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see SGWTProperties.
      See Also:
    • changePickerIconDefaults

      public static void changePickerIconDefaults(FormItemIcon defaults)
    • setColSpan

      public RowSpacerItem setColSpan(int colSpan)
      by default, separators span all remaining columns
      Overrides:
      setColSpan in class FormItem
      Parameters:
      colSpan - New colSpan value. Default value is "*"
      Returns:
      RowSpacerItem instance, for chaining setter calls
      See Also:
    • getColSpan

      public int getColSpan()
      by default, separators span all remaining columns

      Note : This method will return -1 if the underlying SmartClient JavaScript attribute value cannot be expressed as a(n) int. In that case, other getters, similarly-named but ending in AsString, AsCanvas, etc., may be provided.

      Returns:
      Current colSpan value. Default value is "*"
      See Also:
    • setColSpan

      public RowSpacerItem setColSpan(String colSpan)
      by default, separators span all remaining columns
      Overrides:
      setColSpan in class FormItem
      Parameters:
      colSpan - New colSpan value. Default value is "*"
      Returns:
      RowSpacerItem instance, for chaining setter calls
      See Also:
    • getColSpanAsString

      public String getColSpanAsString()
      by default, separators span all remaining columns
      Returns:
      Current colSpan value. Default value is "*"
      See Also:
    • setEndRow

      public RowSpacerItem setEndRow(Boolean endRow)
      these items are in a row by themselves by default
      Overrides:
      setEndRow in class FormItem
      Parameters:
      endRow - New endRow value. Default value is true
      Returns:
      RowSpacerItem instance, for chaining setter calls
      See Also:
    • getEndRow

      public Boolean getEndRow()
      these items are in a row by themselves by default
      Overrides:
      getEndRow in class FormItem
      Returns:
      Current endRow value. Default value is true
      See Also:
    • setShowTitle

      public RowSpacerItem setShowTitle(Boolean showTitle)
      we never show a separate title cell for separators
      Overrides:
      setShowTitle in class SpacerItem
      Parameters:
      showTitle - New showTitle value. Default value is false
      Returns:
      RowSpacerItem instance, for chaining setter calls
      See Also:
    • getShowTitle

      public Boolean getShowTitle()
      we never show a separate title cell for separators
      Overrides:
      getShowTitle in class SpacerItem
      Returns:
      Current showTitle value. Default value is false
      See Also:
    • setStartRow

      public RowSpacerItem setStartRow(Boolean startRow)
      these items are in a row by themselves by default
      Overrides:
      setStartRow in class FormItem
      Parameters:
      startRow - New startRow value. Default value is true
      Returns:
      RowSpacerItem instance, for chaining setter calls
      See Also:
    • getStartRow

      public Boolean getStartRow()
      these items are in a row by themselves by default
      Overrides:
      getStartRow in class FormItem
      Returns:
      Current startRow value. Default value is true
      See Also:
    • setDefaultProperties

      public static void setDefaultProperties(RowSpacerItem rowSpacerItemProperties)
      Class level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties of the class instance passed to this function. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.

      Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.

      Parameters:
      rowSpacerItemProperties - properties that should be used as new defaults when instances of this class are created
      See Also: