org.netbeans.modules.editor.lib2/1 1.43.1 10

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 line, int column, int length, JTextComponent component)
          Bind given component and given document together.
static void bindComponentToDocument(Document document, int offset, int length, JTextComponent component)
          Bind given component and given document together.
static void bindComponentToFile(FileObject fileObject, int line, int column, int length, JTextComponent component)
          Bind given component and given file 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

bindComponentToFile

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

Parameters:
fileObject - to bind
line - an index (zero based) of the line where to place the component's content
column - position (number of characters) at the line where to place the content
length - how many characters replace from the original file
component - component to bind
Since:
1.24

bindComponentToDocument

public static void bindComponentToDocument(Document document,
                                           int line,
                                           int column,
                                           int length,
                                           JTextComponent component)
Bind given component and given document together.

Parameters:
document - to bind
line - an index (zero based) of the line where to place the component's content
column - position (number of characters) at the line where to place the content
length - how many characters replace from the original document
component - component to bind
Since:
1.24

org.netbeans.modules.editor.lib2/1 1.43.1 10

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.