Serializing text with component

(Serializing text with component)
The text is just ascii text, but it could be a considerable size (like 64k). The purpose would be to serialize, and then de-serialze all of this custom information I need for that component (and some other stuff). An example would be to save a list of names with my 'Name' component.
I don't see any evidence that it is possible...
Thanks,
JR

Well, imagine if we had to do serialization in this
manner (i.e. manually). Not a pretty picture in my
opnion...sure, that's why the API exists... don't take it the other way round and apply serialization to every single piece of data
why do you think that serialization is easier btw ? here's the non-serialized version :
Writer writer = new FileWriter(filename);
writer.write(value); // I assume your text is available in a String named 'value'
writer.close();and here it is with serialization :
JButton container = new JButton(value);
FileOutputStream fos = new FileOutputStream(filename);
ObjectOutputStream outputStream = new ObjectOutputStream(fos);
outputStream.writeObject(container);
outputStream.close();Serialization helps you serialize complex objects (like graphical components) easily. It's a relatively heavy mechanism (compared to regular file writing) and shouldn't be used as a standard way of writing text to a file.

Similar Messages

  • Text-input component with auto-complete functionality for mobile

    Hey guys,
    I wonder if there is a text-input component with auto-complete functionality optimized for mobile development with AIR like the one that Android provides natively as you can see here http://developer.android.com/reference/android/widget/AutoCompleteTextView.html and here http://developer.android.com/resources/tutorials/views/hello-autocomplete.html.
    At least I didn't find it in the latest SDK and I think such a component is pretty standard nowadays. Or did I simply overlook it?
    Thank you guys for any advice.
    Regards,
    Thilo

    Hi relaxtraja,
    thanks for your reply!
    I knew that there are a lot of auto-complete scripts on the web. What I was hoping was, that Adobe provides an officially supported auto-complete component optimized for mobile as part of the SDK (like in the Android SDK as I pointed out), but that doesn't seem to be the case. It's sad, because it's an essential part of modern UIs in mobile applications.
    I've already created an auto-complete component by myself based on Spark components and I will end up using it. But I will have to optimize it for mobile applications beforehands. I just think something this essential should be provided by the SDK.
    However, thanks for posting!
    Regards,
    Thilo

  • Need formula to take text from one cell, add that to a serial number with leading zeros

    I'm trying to create a spreasdheet cell that simplifies creating videotape Numbers from a job name in cell and appends a serial number with leading zeros, and that would survive an export to EXCEL.
    The result would look like
     A Column
    Job Name
    B ColumnTape #
    Formula needed for B
    ClientName-TapeType-
    ClientName-TapeType-001
    =
    ClientName-TapeType-
    ClientName-TapeType-002
    =
    I've tried using a custom cell format that had the text in front of the (Integer) drag and drop, with three integers and leading zeros.
    That worked, but requires recreating the custom cell format for each client and tape type.
    So, I've used the formula =A2& in order to play around with different things, but haven't hit on something that adjusts for increased numbers and retains the leading zeros.
    I don't mind doing a starter for the first row and then adding +1 in the formulas for the rows below.
    I've done that using the custom cell formats for the first B cell and then using =Bx+1 in the following cells.  It works, but I'm hoping to find something simpler or that can be copied and pasted in multiple rows on one paste.
    Thanks in advance.
    Suggestions much appreciated!
    Ted

    Ted,
    This expression in B will give you the pattern I believe you are looking for:
    =A&RIGHT("00"&ROW()-1, 3)
    Here's a screen shot...
    Jerry

  • How to Print the text in a Text Area Component

    It is really amazing how much information is out there for
    Flex but you can never find what you are looking for :-(
    I am trying to print the contents of a text area component.
    If I just do addPage(Component Name) it works but it prints the
    whole conponent including the scrollbars, on the page. I just want
    the text. If I try to put the component name.text in addPage(), I
    get a "1067: Implicit coercion of a value of type String to an
    unrelated type flash.display:Sprite." error. Does anyone know how
    to do this?
    Any help would be greatly appreciated.
    Dave

    Is there anyone who can help with this? I really need a way
    to print the results.
    Thanks.
    Dave

  • Having two or more Text-Enrichment component in an Inetgrator graph

    Hi All,
    The data I am trying to load into Endeca Server v3.0 has got three text columns and I would like to do the text-enrichment process on all of them. At the moment I have used one text-enrichment component per each column (overall three text-enrichment components) but as a result some output columns such as Document-Sentiment or Summary are only containing the last column's sentiment/summary where my ideal is to have a summary of all three columns or an average on their sentiment. I wonder if there is any configuration available for these kind of requirements or if it is possible to use different properties files in order to plan three different set of output columns?
    Appreciate your help, Regards.

    Hi Farnaz,
    If you enriched in parallel, with each branch enriching a different field on the record, you'd wind up with 3 'EntitiesPerson' fields, one on each branch (assuming you're using the same te.properties file).  When you combine the record back together, you will have to do something in your join logic with CTL to combine them.
    Something like:
    $out.0.EntitesPerson = $in.0.EntitiesPerson + ${"MULTIASSIGN_DELIMITER"} + $in.1.EntitiesPerson + ${"MULTIASSIGN_DELIMITER"} + $in.2.EntitiesPerson;

  • HTTP Receiver Adapter payload as single line plain text with out any tags.

    Hi PI experts,
    I have a strange problem in http receiver adapter.
    Sender RFC (SAP)  Receiver: HTTP.
    Receiver system expects the output from XI in the below format in a single line plain text with out any tags in the payload. and the content type should be application/x-www-form-urlencoded
    Group=Test&Sentinel=Web%20Server&Facility=5345&Order Number=XT-XWHM-Y-NA&Serial Number=123456&@LABEL_QUANTITY=5&@LABEL_NAME=111114_Q
    Is there any way to achieve this using http receiver adapter. Business is not ready to accept the output from XI not even in a single element instead they only need it as a JUST a plain text.
    Appreciate early response on this.
    Thanks in Advance,
    Jitender

    Dear Ola,
    Could you elaborate how you achieved in catching the response data from the receiver in case of HTTP receiver adapter?
    The target service is not a WebService but some python script that must to receive some paramters via POST request.
         HOW can I post this parameters?
    Here you entered the fields of the message type of the request in the header parameters of the receiver adapter? Thats fine.
    But what about the message type and vice versa of the response from the receiver?
    Regards
    Rebecca

  • How do you match the audio and text with the typer writer effect in Final Cut Pro?

    I am making a video and I want to sync up the text with the audio using the typer writer effect.  For example I want when the music makes a bing noise I want a letter to pop up.  How do you set the exact time for each letter that comes up instead of just choosing the duration.
    Thank you!!!!
    Virginia

    The most common cause is user error in understanding how these things are recorded in the acquisition system. You've got to first determine in it's easily solved by properly transcoding or if you're actually just seeing a display lag. Mismatched sync is based on different timebase scales so the offset gets worse the longer a clip plays.
    The most common solution is to unlink the components, time them precisely to the frame, and change the speed of one component to match precisely the length of the other. It's easy and usually results in a slight pitch change that is indiscernible.
    But you want to figure out the cause, not just he solution, so you can fix it in production instead of in post.

  • Input Text with LOV in table, the search list will be limited with 25 row?

    Hi, experts
    I got a strange problem with JDev 11.1.1.5.0, I created Input Text with LOV in Data View for one attribute with default setting, the LOV worked fine when I drop the DC with 'ADF form'; but when I drop it with ADF Table, the search function will just show 25 rows, I can see it try to fetch data when scroll down just like form, but then nothing happened, only the first 25 rows will be show without any error log.
    Any special configuration needed for LOV in table? or a bug in LOV?
    many thanks.

    You can change the range size on the VO which you use for the LOV. If you only want to change it for the VO the lov uses, select the VO in question in the application module data model and clic edit. There you enter -1 fro raneg size.
    If you want to change it globaly for this VO you open the VO and select the Tuning section and check 'all at once' which should get you all rows. Be careful that the VO don't return too much rows. A LOV wiht more then 50 rows is too big. In this case you may choose an other component.
    Timo

  • Problem with "Input text with List of Value"

    Hi,
    I have a table where i am storing country code using "Input text with List of Value". I want a another non base table item where i would like to show the "Country Name" of the select LOV. Kindly let know a way to implement the LOV where it returns the "Country code" to base table item and "Country name" to the non base table item.
    thanks
    Sanjay

    Hi,
    I am getting lazy in chasing down the JDeveloper release by the ADF Faces component mentioned.. So I ask: Which verson of JDeveloper are you on ?
    Frank

  • How to blink the text with in JTable Cell?

    Hi Friends,
    I am relatively new to Java Swings. I have got a requirement to blink the text with in the JTable cell conditionally. Please help with suggestions or sample codes if any.
    Thanks in Advance.
    Satya.

    I believe Swing components support HTML tags.
    So you might be able to wrap your text in <BLINK>I am blinking !</BLINK>
    tags.
    If that doesn't work, you probably have to create your own cell renderer, and force a component repaint every second or so... messy.
    regards,
    Owen

  • HTML text with ToolTipManager.createToolTip

    I need to use HML text with the ToolTipManager class. Is there a way this can be done, possibly using the toolTipClass?
    Thanks!

    Yes, but ToolTip can be extended to work with html: http://flexexamples.blogspot.com/2009/07/flex-html-tooltip-component.html.
    However, this doesn't work for ToolTipManager.createToolTip().

  • Replace panelHeader text with breadcrumb

    Hi,
    I have a panelHeader with empty text and size=1 as follows:
    <af:panelHeader text="" size="1">
    </af:panelHeader>
    to have the effect of a section layout. But since the text is empty, there is extra space at the top of the panelHeader.
    I am wondering is it possible to replace the panelHeader text with some other component like breadcrumb?
    Please advise.
    Thanks.
    -Mina

    If you have bread crumb in your page and again if you want to display the same on panel header text, its ok. Bread crumb is shown wrt to a page.
    You can have text(heading) that describes the contents of panel header.

  • Set Article which control batch and serial number at component level

    Dear experts,
    I have some concern about set article as  the requirement for sale set my company would like to control inventory at component level and at the component level we required to control batch and serial number.
    So, when posting GR of sale set article system will auto split material to control inventory at component level with MVT 319 and in this step should possible to manual define serial number for component.
    Example
    Header Sale Set A  (Activate valuation type)
    Comp1 : B (Activate serial number and control serial number during GR ref PO , control Batch)
    Comp2 : C (Control Batch)
    GR : Header Sale Set A
    Expected Solution : System should automatic to split to comp1 and comp2 , for Comp1 B will require to input serial number.
    Fact : During testing, system auto split to comp1 and comp2 for comp1 I can input serial number but after save the serial number that I input are gone.
    I 'm not sure that for set article can we control serial number at component level? If anyone have the expereince in this. Please help ?
    Best Regards,
    Kate

    Dear experts,
    I have some concern about set article as  the requirement for sale set my company would like to control inventory at component level and at the component level we required to control batch and serial number.
    So, when posting GR of sale set article system will auto split material to control inventory at component level with MVT 319 and in this step should possible to manual define serial number for component.
    Example
    Header Sale Set A  (Activate valuation type)
    Comp1 : B (Activate serial number and control serial number during GR ref PO , control Batch)
    Comp2 : C (Control Batch)
    GR : Header Sale Set A
    Expected Solution : System should automatic to split to comp1 and comp2 , for Comp1 B will require to input serial number.
    Fact : During testing, system auto split to comp1 and comp2 for comp1 I can input serial number but after save the serial number that I input are gone.
    I 'm not sure that for set article can we control serial number at component level? If anyone have the expereince in this. Please help ?
    Best Regards,
    Kate

  • I cant transform my text to 3d text with my photoshop cc what can i do? all 3d options seem to be blocked

    hello i cant transform my text to 3d text with my photoshop cc what can i do? all 3d options seem to be blocked

    Also check your system's capabilities against the Adobe Photoshop requirements:
    System requirements | Photoshop
    -Noel

  • My 3rd iphone. 3GS I did not buy from an apple store, how do I register this serial number with my apple account? it is already sync to it and will preform every function except email to my home computer. It says apple ID disabled

    My 3rd iphone is a 3GS. I did not buy this one from the apple store, how do I register this serial number with my apple account? it is already sync'd and it and will preform every function except email to my home computer. It says apple ID disabled, also will not update my apps, same promt apple id disabled.
    anyone know where I can go to register this phone? Thanks

    https://register.apple.com

Maybe you are looking for