1 19 20 package org.netbeans.modules.java.codegen; 21 22 import java.util.Collection ; 23 24 import org.openide.src.Element; 25 import org.openide.text.PositionBounds; 26 27 import org.netbeans.modules.java.bridge.Binding; 28 29 35 public interface TextBinding extends Binding { 36 38 public static final int BOUNDS_ALL = 0; 39 40 42 public static final int BOUNDS_JAVADOC = 1; 43 44 47 public static final int BOUNDS_HEADER = 2; 48 49 52 public static final int BOUNDS_BODY = 3; 53 54 public static final int BOUNDS_FIELD_TYPE = 4; 55 56 58 public static final int BOUNDS_PACKAGE = 10; 59 60 public static final int BOUNDS_SOURCE = 10; 61 62 65 public org.openide.src.Element getElement(); 66 67 71 public PositionBounds getElementRange(boolean defRange); 72 73 76 public Container getContainer(String containerType); 77 78 81 public void updateBounds(int boundsType, PositionBounds bounds); 82 83 87 public void linkAfter(TextBinding previousBinding); 88 89 91 public interface Container extends Binding.Container { 92 public void updateChildren(Collection members); 93 public boolean isEmpty(); 94 } 95 96 public interface ExElement extends javax.swing.text.Element { 97 public org.openide.text.PositionRef getDeclarationStart(); 98 } 99 } 100 | Popular Tags |