# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Enums
- Deprecated Methods

- Deprecated Interfaces
  Interface and Description
  com.smartgwt.client.widgets.calendar.events.EventHoverHTMLHandler Please use setEventHoverHTMLCustomizer instead, this will be removed in a future release.
  com.smartgwt.client.widgets.calendar.events.HasEventHoverHTMLHandlers Please use setEventHoverHTMLCustomizer instead, this will be removed in a future release.

- Deprecated Classes
  Class and Description
  com.smartgwt.client.widgets.calendar.events.EventHoverHTMLEvent Please use setEventHoverHTMLCustomizer instead, this will be removed in a future release.
  com.smartgwt.client.util.Format see `Localized Number Formatting` for details.

- Deprecated Enums
  Enum and Description
  com.smartgwt.client.types.TimeFormatter Use `DateDisplayFormatter` instead

- Deprecated Methods
  Method and Description
  com.smartgwt.client.widgets.calendar.events.HasEventHoverHTMLHandlers.addEventHoverHTMLHandler(EventHoverHTMLHandler) Please use setEventHoverHTMLCustomizer instead, this will be removed in a future release.
  com.smartgwt.client.widgets.calendar.Calendar.addEventHoverHTMLHandler(EventHoverHTMLHandler) Please use setEventHoverHTMLCustomizer instead, this will be removed in a future release.
  com.smartgwt.client.widgets.grid.ListGrid.closeRecord(ListGridRecord) use `ListGrid.setCanExpandRecords(Boolean)` with `ListGrid.setExpansionMode(com.smartgwt.client.types.ExpansionMode)`, or override `ListGrid.getExpansionComponent(ListGridRecord)`
  com.smartgwt.client.widgets.chart.FacetChart.getAutoRotateLabels() As of Smart GWT 9.0 this property is replaced by the property `rotateLabels`. Setting rotateLabels to "auto" is equivalent to setting autoRotateLabels to `true`. Setting rotateLabels to "never" is equivalent to setting autoRotateLabels to `false`.
  com.smartgwt.client.widgets.calendar.Calendar.getCanDeleteEvents() in favor of `canRemoveEvents`
  com.smartgwt.client.widgets.layout.PortalLayout.getCanResizeRows() Use `canResizePortlets` instead.
  com.smartgwt.client.widgets.form.DynamicForm.getCellSpacing() use `DynamicForm.getCellPadding()` instead
  com.smartgwt.client.data.RequestTransformer.getDefaultTransformResponse(DSRequest) use `RequestTransformer.getDefaultTransformRequest(DSRequest)` instead
  com.smartgwt.client.widgets.form.fields.TimeItem.getDisplayFormat() Use `TimeItem.setTimeFormatter(com.smartgwt.client.types.TimeDisplayFormat)` instead.
  com.smartgwt.client.util.EnumUtil.getEnums(TYPE[], String[]) use {`EnumUtil.getEnums(ValueEnum[], String[], ValueEnum[])` method
  com.smartgwt.client.widgets.form.events.SubmitValuesEvent.getForm() Use `GwtEvent.getSource()` to determine the source of this event (could be a `DynamicForm` or `ValuesManager`
  com.smartgwt.client.widgets.DateChooser.getHeaderHeight() in favor of `navigationLayoutHeight`
  com.smartgwt.client.widgets.DateChooser.getNavigationLayoutHeight() in favor of `navigationLayoutHeight`
  com.smartgwt.client.widgets.grid.ListGrid.getSelection() use `ListGrid.getSelectedRecords()` instead
  com.smartgwt.client.widgets.grid.ListGrid.getSelection(boolean) use `ListGrid.getSelectedRecords(boolean)` instead
  com.smartgwt.client.widgets.grid.ListGridField.getSummaryTitle() Rather than customizing the summaryTitle developers should typically use the `headerTitle` attribute to show a different title in the column header button than the title used elsewhere.
  com.smartgwt.client.widgets.calendar.events.EventHoverHTMLHandler.onEventHoverHTML(EventHoverHTMLEvent) Please use setEventHoverHTMLCustomizer instead, this will be removed in a future release.
  com.smartgwt.client.widgets.grid.ListGrid.openRecordDetailGrid(ListGridRecord, DataSource) use `ListGrid.setCanExpandRecords(Boolean)` with `ListGrid.setExpansionMode(com.smartgwt.client.types.ExpansionMode)`, or override `ListGrid.getExpansionComponent(ListGridRecord)`
  com.smartgwt.client.widgets.grid.ListGrid.openRecordEditor(ListGridRecord) use `ListGrid.setCanExpandRecords(Boolean)` with `ListGrid.setExpansionMode(com.smartgwt.client.types.ExpansionMode)`, or override `ListGrid.getExpansionComponent(ListGridRecord)`
  com.smartgwt.client.widgets.chart.FacetChart.setAutoRotateLabels(Boolean) As of Smart GWT 9.0 this property is replaced by the property `rotateLabels`. Setting rotateLabels to "auto" is equivalent to setting autoRotateLabels to `true`. Setting rotateLabels to "never" is equivalent to setting autoRotateLabels to `false`.
  com.smartgwt.client.widgets.calendar.Calendar.setCanDeleteEvents(Boolean) in favor of `canRemoveEvents`
  com.smartgwt.client.widgets.layout.PortalLayout.setCanResizeRows(Boolean) Use `canResizePortlets` instead.
  com.smartgwt.client.widgets.form.DynamicForm.setCellSpacing(int) use `DynamicForm.setCellPadding(int)` instead
  com.smartgwt.client.util.DateUtil.setDateInputFormatter(DateInputFormatter) in favor of setDateParser()
  com.smartgwt.client.widgets.form.fields.TimeItem.setDisplayFormat(TimeDisplayFormat) Use `TimeItem.getTimeFormatter()` instead.
  com.smartgwt.client.widgets.form.fields.TimeItem.setDisplayFormat(TimeFormatter) Use `TimeItem.setDisplayFormat(TimeDisplayFormat)` instead.
  com.smartgwt.client.widgets.grid.ListGridField.setEditorType(FormItem) Renamed to `ListGridField.setEditorProperties(FormItem)`. You can also consider using `ListGridField.setEditorType(Class)` or `ListGridField.setEditorType(String)` instead.
  com.smartgwt.client.widgets.form.fields.FormItem.setEditorType(FormItem) Renamed to `FormItem.setEditorProperties(FormItem)`. You can also consider using `FormItem.setEditorType(Class)` or `FormItem.setEditorType(String)` instead.
  com.smartgwt.client.data.DataSourceField.setEditorType(FormItem) Renamed to `DataSourceField.setEditorProperties(FormItem)`. You can also consider using `DataSourceField.setEditorType(Class)` or `DataSourceField.setEditorType(String)` instead.
  com.smartgwt.client.data.SimpleType.setEditorType(FormItem) Renamed to `SimpleType.setEditorProperties(FormItem)`. You can also consider using `SimpleType.setEditorType(Class)` or `SimpleType.setEditorType(String)` instead.
  com.smartgwt.client.widgets.grid.ListGridField.setFilterEditorType(FormItem) Renamed to `ListGridField.setFilterEditorProperties(FormItem)`. You can also consider using `ListGridField.setFilterEditorType(Class)` or `ListGridField.setFilterEditorType(String)` instead.
  com.smartgwt.client.util.DateUtil.setFormatter(String) As of Smart GWT 5.5 use the static methods `Date.setNormalDisplayFormat` and `Date.setShortDisplayFormat` to set default formatters for all dates
  com.smartgwt.client.widgets.DateChooser.setHeaderHeight(Integer) in favor of `navigationLayoutHeight`
  com.smartgwt.client.widgets.DateChooser.setNavigationLayoutHeight(int) in favor of `navigationLayoutHeight`
  com.smartgwt.client.util.DateUtil.setNormalDateDisplayFormat(DateDisplayFormat) This method is deprecated in favor of `DateUtil.setNormalDateDisplayFormatter(DateDisplayFormatter)`.
  com.smartgwt.client.widgets.form.fields.SelectItem.setPickListFilterCriteriaFunction(FilterCriteriaFunction) in favor of `SelectItem.setPickListFilterCriteriaFunction(FormItemCriteriaFunction)`
  com.smartgwt.client.widgets.form.fields.ComboBoxItem.setPickListFilterCriteriaFunction(FilterCriteriaFunction) in favor of `ComboBoxItem.setPickListFilterCriteriaFunction(FormItemCriteriaFunction)`
  com.smartgwt.client.data.DataSourceField.setReadOnlyEditorType(FormItem) Renamed to `DataSourceField.setReadOnlyEditorProperties(FormItem)`. You can also consider using `DataSourceField.setReadOnlyEditorType(Class)` or `DataSourceField.setReadOnlyEditorType(String)` instead.
  com.smartgwt.client.data.SimpleType.setReadOnlyEditorType(FormItem) Renamed to `SimpleType.setReadOnlyEditorProperties(FormItem)`. You can also consider using `SimpleType.setReadOnlyEditorType(Class)` or `SimpleType.setReadOnlyEditorType(String)` instead.
  com.smartgwt.client.widgets.Canvas.setResizeFrom(String...) use `#setResizeFrom(EdgeName)` instead.
  com.smartgwt.client.util.DateUtil.setShortDateDisplayFormat(DateDisplayFormat) This method is deprecated in favor of `DateUtil.setShortDateDisplayFormatter(DateDisplayFormatter)`.
  com.smartgwt.client.util.DateUtil.setShortDatetimeDisplayFormat(DateDisplayFormat) This method is deprecated in favor of `DateUtil.setShortDatetimeDisplayFormatter(DateDisplayFormatter)`.
  com.smartgwt.client.widgets.form.fields.ComboBoxItem.setSort(SortSpecifier[]) in favor of `ComboBoxItem.setPickListSort(SortSpecifier[])` where full documentation can be read.
  com.smartgwt.client.widgets.grid.ListGridField.setSummaryTitle(String) Rather than customizing the summaryTitle developers should typically use the `headerTitle` attribute to show a different title in the column header button than the title used elsewhere.
  com.smartgwt.client.widgets.calendar.Calendar.setTimeFormatter(TimeFormatter) use `Calendar.setTimeFormatter(TimeDisplayFormat)` instead.
  com.smartgwt.client.data.DataSourceField.setType(DataSource) use #setTypeAsDataSource
  com.smartgwt.client.util.DateUtil.toPrettyString() As of Smart GWT 5.5 use `Date.toShortDate` instead