Changeset 286 for trunk/src/org/expeditee/items
- Timestamp:
- 08/29/08 08:17:54 (16 years ago)
- Location:
- trunk/src/org/expeditee/items
- Files:
-
- 6 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 } -
trunk/src/org/expeditee/items/ItemUtils.java
r247 r286 457 457 458 458 for (Item i : toCopy) { 459 459 //Dont copy parts of a vector 460 if(!i.hasPermission(Permission.copy)) 461 continue; 462 460 463 // BROOK 461 464 if (i instanceof WidgetCorner) { // dont add these -
trunk/src/org/expeditee/items/Text.java
r282 r286 275 275 276 276 public void setAttributeValue(String value) { 277 277 AttributeValuePair avp = new AttributeValuePair(getText(),false); 278 avp.setValue(value); 279 setText(avp.toString()); 278 280 } 279 281 -
trunk/src/org/expeditee/items/widgets/DataFrameWidget.java
r228 r286 1 1 package org.expeditee.items.widgets; 2 2 3 import java.awt.Color; 4 import java.awt.Graphics; 3 5 import java.util.Collection; 4 6 import java.util.HashSet; 5 7 6 8 import javax.swing.JComponent; 7 import javax.swing.JPanel;8 9 9 10 import org.expeditee.gui.Frame; … … 131 132 } 132 133 } 133 134 //STUFF FROM HEAVY_DUTY_INTERACTIVE_WIDGET CLASS 135 136 // @Override 137 // public int getLoadDelayTime() { 138 // // TODO Auto-generated method stub 139 // return 0; 140 // } 141 // 142 // @Override 143 // protected float loadWidgetData() { 144 // // TODO Auto-generated method stub 145 // return 0; 146 // } 147 // 148 // @Override 149 // protected void saveWidgetData() { 150 // // TODO Auto-generated method stub 151 // 152 // } 153 // 154 // @Override 155 // protected void tempUnloadWidgetData() { 156 // // TODO Auto-generated method stub 157 // 158 // } 159 // 160 // @Override 161 // protected void unloadWidgetData() { 162 // // TODO Auto-generated method stub 163 // 164 // } 165 // 166 // public boolean doesNeedSaving() { 167 // // TODO Auto-generated method stub 168 // return false; 169 // } 170 // 171 // public String getSaveName() { 172 // // TODO Auto-generated method stub 173 // return null; 174 // } 134 135 protected void paintInFreeSpace(Graphics g) { 136 super.paintInFreeSpace(g); 137 g.setFont(((Text)getSource()).getFont()); 138 g.setColor(Color.WHITE); 139 g.drawString(this.getClass().getSimpleName(), getX() + 10, getY() + 20); 140 141 } 175 142 } -
trunk/src/org/expeditee/items/widgets/InteractiveWidget.java
r282 r286 19 19 import javax.swing.SwingUtilities; 20 20 21 import org.expeditee. gui.AttributeUtils;21 import org.expeditee.actions.Actions; 22 22 import org.expeditee.gui.Browser; 23 23 import org.expeditee.gui.DisplayIO; … … 184 184 String classname = tokens[0]; 185 185 if (classname.charAt(0) == '$') 186 classname = "org.expeditee.items.widgets." + classname.substring(1);186 classname = Actions.getClassName(classname.substring(1)); 187 187 // Attempt to locate the class using reflection 188 188 Class<?> iwclass = findIWidgetClass(classname); -
trunk/src/org/expeditee/items/widgets/charts/TimeSeries.java
r284 r286 211 211 .length()) { 212 212 df = new SimpleDateFormat(FrameKeyboardActions.LONG_DATE_FORMAT); 213 } else { 213 } else if (dateString.length() <= FrameKeyboardActions.TIME_DATE_FORMAT.length()) { 214 df = new SimpleDateFormat(FrameKeyboardActions.TIME_DATE_FORMAT); 215 }else { 214 216 df = new SimpleDateFormat(FrameKeyboardActions.SHORT_DATE_FORMAT); 215 217 }
Note:
See TracChangeset
for help on using the changeset viewer.