[How?] Text editor with hidden data

Im looking on a good way to make an small Text editor (visually the features of a JTextPane is ok for my needs), but I need to associate metadata with words or a group or words (ex. timestamps).
Any idea on how to accomplish this ?
thanks

SB. wrote:
I think that it's too soon to think on how to store those data. Once the editor designed, I could save the information in an xml, serialized class etc.. it doesnt really matter.
The easy part is to design all my classes to represents those Strings + metadata (my model).
I suppose that after that I could convert them to a document which I can use to display in any gui. BUT if I can't fit all those infos in a widget, I'll have to catch all keyboards/mouse events et manually apply those modifications on my model beforce creating new document to refresh the widget ? That part seem problematic to me..Huh?
You have a data structure. That data structure is mapped to a displayable format.
For example you could use XML for the data structure. Thus something like the following would be in it.
       <Line font="bold">
             <priority>3</priority>
             <text>This is a line</text>
       </Line>You then create a mapper that takes that and displays the value of the element "text" to the screen. Nothing else is displayed from that is displayed.. Your display mechanism would need to have a link between that line and the above xml so if someone changes that line then it gets put back in the xml.
In the above "priority" and "bold" simply represent other data type elements the rules of which depend on the needs of your application.
Note that the above depends on rules which might or might not be represented in the data structure. Maybe because they can't be or simply because it isn't worth the effort.
For instance what happens if the user puts a line feed in the middle of the displayed line? Does that create a new "Line" entity or is just an update to the existing "text" element?
Keep mind that XML is nothing but an example there are other ways to do this.

Similar Messages

  • Using Rich Text Editor with a Custom Attribute

    Hello All,
    Can anyone please tell me as how can I use the Rich Text Editor with a Custom Attribute?
    I want to create a custom attribute based on text datatype, but when entering the value for this attribute in a Custom Item, portal shows a normal textarea. I want that the user should see the Richt Text Editor.
    Thanks for help.
    Regards

    Hi,
    Can you tell me what steps you are using to produce this, and which Portal version you are using. When I tried it, I wasn't able to reproduce it. Here are my steps:
    1) Created Custom Item Type, based on Text, under
    Page Groups > Shared Objects > Item Types
    2) Selected Three attributes (Description, Name, Publish Date). Note Text and Display Name were already selected
    3) In Add Item Wizard, configured list to allow for my
    custom item type selection.
    4) Then I was able to see the Rich Text Editor when editin
    my custom item type.
    Regards,
    J.

  • Making Rich Text Editor with PHP in Dreamweaver  - Problem with CKEditor...

    Hi,
    I am developing a website in Dreamweaver and using the platform of PHP and MYSQL. I need to develop a Rich Text Editor just like the one I am typing at the moment. With my recent searches I have come across with CKEditor as one of the possibilities to add a Rich Text Editor to my website. I have seen older versions of CKEditor also known as FCKEditor which I believe unfortunatley is out of date and obsolete now (discontinued). I cannot find any of the downloads now from anywhere on the web.
    I can find FCKEditor tutorials with PHP,  but can not find CKEditor tutorials for PHP (when I try googling it, it always gives me FCKEditor page). Can anyone please help me and tell me if I can still make Rich Text Editor using CKEditor and PHP?
    If yes, please guide me how? Any tutorials or reading material will be very helpful.
    Regards,
    Bilal . Khan

    Yes, you absolutely can use CKEditor to create a rich text editor with PHP/MySQL.I have tried several editors and it's my choice.
    Here is a link to the documentation page:
    http://docs.cksource.com/
    CKFinder is also very good in conjunction with CKEditor. Although it costs $59/per website, it's better than the free alternatives.

  • Text editor with 15 lines

    Hi all,
    I have a requirement to create a text editor.
    I created a Text editor,but where i need only 15 lines to update into it .
    But it showing 22 lines and some times 30 lines .
    Anybody let me know how to update Text editor with 30 lines .
    Regards,
    Madhavi

    solved myself

  • Using third party Rich Text Editors with Portal Release 2 (9.0.2)

    Hi Everyone,
    We would like to use some third party Rich Text editor with portal as the Oracle Rich Text editor is fairly basic and it does not fulfill our business requirements.
    Some of the things we are hoping to accomplish by through this text editor (after customizing) are:
    Ability to select any page within the portal to add as link in the Text Editor.
    Ability to select images from the portal repository.
    Create HTML Tables.
    Support of copy/paste from Microsoft Word.
    I am looking for any suggestions or experiences on how this can be done.
    Thanks in advance..
    Niraj

    Niraj,
    There's a RTE posted on knowledge exchange (with source), in my folder.
    Re: Calendar PJC on French Keyboard
    Hi Everyone,
    We would like to use some third party Rich Text editor with portal as the Oracle Rich Text editor is fairly basic and it does not fulfill our business requirements.
    Some of the things we are hoping to accomplish by through this text editor (after customizing) are:
    Ability to select any page within the portal to add as link in the Text Editor.
    Ability to select images from the portal repository.
    Create HTML Tables.
    Support of copy/paste from Microsoft Word.
    I am looking for any suggestions or experiences on how this can be done.
    Thanks in advance..
    Niraj

  • How can I do a multiple record data merge, but specify that a specific text frame with variable data only merges on the first record?

    I'm doing a multiple record data merge, I have 2 frames both with variable data placed inside.
    I would like to specify that one of the text frames only merges once(first record) and the other frame multiple times for each record in the data file.
    Is it possible?
    I thought that perhaps if I place the text frame that must merge once on the master page, it would work.  But you are not allowed to place variable text on the master and on the document page.
    I'm going to try it through scripting next, but thought that perhaps there is an easier way that I'm not aware of.
    Thanks,
    Suzanne

    Suzanne,
    If you were trying to post a screen shot, you would need to return to the forum and post it using the "camera" icon at the top of the post editing windows.
    I use a plug-in from Em Software called InData. One of the benefits for what I do is there are no individual frames on a page to deal with post-merge. Individual frames are great for simple merges (address labels, post cards, etc.). But I typically do more other types of merges.
    That said, there is a drawback--one needs to come to an understanding of writing expressions that actually parse the incoming data. So in the spice price list example, that looks like:
    It's reasonably easy once one does it a few times. And it can be far more complicated. The above is from Em Software's samples that has been tweaked. The best thing I can recommend would be to download the trial and see for yourself. They are good at responding to specific questions if you get stumped.
    I imagine this all could be scripted somehow in ID. But I have no idea how and the plug-in just lets me keep working.
    Mike

  • How to start with Master data management

    Hi All,
    I want to start with Master Data Management. Can any one provide me proper material to get the knowledge on Master Data Management Integration. And What is the relationship between XI.and for starting MDM what all settings i have to do???
    Its really urget plz help me out.
    Thanks,
    Seema Khandelwal
    Message was edited by:
            Seema khandelwal

    Hi ..
    look at this documents
    /people/andreas.seifried/blog/2007/08/30/how-to-use-the-test-environment-of-the-mdm-enrichment-controller
    /people/harrison.holland5/blog/2006/11/27/mdm-syndication
    /people/harrison.holland5/blog/2007/01/22/testing-and-monitoring-an-interface-between-mdm-xi
    see this Wiki to find all the documentation on MDM:
    https://wiki.sdn.sap.com/wiki/display/HOME/MasterDataManagement
    Here, for the components you need to install:
    https://wiki.sdn.sap.com/wiki/display/HOME/MasterDataManagement+Components
    Others smart links are here:
    - sdn e-learning.
    https://www.sdn.sap.com/irj/sdn/mdm-elearning
    http://service.sap.com/installMDM for a
    you can use expression editor to do that:
    have a look at this guide on how dates can be calculated there
    with your field it can be very similar:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b025fab3-b3e9-2910-d999-a27b7a075a16
    for more details about expression editor:
    Calculation Fields chapter
    https://websmp108.sap-ag.de/~sapidb/011000358700006291622006E
    MDM 5.5 SP05 - ABAP API
    https://websmp101.sap-ag.de/~sapidb/011000358700000271902007E
    MDM 5.5 SP05 - ABAP API How To Guides (ZIP File)
    https://websmp101.sap-ag.de/~sapidb/011000358700000271912007E
    How to Identify Identical Master Data Records Using SAP MDM 5.5 ABAP APIs
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e060251e-b58d-2910-02a2-c9a1d60d9116

  • Replacing the Rich Text Editor with FCKeditor

    Hi,
    I've seen a few people mention that they've replaced Portals RTE with FCKeditor in the Portal 10.1.2 release. As ever Oracles documentation is scant (that's being generous) as to how to do this. If anyone has, can you give me an example of how you have modified your buildUIembed.html file.
    I've currently got this partially working, the new RTE is displaying, but the page won't submit. Portals JS is trying to .save() the RTE content, a method which it apparently doesn't support!
    Any help would be much appreciated.
    Regards
    Dan

    Hi Dan,
    Per the OracleAS Portal User's Guide (available at http://www.oracle.com/technology/documentation/appserver1012.html)
    Possibility of extending or replacing the seeded rich text editor
    You can customize the OracleAS Portal rich text editor to support your needs: from simple changes, for example, replacement of buttons on the editor's toolbar, to more complex changes, for example, replacement of the seeded editor with one of your own.
    Such changes involve altering the files that comprise the user interface and functions of the seeded rich text editor. This being the case, this feature is intended for advanced OracleAS Portal administrators. Additionally, you should be aware that future upgrades of OracleAS Portal may impact any modifications made to these files. Support for this feature is offered through the Portal Content Area discussion forum and not through Oracle Support;
    You may want to pose this question in that forum.
    Regards,
    Pete

  • Rich Text Editor with Custom Text Attribute

    Hello All,
    We are using the latest version of Oracle Portal 10G. I have a need to create custom Attributes of the type text to let people enter a lot of text. But when User are in edit mode of an item where this custom attribute is used, the Rich Text Editor is not shown for entering the Text for the Custom Text Attribute. It shows a normal html text area. Has anyone ever used RTE with Custom Attribute?
    I request you guys for help.
    Thanks.

    The Problem with the Custom Attribute is not solved, but I have now compromised with the Situation and now I am not using a Custom attribute.
    Rather, Now I am creating a Custom Item Type using Base Text Type (earlier i wanted to create custom item type at my own without any base item type). In this case now I will not be able to change the Lable of the RTE (that is "Text", when the Custom Item is in Edit Mode), but I hope that my users can understand that much.
    I have created a template for portal pages. In the Template I can edit the Region Properties. When I edit the Region property of the region where I want to display my Custom Items. I get two Tabs on the top, Main and Attributes/Style. ON the main tab I can tell what type of region it should be, width etc, in my case it is item type region. And on the Attributes/Style tab, I can select from the availabe Attributes as which all Attributes I want to display. Here if i select only "Associated Functions" Attribute then normally portal should not render anything by default on the Page. It should rather make a call to the procedure which is associated with the Custom Item and as when I was creating the custom item type, I had clicked on "Display Procedure Results With Item", so portal should now display the result of my Procedure. So far it works without problem.
    But the problem is that the Portal displays the text at its own also. As i have written that Portal should not display anything at its own, this doesn't work in this version of Portal for a Custom Item Type that is made using Base Text Item Type. For all others it has worked till now (I have create 50s of Custom item types).
    You can better understand by going to the following URL. Just have a look between the two dotted lines (Dotted line is also a seperate Custom Item Type). Between the two Dotted Lines is a custom item, in general it would be a Custom News Item having title, image and so on.
    http://sunnode1.edvz.sbg.ac.at:7778/portal/page?_pageid=79,56047&_dad=portal&_schema=PORTAL
    I have really programmed a lot with portal but now at this stage where I am near to end, I am getting problems which are coming from Product. I request you for help.

  • Create a Text Editor with Java

    I'd really like to create a text editor using Java but, i'm having a little trouble figuring out which direction to take to create it. I'm thinking of purchacing a book on Swing, I know there must be more to learn though. are there anything else that might be useful in achieving my goal?
    Thanks,
    JV
    Message was edited by:
    Shockwave83

    look at the demo examples provided with your jdk.
    For example : jdk1.5.0_10\demo\jfc\Notepad

  • How to autopopulate a text field with unique data from multiple data sets

    Hi,
    I'm a laboratory manager in charge of a hospital project which will be using pdf forms to send and receive data from our end users across the city. I need help with the last part of our pdf form, specifically with a js that will do a bit of text-field autopopulation magic. This, unfortunately, is a beyond what I have taught myself about pdf js functionality.a
    The problem:
    I need to provide my end users with a text field containing a set of data [A, B, C, D, E, F ...] and the total items in this set [tot#]. The end user needs this information as part of the implementation of this particular laboratory machine.
    The particulars
    When the end user asks for an experiment to be run, we must specify some pieces of data to help them interpret the results. These are constructed as panels which contain discrete data elements.
    For example - One experiment may use two panels, Panel#1 and Panel #2. Panel #1 includes the items A, B, D, E, Panel #2 includes the items A, B, C, F, G.
    Thus, the panels may share some of the same items, but, I only want the unique members to be displayed in the text field. If I make a drop down box or checkboxes with the panels, I want to  be able to select the panels that we ran and (in this example) have the text field display only the unique items among all the panels that were used:
    textfield outpute = A, B, C, D, E, F, G - 7 total.
    Any assistance from the pdf community would be very much appreciated.
    Thanks!

    Thanks for that help.
    I should have made it more apparent that I'm very new to scripting and I'm
    not a programmer by trade. I have a few questions before modifying the code
    you kindly provided.
    1) Where should I embed this script? Within the 'selection change' area of
    my listbox?
    2) Can I replace the term 'arr' with the names of the various items in my
    listbox or should I put 'arr#' as the output value for each term?
    3) Will this script find and display the unique values when a user selects
    multiple items in my listbox?
    4) How does the script know where to output the unique members of the
    combined set?
    I appreciate your patience with me.
    ck

  • How do you sort a text field with numeric data in numeric order

    We have a text field (varchar2) that has numeric data. When we sort it the items display as
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    *101*
    12
    Instead of
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    12
    101
    How can I make it display in numeric order if the field is a varchar2
    Howard

    To avoid string-to-number conversion:
    SQL> with t as (
      2  select '1' a from dual union
      3  select '2' a from dual union
      4  select '3' a from dual union
      5  select '4' a from dual union
      6  select '5' a from dual union
      7  select '6' a from dual union
      8  select '7' a from dual union
      9  select '8' a from dual union
    10  select '9' a from dual union
    11  select '10' a from dual union
    12  select '101' a from dual union
    13  select '12' a from dual)
    14  select a from t
    15  order by length(a), a;
    A
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    12
    101
    12 rows selected.Max
    http://oracleitalia.wordpress.com

  • How to deal with LONG data type in RTF template

    Hi,
    I'm developing a PO request report in which I should print some attachments. The attachments are stored in the database in table fnd_attachments_long_text in column long_text which data type is LONG. In my case the content of the column long_text is always plain text.
    The query I use to get the text from the table is something like:
    select long_text
    from fnd_documents_long_text
    where <some_conditions....>
    The query runs fine in SQL developer but when I run the XML report I get following error: "Stream has already been closed". The XML file generated is complete in its structure but the XML node which should contain the text of the attachment is empty, therefore I cannot print the attachment in the report.
    I made some researches on metalink and I've found note 832903.1 which explains the same error I'm getting. Looks like I cannot execute more than 1 query using the same JDBC connection if one of these queries retrieves a LONG data type.
    Any advice on how can I get the attachment text to show correctly in my report?
    Thank you

    Hi,
    Thank you for your reply,
    Yes, I tried to get the text as described in that article but maybe I'm missing something because my data template doesn't show the attachment text.
    The article talks about support for BLOB, CLOB and RAW and at the end it states "but we do not have support for RAW and LONG column types at the moment - we're looking into that for a future release". So this makes me think that I won't be albe to retrieve my text since it's stored in a LONG column.
    I think that the error I'm getting is not strictly related to XML publisher but it is in some way related to the JDBC connection used to get the data. Infact I have an old version of the same report I'm trying do develop which is made in Report Builder and it is retrieving the attachment text correctly.
    Right now I'm trying to use the Report Builder engine to get the XML data and then use XML Publisher to create the PDF output. Anyway, if it is possible, I would like to avoid Report Builder and use only XMLP.
    Thanks

  • How to view/delete hidden data on my iPod?

    I'm really bad at explaining, so I hope this makes sense!
    Well, I was cleaning my iPod this morning, and after deleting all the data from it I noticed there was still 5gb worth of used disk space left. So I assumed it was just my music, but when I checked the summary in iTunes, it said that 3.71gb of that 5gb was of 'other' data, but I had already deleted all the other data on my iPod.
    I realise that if I delete stuff from my iPod on my mac, I should empty the trash before disconnecting it or else the data will remain backed up somewhere on the iPod. So if this is the case for this hidden 3.71gb of data, how or where can I find it and delete it?
    Cheers!

    Other can be a lot of things: artwork, contacts, notes. However, 3.71 gigs is a lot. Generally, restoring your iPod will fix this problem. Plug your iPod in, launch iTunes and click the Restore button on the summary page. Note: This will delete everything on your iPod.

  • Update text fields with xml data based on DDL selection of an ID number

    Hi guys,
    this one should be straight forward, but I cant seem to find a straight forward answer.  In a nutshell:
    XML file contains ID, Name, Location (so far 3 records in sample xml file)
    Form contains a Dynamic Drop down list to allow selection of ID and text fields to display the associated name and location of that ID.  The binding of the Drop down works fine, however I need the other fields to update to the associated name and location when different ID's are selected.  I assume I'll need some sort of exit event on the drop down list to update the other fields with the Name and location of the ID selected, but I dont know enough to have a stab at it.
    please, please, please help, Im starting to pull my hair out.
    James.

    Hi James,
    This would depend on the structure of your XML but assuming you have something like;
    <Data>
                <Item>
                            <Id>1</Id>
                            <Name>Name1</Name>
                            <Location>Location1</Location>
                </Item>
                <Item>
                            <Id>2</Id>
                            <Name>Name2</Name>
                            <Location>Location2</Location>
                </Item>
                <Item>
                            <Id>3</Id>
                            <Name>Name3</Name>
                            <Location>Location3</Location>
                </Item>
    </Data>
    Then in the change event of your dropdown (your could use the exit event but then value might not have changed so would be performing unnecessary processing) add the following code.
    var itemGroup = $data.Data.resolveNode("Item.(Id.value === '"+xfa.event.change+"')");
    Name.rawValue = itemGroup.Name.value;
    Location.rawValue = itemGroup.Location.value;
    The xfa.event.change will be the value selected, the resolveNode will return the Item with the matching Id, and then it is just a matter of assigning it to your form fields.
    Hope this gets you started.
    Regards
    Bruce

Maybe you are looking for

  • Is there a way to set the default level of keyframe easing?

    I'm currently using the graph editor to smooth my ease-in / ease-out keyframes with 100% influence.  I'm having to adjust the easing of each keyframe individually.  Is there a way to set the default level to 100%, so that I can just select "Easy Ease

  • Can no longer print from my i phone or i pad

    I have a hp photosmart plus e- all in one B210 printer. When I set up my i phone and ipad I was able to print.  But I can no longer. My lap top is also set up and is running ok as well as my husbands i phone.

  • Where to keep the jar files

    I have some common classes that I want use across the SWCV/namespaces/Mappings. What is the best place to import. 1. In Imported archives of  each name space for each swcv 2.  Create a shared name space in each SWCV and place in this swcv under impor

  • Was there an icon for clouds,  if so, I threw it away. What do I do now?

    Am I supposed to have icon for iclouds?  If so I must of threw it away, what now?

  • Apple tech support?

    I'm an hour from giving up and taking my iPod back to Best Buy- it's not working and while the community-based tech support idea is novel and all, waiting eight hours without getting any useful answers to my questions is pretty disheartening. Does Ap