1 19 20 package org.netbeans.modules.xml.xam; 21 22 import java.beans.PropertyChangeListener ; 23 import javax.swing.event.UndoableEditListener ; 24 25 32 public interface Model<C extends Component<C>> extends Referenceable { 33 public static final String STATE_PROPERTY = "state"; 34 35 38 public void removeComponentListener(ComponentListener cl); 39 40 43 public void addComponentListener(ComponentListener cl); 44 45 48 public void addPropertyChangeListener(PropertyChangeListener pcl); 49 50 53 public void removePropertyChangeListener(PropertyChangeListener pcl); 54 55 58 void removeUndoableEditListener(UndoableEditListener uel); 59 60 63 void addUndoableEditListener(UndoableEditListener uel); 64 65 71 void removeUndoableRefactorListener(UndoableEditListener uel); 72 73 79 void addUndoableRefactorListener(UndoableEditListener uel); 80 81 85 void sync() throws java.io.IOException ; 86 87 90 boolean inSync(); 91 92 98 enum State { 99 VALID, 100 NOT_WELL_FORMED, 101 NOT_SYNCED 102 } 103 107 State getState(); 108 109 112 boolean isIntransaction(); 113 114 125 boolean startTransaction(); 126 127 132 void endTransaction(); 133 134 140 void addChildComponent(Component target, Component child, int index); 141 142 145 void removeChildComponent(Component child); 146 147 151 ModelSource getModelSource(); 152 153 } 154 | Popular Tags |