APIdia Launch Partner
Top Description Constructors Methods
jdk.editpad

public Class EditPadProvider

extends Object
implements BuildInEditorProvider
Class Inheritance
All Implemented Interfaces
jdk.internal.editor.spi.BuildInEditorProvider
Imports
java.util.concurrent.CountDownLatch, java.util.function.Consumer, javax.swing.SwingUtilities, jdk.internal.editor.spi.BuildInEditorProvider

Defines the provider of an Edit Pad implementation.
Author
Robert Field

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
edit(String
the label string for the Edit Pad window, or null, for default window label
windowLabel
,
String
the source to load in the Edit Pad
initialText
,
Consumer<String>
a handler for changed source (can be sent the full source)
saveHandler
,
Consumer<String>
a handler for unexpected errors
errorHandler
)

Implements jdk.internal.editor.spi.BuildInEditorProvider.edit.

Create an Edit Pad minimal editor.

public int
rank()

Implements jdk.internal.editor.spi.BuildInEditorProvider.rank.

Returns: the rank of a provider, greater is better.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EditPadProviderback to summary
public EditPadProvider()

Method Detail

editback to summary
public void edit(String windowLabel, String initialText, Consumer<String> saveHandler, Consumer<String> errorHandler)

Implements jdk.internal.editor.spi.BuildInEditorProvider.edit.

Create an Edit Pad minimal editor.

Parameters
windowLabel:String

the label string for the Edit Pad window, or null, for default window label

initialText:String

the source to load in the Edit Pad

saveHandler:Consumer<String>

a handler for changed source (can be sent the full source)

errorHandler:Consumer<String>

a handler for unexpected errors

Annotations
@Override
rankback to summary
public int rank()

Implements jdk.internal.editor.spi.BuildInEditorProvider.rank.

Returns:int

the rank of a provider, greater is better.

Annotations
@Override