Ignore:
Timestamp:
02/13/14 22:59:29 (10 years ago)
Author:
ngw8
Message:

JFXBrowser - right clicking on a link attaches a text item to the cursor with an action to create a new frame containing a browser pointing to the linked page. Also works for linked images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/JfxBrowserActions.java

    r876 r887  
    153153         * @throws Exception
    154154         */
    155         public static void createFrameWithBrowser(Text link, String url) throws Exception {
     155        public static void createFrameWithBrowser(Item link, String url) throws Exception {
    156156                Frame frame = FrameIO.CreateNewFrame(link);
    157157                frame.removeAllItems(frame.getItems());
     158
    158159                link.setLink("" + frame.getNumber());
    159160                link.setAction(null);
    160161
    161162                // Create widget via text annotation
    162                 Text wt = frame.addText(10, 10, "@iw: org.expeditee.items.widgets.JfxBrowser " + (int) (FrameGraphics.getMaxFrameSize().getWidth() * 0.9) + " "
     163                frame.addText(10, 10, "@iw: org.expeditee.items.widgets.JfxBrowser " + (int) (FrameGraphics.getMaxFrameSize().getWidth() * 0.9) + " "
    163164                                + (int) (FrameGraphics.getMaxFrameSize().getHeight() * 0.9) + " : " + url, null);
    164165
Note: See TracChangeset for help on using the changeset viewer.