org.netbeans.modules.editor.lib2/1 1.17.0 2

org.netbeans.api.editor
Class DialogBinding

java.lang.Object
  extended by org.netbeans.api.editor.DialogBinding

public final class DialogBinding
extends Object


Constructor Summary
DialogBinding()
           
 
Method Summary
static void bindComponentToDocument(Document document, int offset, int length, JTextComponent component)
          Bind given component and given document together.
static void bindComponentToFile(FileObject fileObject, int offset, int length, JTextComponent component)
          Bind given component and given file together.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogBinding

public DialogBinding()
Method Detail

bindComponentToFile

public static void bindComponentToFile(FileObject fileObject,
                                       int offset,
                                       int length,
                                       JTextComponent component)
Bind given component and given file together.

Parameters:
fileObject - to bind
offset - position at which content of the component will be virtually placed
length - how many characters replace from the original file
component - 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 bind
offset - position at which content of the component will be virtually placed
length - how many characters replace from the original document
component - component to bind

org.netbeans.modules.editor.lib2/1 1.17.0 2

Built on November 7 2009.  |  Portions Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.