org.netbeans.api.editor
Class DialogBinding
java.lang.Object
org.netbeans.api.editor.DialogBinding
public final class DialogBinding
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DialogBinding
public DialogBinding()
bindComponentToFile
public static void bindComponentToFile(FileObject fileObject,
int offset,
int length,
JTextComponent component)
- Bind given component and given file together.
- Parameters:
fileObject - to bindoffset - position at which content of the component will be virtually placedlength - how many characters replace from the original filecomponent - component to bind
bindComponentToDocument
public static void bindComponentToDocument(Document document,
int offset,
int length,
JTextComponent component)
- Bind given component and given document together.
- Parameters:
document - to bindoffset - position at which content of the component will be virtually placedlength - how many characters replace from the original documentcomponent - component to bind