Changeset 199 for trunk/src/org/expeditee/gui/Frame.java
- Timestamp:
- 08/08/08 10:33:15 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Frame.java
r198 r199 198 198 public void setChanged(boolean value) { 199 199 // System.out.println(getName() + " " + value); 200 boolean oldValue = _change; 201 202 if(oldValue == value) 203 return; 204 200 205 _change = value; 201 206 202 207 if (_change) { 208 //Notify the frame listeners that the frame has changed 209 for(FrameListener fl: _listeners){ 210 fl.change(); 211 } 212 203 213 setBufferValid(false); 204 214 _saved = false; … … 288 298 } 289 299 } 290 if (removeTitle){300 if (removeTitle) { 291 301 items.remove(getTitleItem()); 292 302 } … … 1761 1771 String value = ""; 1762 1772 if (text.length() > 1 + i) { 1763 value = text.substring(i + 1).trim() .toLowerCase();1773 value = text.substring(i + 1).trim(); 1764 1774 } 1765 1775 item.setProcessedText(new String[] { attribute, value }); … … 1784 1794 } 1785 1795 1796 /** 1797 * Returns the annotation value in full case. 1798 * 1799 * @param annotation 1800 * the annotation to retrieve the value of. 1801 * @return the annotation item value in full case or null if the annotation 1802 * is not on the frame or has no value. 1803 */ 1786 1804 public String getAnnotationValue(String annotation) { 1787 1805 if (_annotations == null) … … 1799 1817 1800 1818 Map<String, Text> _annotations = null; 1819 1820 private Collection<FrameListener> _listeners = new LinkedList<FrameListener>(); 1801 1821 1802 1822 public void clearAnnotations() { … … 1926 1946 } 1927 1947 } 1948 1949 public void removeListener(FrameListener listener) { 1950 _listeners.remove(listener); 1951 } 1952 1953 public void addListener(FrameListener listener) { 1954 _listeners.add(listener); 1955 } 1928 1956 }
Note:
See TracChangeset
for help on using the changeset viewer.