Changeset 286 for trunk/src/org/expeditee/items/Item.java
- Timestamp:
- 08/29/08 08:17:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Item.java
r284 r286 192 192 dest._overlay = source._overlay; 193 193 dest._mode = source._mode;// SelectedMode.None; 194 //dest._highlightColor = source._highlightColor; 195 //dest.setHighlight(source.getHighlight()); 196 194 197 dest._visible = source._visible; 195 198 Frame parent = source.getParentOrCurrentFrame(); … … 234 237 235 238 private int _id; 239 240 private Item _editTarget = this; 236 241 237 242 private String _creationDate = null; … … 1831 1836 1832 1837 public int setHighlightColor(Color c) { 1838 if (!this.isVisible() && this.hasVector()) { 1839 for (Item i : this.getParentOrCurrentFrame().getVectorItems()) { 1840 if (i.getEditTarget() == this) { 1841 i.setHighlightColor(c); 1842 } 1843 } 1844 } 1833 1845 1834 1846 _highlightThickness = DEFAULT_HIGHLIGHT_THICKNESS; … … 1890 1902 public void setHighlightMode(HighlightMode mode, Color color) { 1891 1903 setHighlightColor(color); 1892 if (hasPermission(Permission.followLinks)) { 1904 if (hasPermission(Permission.followLinks) 1905 || getEditTarget().hasPermission(Permission.followLinks)) { 1893 1906 if (_mode != mode) { 1894 1907 _mode = mode; … … 2666 2679 } 2667 2680 } 2681 2682 /** 2683 * Sets the item to be pickup when the user attempts to pick this item up. 2684 * EditTarget has a value of 'this' by default but may be set to other 2685 * values if this item is on a vector. 2686 * 2687 * @param target 2688 * the item to be copied or picked up when the user attempts to 2689 * edit this item. 2690 */ 2691 public void setEditTarget(Item target) { 2692 _editTarget = target; 2693 } 2694 2695 public Item getEditTarget() { 2696 return _editTarget; 2697 } 2668 2698 }
Note:
See TracChangeset
for help on using the changeset viewer.