Top Description Methods
jdk.internal.editor.spi

public Interface BuildInEditorProvider

Imports
java.util.function.Consumer

Defines the provider of a built-in editor.

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
)

Create a simple built-in editor.

public int

Returns:

the rank of a provider, greater is better.
rank
()

Method Detail

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

Create a simple built-in 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

rankback to summary
public int rank()
Returns:int

the rank of a provider, greater is better.