Deprecated API
Contents
-
Deprecated ClassesClassDescriptionThis is transitional scaffolding produced by the import-swap. It faithfully preserves a Swing anti-pattern (a shared mutable formatter) so the app runs; hand-written and stage-3 code should format dates with
com.vaadin.swingbridge.surrogates.util.BrowserDateUtils.formatAsISODate/formatAsDateorDateTimeFormatterinstead, which are stateless.Transitional scaffolding produced by the import-swap. It keeps migratedCalendarcode running with the right zone; hand-written and stage-3 code should usejava.time(e.g.LocalDate/ZonedDateTimewithcom.vaadin.swingbridge.surrogates.BrowserTimeZone.get()) orcom.vaadin.swingbridge.surrogates.SHelper, which are immutable andZoneId-consistent.seeCalendar.
-
Deprecated FieldsFieldDescriptionreplaced by
java.awt.Cursor.CROSSHAIR_CURSOR.replaced byjava.awt.Cursor.DEFAULT_CURSOR.replaced byjava.awt.Cursor.E_RESIZE_CURSOR.replaced byjava.awt.Cursor.HAND_CURSOR.replaced byjava.awt.Cursor.MOVE_CURSOR.replaced byjava.awt.Cursor.N_RESIZE_CURSOR.replaced byjava.awt.Cursor.NE_RESIZE_CURSOR.replaced byjava.awt.Cursor.NW_RESIZE_CURSOR.replaced byjava.awt.Cursor.S_RESIZE_CURSOR.replaced byjava.awt.Cursor.SE_RESIZE_CURSOR.replaced byjava.awt.Cursor.SW_RESIZE_CURSOR.replaced byjava.awt.Cursor.TEXT_CURSOR.replaced byjava.awt.Cursor.W_RESIZE_CURSOR.replaced byjava.awt.Cursor.WAIT_CURSOR.
-
Deprecated MethodsMethodDescriptionas of JDK 1.1, replaced by
CheckboxGroup.getSelectedCheckbox()— but this is the implementation, not the wrapperas of JDK 1.1, replaced byCheckboxGroup.setSelectedCheckbox(Checkbox)— but this is the implementation, not the wrapperas of Java 2 v1.1, useChoice.add(String)— but this is the implementation, not the wrapperas of JDK 1.1, replaced byChoice.getItemCount()— but see its note: this is the implementation, not the wrapperreplaced byList.add(String)— but this is on the invoked pathreplaced byList.add(String, int)— but this is the implementation, not the wrapperas of JDK 1.1, replaced byList.isMultipleMode()— but this is the implementationas of JDK 1.1, replaced byList.removeAll()— but this is the implementationas of JDK 1.1, replaced byList.getItemCount()— but this is the implementation, not the wrapperreplaced byList.remove(int)— but this is on the invoked pathas of JDK 1.1, and the JDK's own note says it is expected to become package-private — but it is public today and is the implementation, not the wrapperas of JDK 1.1, replaced byList.isIndexSelected(int)— but this is the implementationas of JDK 1.1, replaced byList.getMinimumSize()as of JDK 1.1, replaced byList.getMinimumSize(int)as of JDK 1.1, replaced byList.getPreferredSize()as of JDK 1.1, replaced byList.getPreferredSize(int)as of JDK 1.1, replaced byList.setMultipleMode(boolean)— but this is the implementation, and it holds the no-change guardas of JDK 1.1, replaced byScrollbar.getUnitIncrement()as of JDK 1.1, replaced byScrollbar.getBlockIncrement()as of JDK 1.1, replaced byScrollbar.getVisibleAmount()as of JDK 1.1, replaced byScrollbar.setUnitIncrement(int)as of JDK 1.1, replaced byScrollbar.setBlockIncrement(int)As of JDK 1.1, replaced byScrollPane.doLayout(). Retained becausedoLayout()calls it and user code overrides it — AWT-era code hooks layout here.Legacy mask form; preferToolkit.getMenuShortcutKeyMaskEx().triage the call site toJFileChooser.showOpenDialog(Component)(the app reads the file) orJFileChooser.showSaveDialog(Component)(the app writes it). To keep a custom label, callJFileChooser.setDialogType(int)with the matching type and only thenJFileChooser.setApproveButtonText(String): changing the type resets the label, as in the JDK. The deprecation is deliberate divergence from the JDK, and is what makes an untriaged call site visible at compile time rather than only when someone walks that path.per the JDK. PreferJPasswordField.getPassword(): this returns an immutableStringthat cannot be zeroed after use.per the JDK; seeJPasswordField.getText().array form retained for API compatibility; theTransferHandler.TransferSupportform is canonical.component+transferable form retained for API compatibility.