Several containers for same TextFlow

I have a scenario quite complex, but I should be able to see what is going wrong here... the question is on the very last line.

I am building an application where within a Publisher users can have and edit text, (using things like resize handles and the EditManager for position and selection/typing). The application has a strict application of the MVC and I am using a system of overall cancellation through orders for each edition, the text works through a central mechanism instead of using the UndoManager class directly. I'm also generating thumbnail images of this "container" after a certain period of time after the activity of the user, indeed to produce 2 views of the same data.

The problem this causes is that each object TextFlow is now used by two containers (I use a "TextElementRenderer" as a class of container, which takes a TextFlow object and using the TLF draws the text). So she makes only actually assigned (in my case the thumbnail that lives inside a TileList component that allows you to switch between editors) in the last.

To avoid this I could just copy clone/depth of the TextFlow, but because of the above approach I need a unique TextFlow to exist so that a change updated all and I'm also editing it via a properties panel (bold/italic, etc.), who lives elsewhere in the Visual hierarchy (I have a certain types of items outside of text that can be placed on the stage and many signs of property in this system for) respond to them).

So is there a way to allow 2 containers to a TextFlow?

Thanks for your reply, I'm glad I'm not only missed something. I'm done with a fairly clean solution that 1 single container has to be actively editing the model (according to the focus), so if I have 2 containers both using the template to one that is not actively editing (the tile in this case) can recreate clones whenever the active container updates the text because it is just displaying the TextFlows and not really what allows editing directly to the user via a keyboard. mouse/EditManager.

It is not as effective as detection of changes to a single TextFlow instance but it works fast enough for most scenarios.

The properties panel is not really affected because it can still grab a reference to the TextFlow EditManager and work on it from there.

Speaking of which, I think also the docs could better promote the method of Selection / (Edit) Manager.getCommonCharacterFormat () because it took awhile to find it and it is necessary as soon as you start to implement things like bold/italic/etc. buttons (where the TextFlow containing loses focus) and the pointFormat is cancelled as soon as you click the button (because the development change/loss of carat).

Tags: Adobe Open Source

Similar Questions

  • I have a laptop on vista home-use. When you look in Control Panel - be uninstall, should there be several entries for SQL server, or one or none?

    I have a laptop on vista home-use.  When you look in the control panel - and then to uninstall, should there be several entries for SQL server, or one or none?  Each entry seems to have a different digital denotation, but apparently I should have only one entry maximum.

    The reason that I ask is that I have had problems in the software.  I want to uninstall everything that is not supposed to be there.

    Some lines of programs listed show information... some lines are completed.

    When you click on a line that is complete, I am allowed the usuall to uninstall, options etc.

    When you click on a line that is not complete, I'm not allowed the option uninstall.

    The Compact Edition and the full SQL Server can be installed at the same time without any problems. I saw SQL Server2005 apparently installed by a manufacturer, perhaps to support some software they have grouped in. He could have an Acer.

    I do not know what cause the problem with the uninstall option is not available. Information to fill in these fields are in the registry.

    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall if you want to watch.

    It could be the result of a broken uninstall or a bad registry cleaner. I'm not aware of anything that would fix this. You can try this http://support.microsoft.com/mats/Program_Install_and_Uninstall

    but you may have to reinstall programs later.

    You need two redistributable Visual C++ if you have programs that need it, which is likely. They had several updates that fits into the list programs. I have two for 2005 and six for 2008.

  • What is recent vs vs document download. clydeneeley, etc.  I can't find the file I've worked before.  There are several of the same name.

    What is recent vs vs document download. clydeneeley, etc.  I can't find the file I've worked before.  There are several of the same name.

    It's up to you to choose carefully where to save the file and choose the name carefully. If you don't do this, you will never find the file. But try using your Mac or Windows to search for the name.

  • APEX with Oracle Containers for J2EE

    database: Oracle 11g Release 2
    operating system: Windows Vista
    Java application server: Oracle Containers for J2EE (OC4J)
    HTTP server: Oracle Application Express Listener

    I'm trying to get Oracle Application Express Listener to run using Oracle for J2EE (OC4J) containers. As I was doing this, I noticed that the option Oracle Containers that I try to use would not actually work with APEX, so I need to know if he can or cannot be used. Also, I try to get the Oracle Containers 'oc4j' command works, and I can't do that because I need to set JAVA_HOME and ORACLE_HOME, but I don't know how.

    For the Oracle Application Express listener, the documents indicate that we can run in stand-alone mode, or run using a Java Enterprise Edition application server. Choice was made to run using an application server Java Enterprise Edition and based on that there are three options:
    1 oracle WebLogic Server
    2 oracle GlassFish Server
    3 oracle Containers for J2EE (OC4J)

    Choice was made to see option #3, Oracle Containers for J2EE (OC4J).

    The listener APEX 'Guide installation and Developer', there is a link for containers of Oracle to J2EE (OC4J), so I followed the link to the Version "containers for J2EE autonomous distribution - Production versions of Oracle, ' 10.1.3.5.0 and downloaded and started working on the installation. But just recently, I noticed that on the same page it says "NOTE: standalone OC4J is purely for use in a standalone environment.» It cannot be used to replace the OC4J running in ANY existing installation of Oracle Application Server 10 g".

    TWO QUESTIONS: If it cannot be used, then why not option #3 Oracle Containers for J2EE (OC4J) even an option? And why the "install and Developer's Guide ' takes us to this place to download Oracle Containers for Distributions Standalone J2EE?

    When I first came to this page, I did not notice what I did just notice, so I downloaded and started working on an installation of Oracle containers. To use it, we must set two environment variables ORACLE_HOME and JAVA_HOME. Because these environment variables are not defined, whenever I try to execute a command, like 'oc4j-start' or 'oc4j - help', I get the following error:
    C:\Oracle\oc4J2EE_extended\bin > oc4j - start
    Error: JAVA_HOME environment Variable is not defined.
    We can run java.

    I need to get the oc4j command works. I'm running on Windows Vista. I tried to add "C:\Program Files\Java\jdk1.6.0_27\bin;" the environment variable path, but that did not work. He, however, has allowed me to easily use the command "javac" to compile a java source file in a .class file.

    Then, I tried these two statements in the command line:
    C:\ > SET JAVA_HOME = C:\Program Files\Java\jdk1.6.0_27\bin
    C:\ > SET ORACLE_HOME = C:\Oracle\oc4J2EE_extended

    I am tired and then the command oc4j again, and it still didn't work.

    QUESTION: On Windows Vista, how to set ORACLE_HOME and JAVA_HOME so that the oc4j command works?

    Summary:
    1 can I use Oracle Containers for J2EE (OC4J) with Oracle Application Express Listener?
    2. If Yes, then I use the correct version, because the download page says that it "can NOT be used to replace the OC4J running in ANY existing installation of Oracle Application Server 10 g."
    3. How do you define the ORACLE_HOME and JAVA_HOME on a Windows Vista operating system?
    4. How can I get the oc4j command works?

    I let the ORACLE_HOME variable systemic intact (i.e. on the value of the database) and set the local value for the variable in the script to start for the OC4J. So if you use oc4j.cmd, you could put a whole script, like start_oc4j.cmd which could look like this:

    SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26
    SET ORACLE_HOME=D:\oracle\oc4j_extended_101350
    "%ORACLE_HOME%"\bin\oc4j.cmd -start
    

    And you can start your OC4J with this script wrapper without disturbing the system wide ORACLE_HOME.

    -Udo

  • How bundle touch and non touch build for same OS version (5.0) for appworld

    Hi all

    I'm new in Appworld applications filed, please help me...

    How to package touch and non touch build for same OS version (5.0) for appworld?

    Thank you.

    Alaka


  • OptionsProvider: Options screen displays several entries for app

    Hello

    I have 2 classes in my application (say hand and ConfigProvider). The ConfigProvider implements the OptionsProvider. Start the application, the instantiatesthe ConfigProvider hand. The ConfigProvider registers with the OptionsManager.

    When I run the application several times, I see several entries for my application screen blackberry options! The strange thing is that the number of entries that added to the screen options is not proportional to the number of times that I run the application. The behavior is very random. Sometimes I just get 2 entries and then left to 2, however when I run the application.

    The documentation for the register call, I know it will only work for once.

    If someone has come across something like this before? Can anyone help me regarding this?

    Kind regards

    TEJ

    But after a device is reset, your provider instance Options will have been deleted, not in any case this is the desired behavior.  Resetting the device deletes RuntimeStore.

  • I bought one copy of Windows 7 Ultimate, 1 pc. Now, I need to get 6 several licenses for this copy, how can I do?

    I bought one copy of Windows 7 Ultimate, 1 pc.  Now, I need to get 6 several licenses for this copy, how can I do?

    You purchase 6 additional keys on the Microsoft Store, simply specify the quantity:

    http://www.Microsoft.com/Windows/buy/default.aspx

    http://Windows.Microsoft.com/en-us/Windows7/get-a-new-Windows-product-key

  • I pay for several months for a subscription, but the program propose to install only the demo version of the software.

    I pay several months for a subscription cloud creative but the program offers me to install only demo version of the software. Why what is happening ?

    Hello

    Please see the below help documents:

    Applications creative Cloud back in test mode after an update until 2015 for CC

    Solutions to connection errors, activation and connection with creative Cloud applications and Creative Suite

    Kind regards

    Sheena

  • When I send several documents for signature, how can we separate these documents again once I got the signature?

    When I send several documents for signature, how can we separate these documents again once I got the signature for each of them. Its way easier if I send all together, because the signatory needs to sign once and then just click on the other signature fields, but if I separate documents, how I divide again?

    Hello Anna,

    If you have a professional account, there is a feature that you can enable to recover separate documents. You can go to the account-> account setting-> general framework 'Keep the separate documents' and select Save.

    Kind regards

    -Usman

  • Is it possible to duplicate a link to the page on several pages, for example in a table of contents?

    Is it possible to duplicate a link to the page on several pages, for example in a table of contents?  I have a 140 document and each page needs a link to the table of contents.  I am familiar with how to add the link on each page, but I hope that there is a way to reproduce it, save me time.

    Are you really something under Label, on the Options tab?

  • Is there a tool or function (in Illustrator or InDesign) that selects any form and 'punches' a 'hole' of this form down through several objects for the paper or the work plan?

    Is there a tool or function (in Illustrator or InDesign) that selects any form and 'punches' a 'hole' of this form down through several objects for the paper or the work plan?

    Your objects punch must be in a large group; It will cut through all that is below.

    Create the shape you want to cut and set it to black Uni. Select your group and your form and (in the transparency palette), click make mask.

    Uncheck the Clip, and then return to the palette.

  • The error message "no more virtual tiles can be allocated" appears when I try to use the effects in the quick edit mode in my 13 elements. The OK wand has to press several times for loading all effects models. The error returns when selecting th

    The error message "no more virtual tiles can be allocated" appears when I try to use the effects in the quick edit mode in my 13 elements. The OK wand has to press several times for loading all effects models. The error returns when you select the particular model.

    The problem does not appear, if PH 13 items is run in administrator mode.

    The available computer resources are rather big enough: INTEL CPU i7 4 cores, 16 GB RAM, 1 TB HDD + 32 GB SSD, Windows 8.1.

    Please, advice how to fix this problem? Perhaps, there is patch or update available?

    I had this problem with some of the choices menu in PSE13 when my drive to work was only a SSD with 53 GB of free space. I assigned a second disc of work (my data disc with ~ 2 TB of free space) and the error disappeared.

    Scratch disk settings can be found under preferences / Performance.

  • Several renditions for iPhone 3/4 and iPhone 5

    I need to create a folio iPhone app only viewer with several renditions for iPhone 3/4 and iPhone 5. What is the best way to go about this?

    You cannot create a unique folio for iPhone Viewer. You will need to create a multi-folio Viewer, and it must be an iPad + iPhone combined. There is no option for iPhone only.

  • How can I select several values for popup LOV

    Hello
    I need to select several values for popup lov. Is it possible to select several values from popup lov


    Concerning
    Veronica B

    Check your page now, added a javascript in shared components file > images and a css in the components share > cascading style sheets

    I used the plugin below
    http://www.erichynds.com/jQuery/jQuery-UI-MultiSelect-Widget/

  • Problem in passing several Arguments for simultaneous program

    Hello

    I need to pass two stamped in my simultaneous program

    but I am facing problem while adding the second parameter in the code below

    Please suggest how to pass several parameters for the simultaneous program
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        cpAgrs.addElement(addId);
        System.out.println("Args"+ cpArgs);
    It's my submission of application code
        public int submitRequest(String shipmentId, String addId) throws Exception {  
        try {
          OADBTransaction tx = (OADBTransaction)getDBTransaction();
        java.sql.Connection pConncection = tx.getJdbcConnection();
        ConcurrentRequest cr = new ConcurrentRequest(pConncection);
            cr.addLayout("XXAPL", "XXAPLPORMSD", "en", "US", "RTF");
        String applnName = new String("XXAPL"); 
        System.out.println("ApplName"+ applnName);
        String cpName = new String("XXAPLPORMSD"); 
        System.out.println("Concc Name"+ cpName);
        String cpDesc = null;
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        cpAgrs.addElement(addId);
        System.out.println("Args"+ cpArgs);
         
            int requestId = cr.submitRequest(applnName, cpName,cpDesc, null,  false, cpArgs);        
    
        tx.commit();    
    
        return requestId;
    
        } 
         
        catch (RequestSubmissionException e) {
        OAException oe = new OAException(e.getMessage());
        oe.setApplicationModule(this);
        throw oe;
    
        }
            catch(Exception exception)
            {
            throw OAException.wrapperException(exception);
            }
    
        }
    Krishna

    I did most of the changes. IAM do not know why the error is come

    This is the reason why...

    It should be cpA rg s

    NOT

    cpA gr s

    Thank you
    -Anil
    http://oracleanil.blogspot.com

Maybe you are looking for

  • Firefox can not be updated and do not be installed (no action after unpacking the file or the program update)

    Hi all I was unable to update Firefox since Version 17.0, each update attempt failed. The automatic update feature still reported that the update has been without success/failure, then download the new version of Firefox and then try to install it si

  • Profiles for contacts

    Maybe I'm blind just for now, but I can't seem to figure out how to display my contacts profiles. For example, if one of them has a long status message, to get a glimpse of their profile and display the message of State together. I hope that this fea

  • Compaq - 15-f100ur: Compaq - 15-f100ur removal/replacement HARD drive

    Nice day!I want to change my HARD drive, but it doesn't have its own coverage, it is immured in the body of the laptop.Don't know how to take it apart.Unscrew all the screws, even under the keyboard, took out the dvd - rom, started to pry with a scre

  • counter exit signs

    I am currently using 6259 PCI which has 2 outputs of meter. Are there signs of counter that I can add to get a 5-8 additional counter output? All those I see on the Web site of NOR and Measurement Computing have two outputs maximum.

  • failure of DST short message

    Pavilion G7 - 1017cl: extremely slow bootiing - Diagnostics showed short DST failure ID: 9FU77V-5JD79K-XD0147-60TL03; PRODUCT ID: LF181UA #ABA. What is the HARD drive or video? I can access the safemode, OK, but normally have problems bootiing upward