Changeset 539 for trunk/src/org/expeditee/items/widgets
- Timestamp:
- 11/27/13 10:58:55 (11 years ago)
- Location:
- trunk/src/org/expeditee/items/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/InteractiveWidget.java
r451 r539 30 30 import org.expeditee.items.ItemParentStateChangedEvent; 31 31 import org.expeditee.items.ItemUtils; 32 import org.expeditee.items.Text; 32 33 import org.expeditee.items.UserAppliedPermission; 33 import org.expeditee.items.Text;34 34 35 35 /** … … 1722 1722 } 1723 1723 1724 /** 1725 * Event called when the widget is left clicked while there are items attached to the FreeItems buffer 1726 * 1727 * @return true if event was handled (no pass through), otherwise false 1728 */ 1729 public boolean ItemsLeftClickDropped() { 1730 return false; 1731 } 1732 1724 1733 } -
trunk/src/org/expeditee/items/widgets/JfxBrowser.java
r537 r539 17 17 import javax.swing.JPanel; 18 18 19 import org.expeditee.gui.FreeItems; 19 20 import org.expeditee.items.Text; 20 21 … … 214 215 215 216 public void navigate(final String url) { 217 System.out.println(url); 216 218 try { 217 WebEngineLoad.invoke(WebViewGetEngine.invoke(this._browser.webview), url); 218 } catch (IllegalAccessException e) { 219 e.printStackTrace(); 220 } catch (IllegalArgumentException e) { 221 e.printStackTrace(); 222 } catch (InvocationTargetException e) { 223 e.printStackTrace(); 224 } 219 PlatformRunLater.invoke(null, new Runnable() { 220 @Override 221 public void run() { 222 try { 223 WebEngineLoad.invoke(WebViewGetEngine.invoke(JfxBrowser.this._browser.webview), url); 224 } catch (Exception e) { 225 e.printStackTrace(); 226 } 227 } 228 }); 229 } catch (Exception e) { 230 e.printStackTrace(); 231 } 232 } 233 234 @Override 235 public boolean ItemsLeftClickDropped() { 236 Text carried = null; 237 if((carried = FreeItems.getTextAttachedToCursor()) != null) { 238 this.navigate(carried.getText()); 239 return true; 240 } 241 return false; 225 242 } 226 243
Note:
See TracChangeset
for help on using the changeset viewer.