Mutliple framed MovieClip and its Class

I have a 4 framed MovieClip in my library named 'MC Swatch
Set' with a
defining class named SwatchSet. Each of the frames contains 2
- 4
MovieClips with instance names
swatch1
swatch2
swatch3
swatch4
For this post, please refer to
http://www.seanberry.com/swatches.png
On frame 1, swatch 1 and 3 are present.
On frame 2, swatch 1, 2 and 3.
On frame 3, swatch 1, 3 and 4.
and on 4, swatch 1, 2, 3 and 4.
In my class I have an _init() function that takes two args.
The first is
the label of the frame to jump to out of the 4. The second
argument is an
object that is used to specify the colors to use with setRGB
on the various
swatches. So, if the _init() function was called and the
first argument was
'P1S2' the MovieClip would go to frame 3 ( P1S2 == '1 Primary
color, and 2
secondary colors')
Since there will only ever be one of these "MC Swatch Set"
MovieClips, I
only instantiate it once when I place it on the stage with an
attachMovie().
So here is the problem. When I call the _init() the first
time, it works
like a charm. It goes to the correct frame, and changes the
colors of the
swatches. But, when I call _init() again, with new
parameters, I encounter
a problem.
The problem is best illustrated in the image referenced
above. Basically,
even though I know the MovieClip instance is changing frames
(I know this
because I put a trace on each frame which works and because
the outlines of
the swatches on the MovieClip are correct) the instance of
the movieclip I
have already used is visible.
Is it because I can only use an instance name once? Since I
have, for
example, a movieclip with instance name swatch2 on frames 2
and 4, is it
whichever one gets used first?
Thanks.

"abeall" <[email protected]> wrote in
message
news:ecd12k$840$[email protected]..
>I don't exactly know, other than Flash thinks the same
instance is on frame
>1
> and frame 2 if they have the same name, and that can
easily confuse Flash
> if in
> actuality they are different.
>
> Try this. Create a MovieClip in the IDE called
"myMovie_mc". Make the
> document
> 20 frames. On frame 10, put:
> myMovie_mc.swapDepths(1);
> myMovie_mc._x += 150;
> myMovie_mc._y += 150;
> myMovie_mc._alpha = 50;
>
> No stop() commands. Now play the movie. Congradulations,
you have
> successfully
> confused the Flash Player! :-) Similar type of thing, I
think.
>
Yep, that demonstrates a similar problem. What I don't
understand though,
is why there is a copy of myMovie_mc in the new position,
with the new alpha
when the player loops back to frame 1. Just counter-intuitive
it seems.
Thanks again for the help. The empty keyframe in between
frames containing
like instance names did the trick and was a simple solution
to implement.
I had found other ways around this problem, like individual,
unique instance
names for each MovieClip but like your solution much better.

Similar Messages

  • Cant put pdfs or music on.the message i get when itunes comes up is "iTunes was unable to load data class information from sync services.reconnect or try again later." and its just my itouch i tried another one and was able to put songs and pdfs on it...

    I cant put pdfs or music on my itouch,it wont sync.the message i get when itunes comes up is "iTunes was unable to load data class information from sync services.reconnect or try again later." and its just my itouch i tried another one and was able to put songs and pdfs on it...please help!

    Try here:
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert
    If not successful see the previous discussion on the right side of this page with the green checkmark.

  • How to get the jar file without knowing its name and any class inside it?

    Hello, everybody!
    I would like to know if there's a way to get a reference programatically to the initial jar without knowing its name and any class contained in it. By "initial jar" I mean the jar that was called in the prompt, like this:
    java -jar jarfile.jaror in another way, in a graphical system. To be sincere what I really want is to get a reference to the jar's manifest, but I know if I can get a reference to the jar I can get a reference to its manifest file. Or if you know a way to get the manifest directly, it would also help. So, is there a way to do this?
    Thank you.
    Marcos

    jverd wrote:
    marcos_aps wrote:
    abillconsl wrote:
    Can you be more specific - IOW, can you cite a specific case?Absolutely. I want to access the jar in source code with the java.util.zip.JarFile class, for example.But why? You still haven't provided a use case or explained what you're trying to accomplish. As already pointed out, whatever you're trying to do, this is a brittle solution. If you explain what you're trying to accomplish with this, somebody may be able to suggest a better approach.jverd, I explained for baftos. Anyway, I will try to be more specific. I start my sytem like this, from, say, for example, jar1.jar:
    import br.product.System;
    public static void main(String[] args)
        System.start("NameOfTheSystem");
    }The System class is in util.jar, for example. This jar is used by all systems. I wouldn't like to pass in the name of the system, as above. I would like that the System class could read it from jar1.jar's manifest file. I just would like to have this:
    import br.product.System;
    public static void main(String[] args)
        System.start();
    }It is more elegant and I don't have the name of the system in two places: code and manifest file.
    Marcos

  • I want the Definitaion fo  Class and its Components  in ABAP . With Example

    Gowri

    <b>Classes</b>
    Classes are templates for objects. Conversely, you can say that the type of
    an object is the same as its class. A class is an abstract description of an object. You could say that it is a set of instructions for building an object. The attributes
    of objects are defined by the components of the class, which describe the
    state and behavior of objects.
    <b>
    Local and Global Classes</b>
    Classes in ABAP Objects can be declared either globally or locally. You define global classes and interfaces in the Class Builder (Transaction SE24) in the
    ABAP Workbench. They are stored centrally in class pools in the class library
    in the R/3 Repository. All of the ABAP programs in an R/3 System can access the global classes. Local classes are defined within an ABAP program. Local classes and interfaces can only be used in the program in which they are defined. When you use a class in an ABAP program, the system first searches for a local class with the specified name. If it does not find one, it then looks for a global class. Apart from the visibility question, there is no difference between using a global class and using a local class.
    There is, however, a significant difference in the way that local and global classes are designed. If you are defining a local class that is only used in a single program, it is usually sufficient to define the outwardly visible components so that it fits into that program. Global classes, on the other hand, must be able to be used anywhere. This means that certain restrictions apply when you define the interface of a global class, since the system must be able to guarantee that any program using an object of a global class can recognize the data type of each interface parameter.
    The following sections describe how to define local classes and interfaces in an ABAP program. For information about how to define local classes and interfaces, refer to the  Class Builder section of the ABAP Workbench Tools documentation.
    <b>Defining Local Classes</b>
    Local classes consist of ABAP source code, enclosed in the ABAP statements CLASS ... ENDCLASS. A complete class definition consists of a declaration part and, if required, an implementation part. The declaration part of a class <class> is a statement block:
    CLASS <class> DEFINITION.
    ENDCLASS.
    It contains the declaration for all components (attributes, methods, events) of the class. When you define local classes, the declaration part belongs to the global program data. You should therefore place it at the beginning of the program.
    If you declare methods in the declaration part of a class, you must also write an implementation part for it. This consists of a further statement block:
    CLASS <class> IMPLEMENTATION.
    ENDCLASS.
    The implementation part of a class contains the implementation of all methods of the class. The implementation part of a local class is a processing block. Subsequent coding that is not itself part of a processing block is therefore not accessible.
    <b>Structure of a Class</b>
    <u>The following statements define the structure of a class:</u>
    A class contains components
    Each component is assigned to a visibility section
    Classes implement methods
    The following sections describe the structure of classes in more detail.
    <b>Class Components</b>
    The components of a class make up its contents. All components are declared in the declaration part of the class. The components define the attributes of the objects in a class. When you define the class, each component is assigned to one of the three visibility sections, which define the external interface of the class. All of the components of a class are visible within the class. All components are in the same namespace. This means that all components of the class must have names that are unique within the class.
    There are two kinds of components in a class - those that exist separately for each object in the class, and those that exist only once for the whole class, regardless of the number of instances. Instance-specific components are known as instance components. Components that are not instance-specific are called static components.
    In ABAP Objects, classes can define the following components. Since all components that you can declare in classes can also be declared in interfaces, the following descriptions apply equally to interfaces.
    <b>Attributes</b>
    Attributes are internal data fields within a class that can have any ABAP data type. The state of an object is determined by the contents of its attributes. One kind of attribute is the reference variable. Reference variables allow you to create and address objects. Reference variables can be defined in classes, allowing you to access objects from within a class.
    <b>Instance Attributes</b>
    The contents of instance attributes define the instance-specific state of an object. You declare them using the DATA statement.
    <b>Static Attributes</b>
    The contents of static attributes define the state of the class that is valid for all instances of the class. Static attributes exist once for each class. You declare them using the CLASS-DATA statement. They are accessible for the entire runtime of the class.
    All of the objects in a class can access its static attributes. If you change a static attribute in an object, the change is visible in all other objects in the class.
    <b>Methods</b>
    Methods are internal procedures in a class that define the behavior of an object. They can access all of the attributes of a class. This allows them to change the data content of an object. They also have a parameter interface, with which users can supply them with values when calling them, and receive values back from them The private attributes of a class can only be changed by methods in the same class.
    The definition and parameter interface of a method is similar to that of function modules. You define a method <met> in the definition part of a class and implement it in the implementation part using the following processing block:
    METHOD <meth>.
    ENDMETHOD.
    You can declare local data types and objects in methods in the same way as in other ABAP procedures (subroutines and function modules). You call methods using the CALL METHOD statement.
    <b>Instance Methods</b>
    You declare instance methods using the METHODS statement. They can access all of the attributes of a class, and can trigger all of the events of the class.
    <b>Static Methods</b>
    You declare static methods using the CLASS-METHODS statement. They can only access static attributes and trigger static events.
    <b>Special Methods</b>
    As well as normal methods, which you call using CALL METHOD, there are two special methods called CONSTRUCTOR and CLASS_CONSTRUCTOR, which are automatically called when you create an object (CONSTRUCTOR) or when you first access the components of a class (CLASS_CONSTRUCTOR).
    <b>Events</b>
    Objects or classes can use events to trigger event handler methods in other objects or classes. In a normal method call, one method can be called by any number of users. When an event is triggered, any number of event handler methods can be called. The link between the trigger and the handler is not established until runtime. In a normal method call, the calling program determines the methods that it wants to call. These methods must exist. With events, the handler determines the events to which it wants to react. There does not have to be a handler method registered for every event.
    The events of a class can be triggered in the methods of the same class using the RAISE EVENT statement. You can declare a method of the same or a different class as an event handler method for the event <evt> of class <class> using the addition FOR EVENT <evt> OF <class>.
    Events have a similar parameter interface to methods, but only have output parameters. These parameters are passed by the trigger (RAISE EVENT statement) to the event handler method, which receives them as input parameters.
    The link between trigger and handler is established dynamically in a program using the SET HANDLER statement. The trigger and handlers can be objects or classes, depending on whether you have instance or static events and event handler methods. When an event is triggered, the corresponding event handler methods are executed in all registered handling classes.
    <b>Instance Events</b>
    You declare instance events using the EVENTS statement. An instance event can only be triggered in an instance method.
    <b>Static Events</b>
    You declare static events using the CLASS-EVENTS statement. All methods (instance and static methods) can trigger static events. Static events are the only type of event that can be triggered in a static method.
    <u>See also Triggering and Handling Events.</u>
    <b>Types</b>
    You can define your own ABAP data types within a class using the TYPES statement. Types are not instance-specific, and exist once only for all of the objects in a class.
    <b>Constants</b>
    Constants are special static attributes. You set their values when you declare them, and they can then no longer be changed. You declare them using the CONSTANTS statement. Constants are not instance-specific, and exist once only for all of the objects in a class.
    <b>Visibility Sections</b>
    You can divide the declaration part of a class into up to three visibility areas:
    CLASS <class> DEFINITION.
      PUBLIC SECTION.
      PROTECTED SECTION.
      PRIVATE SECTION.
    ENDCLASS.
    These areas define the external visibility of the class components, that is, the interface between the class and its users. Each component of a class must be assigned to one of the visibility sections.
    <b>Public Section</b>
    All of the components declared in the public section are accessible to all users of the class, and to the methods of the class and any classes that inherit from it. The public components of the class form the interface between the class and its users.
    <b>
    Protected Section</b>
    All of the components declared in the protected section are accessible to all methods of the class and of classes that inherit from it. Protected components form a special interface between a class and its subclasses. Since inheritance is not active in Release 4.5B, the protected section currently has the same effect as the private section.
    <b>Private Section</b>
    Components that you declare in the private section are only visible in the methods of the same class. The private components are not part of the external interface of the class.
    <b>Encapsulation</b>
    The three visibility areas are the basis for one of the important features of object orientation - encapsulation. When you define a class, you should take great care in designing the public components, and try to declare as few public components as possible. The public components of global classes may not be changed once you have released the class.
    For example, public attributes are visible externally, and form a part of the interface between an object and its users. If you want to encapsulate the state of an object fully, you cannot declare any public attributes. As well as defining the visibility of an attribute, you can also protect it from changes using the READ-ONLY addition.
    "Example  :
    CLASS C_COUNTER DEFINITION.
      PUBLIC SECTION.
        METHODS: SET_COUNTER IMPORTING VALUE(SET_VALUE) TYPE I,
                 INCREMENT_COUNTER,
                 GET_COUNTER EXPORTING VALUE(GET_VALUE) TYPE I.
      PRIVATE SECTION.
        DATA COUNT TYPE I.
    ENDCLASS.
    CLASS C_COUNTER IMPLEMENTATION.
      METHOD SET_COUNTER.
        COUNT = SET_VALUE.
      ENDMETHOD.
      METHOD INCREMENT_COUNTER.
        ADD 1 TO COUNT.
      ENDMETHOD.
      METHOD GET_COUNTER.
        GET_VALUE = COUNT.
      ENDMETHOD.
    ENDCLASS.
    The class C_COUNTER contains three public methods - SET_COUNTER, INCREMENT_COUNTER, and GET_COUNTER. Each of these works with the private integer field COUNT. Two of the methods have input and output parameters. These form the data interface of the class. The field COUNT is not outwardly visible.
    Reward   points  if it is usefull...
    Girish

  • Can anybody give me the table with tcode and its development class

    can anybody give me the table with tcode and its development class

    Hi phani,
    1) First retrieve program name from tstc table I.e field pgmna.
      2) Using pgmna retrieve from tadir table by using the following criteria from tadir table
       pgmid    = 'R3TR'
      AND object   = 'PROG'
      AND obj_name = tstc-pgmna.
    We will get development class or package in tadir i.e
    tadir-devclass 
    Thanks,
    Naveen Kumar.

  • [svn:fx-trunk] 7120: Switched to using "use namespace mx_internal" rather than using explicit namespace scoping (e.g.,  mx_internal::foo) in RichEditableText and its related classes.

    Revision: 7120
    Author:   [email protected]
    Date:     2009-05-19 23:46:06 -0700 (Tue, 19 May 2009)
    Log Message:
    Switched to using "use namespace mx_internal" rather than using explicit namespace scoping (e.g.,  mx_internal::foo) in RichEditableText and its related classes.
    Removed stale import statements.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Carol
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditable TextContainerManager.as

    I'm more of a 1.3 chick myself, but the words are the same just in a different language.
    1. Is Tomcat running?
    2. Have you configured the ajp13 connector on 8009 in Tomcat? (Should it be ajp13 for Apache 2.0? - I really must upgrade)

  • Move node and its silings from one jtree to another

    Hi,
    I am trying to move JTree nodes and its siblings from one JTree to another. If anyone has the code, please post it on the website or mail to [email protected]
    Thanks
    Pavan

    Pavan,
    You may have to do a sanity check before adding it.
    Better run the program in a debugger and have a break point at the clipBoard.put() line. Else system.out.println() lines will kill enormouse programming time rather than using debugger.
    Also in following this thread, i found that you may have to be bit more thorough with the DefaultMutableTreeNode class first.
    Thanks,
    ananth
    Thomas,
    for (int p = 0; p < jtree.getSelectionCount(); p++) {
                   System.out.println(".3.......p= "+p);
    node =
    =
    (EuamDefaultMutableTreeNode)paths[p].getLastPathCompon
    nt();
                        clipBoard.put(node.toString(), node);
                   System.out.println(".4...........");
    Giving error at clipBoard.put()
    line....java.lang.NullPointerException
    ..Any idea why?
    Thanks.
    Pavan

  • Hiding a table column and its contents yet reading the values

    Hi all,
    hope someone can help as i urgently need a solution for this although its probably more of a javascript and html forms question than a JSP - but i couldnt find a good javascript forum - if any one has come across a good JS and HTML - i would appreciate if you would let me have a url for it - in the meantime as i need this urgentely and most JS sites that i have visted and posted on seem to be useless, i havent got a reply back yet , and since i've always found java sun forum good and helpful thought would post it here - hope no one minds it too much . Thanks in advance for any help with resolving my urgent problem.
    overview of question:
    I need to, using an onclick() event read the contents of the 4th cell in the clicked row and set the value of a hidden element � (not sure what element to use here attribute tag? Or some other - but basically, this needs to also be hidden, as I�m going to use this as one of the parameters to send through as part of the form - )
    explanation of question
    So when I do :-
    <td><netui:label value="{container.item.TELECARERID}"/></td> And using javascript :-
    row.cells[4].innerText;I can read the value and print it to screen as :-
    alert('row.cells[4].innerText)) = ' + row.cells[4].innerText);although at this stage I�m not sure how to now set this value to an element in the form so that I can include this value as part of the submit action of the form.
    However when I do the following, which is closer to what I�m trying to achieve (ie hide the 4th column of the table and its values � but when I just hide the value as in:-
    <td><netui:hidden dataInput="{container.item.TELECARERID}" dataSource="" /></td> I can�t use the above (row.cells[4].innerText;), javascript syntax to get to the value although the value is still in the viewsource of the html page.
    How can I hide this forth column of the table yet get the values of the 4th column and also set it to some element of the form so that it can be submitted with the date range as part of a criteria to search against by the backend server.
    the full code (well... relevant parts)
    Here is all the code:
    <table id="table1" class="tablebody" border="1">
            <tbody>
             <tr>
               <th><rpb:columnHeader field="FIRSTNAME"><i18n:getMessage messageName="first_name"/></rpb:columnHeader></th>
               <th><rpb:columnHeader field="LASTNAME"><i18n:getMessage messageName="last_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="LOGONNAME"><i18n:getMessage messageName="logon_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="TEAM"><i18n:getMessage messageName="team"/></rpb:columnHeader></th>
               <th><rpb:columnHeader field="TELECARERID"><i18n:getMessage messageName="telecarer_id"/></rpb:columnHeader></th>
            </tr>
           </netui-data:repeaterHeader>
           <netui-data:repeaterItem>
            <tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='gold';" onMouseOut="this.bgColor='#FFFFFF';" onclick="selectTeleCarer(this)">
            <td><netui:label  value="{container.item.FIRSTNAME}"/></td>
              <td><netui:label value="{container.item.LASTNAME}"/></td>
             <td><netui:label  value="{container.item.LOGONNAME}"/></td>
           <td><netui:label  value="{container.item.TEAM}"/></td> 
            <td><netui:label value="{container.item.TELECARERID}"/></td>
           </tr>
          </tbody>///////and then I�m trying to using the below sepertaely printed javascript set it to the below hidden attribute so that it can be submitted as part of the form
    <netui:hidden tagId="teleCarerId" dataSource="{actionForm.teleCarerId}" dataInput=""/>
                                 <div>
                             <i18n:getMessage messageName="created_between"/>
                                <netui:textBox tagId="data" dataSource="{actionForm.fromDate}"/>
                                <button id="trigger" onclick="jscalendar/calendar.js">...</button>
                               <i18n:getMessage messageName="and"/>
                                <netui:textBox tagId="data1" dataSource="{actionForm.toDate}"/>
                                <button id="trigger2" onclick="jscalendar/calendar.js">...</button>
                            </div>
                    <br />
                    <netui:button value="Submit" type="submit"/>
                </netui:form>/// the java script is :-
    function selectTeleCarer(row)
        if ( row.style ) {
    row.style.backgroundColor = ('gold' == row.style.backgroundColor)?
    'white' : 'gold';
    //document.form.teleCarerId.value = row.cells[4].innerText;
    alert('row.cells[4].innerText)) = ' + row.cells[4].innerText);
    }

    thanks for the reply,
    but i cant use just html like <input type hidden > as i'm using the struts like framework with the netui tags in weblogic where i need to link the tag value to the form bean to be passed to the server . thus i need to use the netui tag , which doesnt have a name but a tagId instead, so i'm using it like this :
    <netui:hidden tagId="teleCarerId" dataSource="{actionForm.teleCarerId}" dataInput=""/>and then in javascrpit doing:
    //document.form.teleCarerId.value = row.cells[4].innerText;but thats not my problem ()as it probably will work and its only an issue after i resolve the first part of my question:-
    which is how do i hide a cloumn in a table and its values so that when the user selects a row i can pass the hidden value of row as part of my form .
    as i mentioned before when i make the cloumn visible as in
      <th><rpb:columnHeader field="TELECARERID"><i18n:getMessage messageName="telecarer_id"/></rpb:columnHeader></th>and give it a visible value:
      <td><netui:label value="{container.item.TELECARERID}"/></td>
           </tr>i can pick up the value fine using the javascript syntax:
    row.cells[4].innerText;however when i hide only the value - which is only part of what i want to do as i want to also hide the column heading so that this part of the table isnt seen- as in:-
    <td><netui:hidden dataInput="{container.item.TELECARERID}" dataSource="" /></td>then i cant use
    row.cells[4].innerText;to pick up the value although it does hide the value and in viewsourec the value is there - is there some other syntax that i should be using here - and also how can i hide the cloumn heading so that the table looks asthtically good on the browser?
    ie. what should i change this line of code to?
      <th><rpb:columnHeader field="TELECARERID"><i18n:getMessage messageName="telecarer_id"/></rpb:columnHeader></th>thanks in advance for any help.

  • How to find out the failed sql command and its data from DEFERROR

    Hi,
    has anybody a procedure or some other possibilities to read the content of column USER_DATA of the advanced replication view DEFERROR in order to find out the failed sql command and its column values?
    Thanks in advance.

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • What is the difference between document class and normal class

    Hi,
    Please let me know what is the difference between document class and normal class.
    And I have no idea which class should call as document class or call as an object.
    Thanks
    -Actionscript Developer

    the document class is invoked immediately when your swf opens.  the document class must subclass the sprite or movieclip class.
    all other classes are invoked explicitly with code and need not subclass any other class.

  • Get question id's and its corresponding answer id for given Doc id's

    Hi,
    I am trying to write a program which gets the  Equality values (Questionaire - Erecruiting) like :
    1) Gender
    2) Care Resp
    3) Care Type
    4) Ethnic Origin
    5) Religion
    6) Disability
    7) Sexual Orientation
    8) Age Range
    And move it to an internal table which has each Equality as a field.
    I referred to the following tables in order to get the question id's and its corresponding answer id's for questionaire.
    1) hrp5141
    2) hrp5125
    3)T77RCF_INFDAT
    And i tried to fetch the equality data using the class CL_HRRCF_QA_BL. This class returns the values from hrp5141. It also returns the object id, answer id and answer text. CL_HRRCF_QA_BL class also intern calls the function module HRHAP_DOCUMENT_GET_DETAIL, which gets the set of questions and its answers. But this question id's and answer's differ for document id's (QA_DOC_GUID).
    Here the problem is the object id for Doc id's (QA_DOC_GUID) are differing.
    Example 1: I have taken first QA_DOC_GUID - BF2C554821CFBFF180C5DKDINGKGNSKE as input to check its question and answer using CL_HRRCF_QA_BL class.
    The question id is here I am assuming is 20366558 and the corresponding answer id is 20368559 for Gender.
    Example 2: I randomly picked one more QA_DOC_GUID - BAS06AE4533374F1B3CF0018F346808A. The question id here is 50368915 and answer id is 50368918 for gender which is different from the first example.
    I am not able to decide on other fields as the answers for it could be generic viz., YES, NOT, Prefer not to answer etc. Whereas Gender holds the value of either Male, Female or Prefer not to answer, Religion holds Religion name or Prefer not to answer value and similarly Age holds the age range or Prefer not to answer value.
    Can anybody suggest on how to get the equalities values (the question id's and its corresponding answer id's).
    Appreciate quick response.
    Thanks in Advance.
    Thanks and Regards,
    Rashmi

    Hello RichR,
    To setup an iCloud account, you don't need an existing email address. Take a look at this article which contains more information about iCloud email:
    iCloud: Mail overview
    When you set up iCloud with a new Apple ID that doesn’t use an existing email address, your new Apple ID ends with @icloud.com and is the email address for your free iCloud Mail account. If your Apple ID doesn’t end with @icloud.com, @me.com, or @mac.com, you must set up an @icloud.com email address before you can use iCloud Mail. 
    If you already use iCloud Mail with an @mac.com or @me.com email address, you also have an @icloud.com email address. You have an @icloud.com equivalent for every active @me.com or @mac.com email address or alias that you have as part of your account. 
    After you set up your iCloud Mail account, you can sign in to icloud.com/#mail and start using iCloud Mail on the web right away. To use iCloud Mail on your devices, you must set it up on each device. For more information, see Set up iCloud Mail on your devices.
    Thank you for contributing to Apple Support Communities.
    Take Care,
    BobbyD

  • Extract image and its file path

    Hi
    Here is my HTML source and i want to extract all <img tag and its file path in comma separated string using javascript or in Java
    <head>
    <meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
    <meta name=ProgId content=Word.Document>
    <meta name=Generator content="Microsoft Word 9">
    <meta name=Originator content="Microsoft Word 9">
    <link rel=File-List href="./index_files/filelist.xml">
    <link rel=Edit-Time-Data href="./index_files/editdata.mso">
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]-->
    <title>Untitled Document</title>
    <!--[if gte mso 9]><xml>
    <o:DocumentProperties>
    <o:Author>fsl</o:Author>
    <o:LastAuthor>fsl</o:LastAuthor>
    <o:Revision>19</o:Revision>
    <o:TotalTime>15</o:TotalTime>
    <o:Created>2005-03-22T05:22:00Z</o:Created>
    <o:LastSaved>2005-03-22T06:00:00Z</o:LastSaved>
    <o:Pages>1</o:Pages>
    <o:Words>572</o:Words>
    <o:Characters>3263</o:Characters>
    <o:Company>fsl</o:Company>
    <o:Lines>27</o:Lines>
    <o:Paragraphs>6</o:Paragraphs>
    <o:CharactersWithSpaces>4007</o:CharactersWithSpaces>
    <o:Version>9.3821</o:Version>
    </o:DocumentProperties>
    </xml><![endif]-->
    <style>
    <!--
    /* Font Definitions */
    @font-face
         {font-family:Verdana;
         panose-1:2 11 6 4 3 5 4 4 2 4;
         mso-font-charset:0;
         mso-generic-font-family:swiss;
         mso-font-pitch:variable;
         mso-font-signature:536871559 0 0 0 415 0;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
         {mso-style-parent:"";
         margin:0in;
         margin-bottom:.0001pt;
         mso-pagination:widow-orphan;
         font-size:12.0pt;
         font-family:"Times New Roman";
         mso-fareast-font-family:"Times New Roman";
         color:black;}
    a:link, span.MsoHyperlink
         {color:blue;
         text-decoration:underline;
         text-underline:single;}
    a:visited, span.MsoHyperlinkFollowed
         {color:blue;
         text-decoration:underline;
         text-underline:single;}
    @page Section1
         {size:8.5in 11.0in;
         margin:1.0in 1.25in 1.0in 1.25in;
         mso-header-margin:.5in;
         mso-footer-margin:.5in;
         mso-paper-source:0;}
    div.Section1
         {page:Section1;}
    /* List Definitions */
    @list l0
         {mso-list-id:1671522707;
         mso-list-type:hybrid;
         mso-list-template-ids:173077734 -1217256714 -1762734104 -1820561022 223512234 -1498092540 -253197138 -1503254310 -1644162396 -2077876560;}
    @list l0:level1
         {mso-level-number-format:bullet;
         mso-level-text:\F0B7;
         mso-level-tab-stop:.5in;
         mso-level-number-position:left;
         text-indent:-.25in;
         mso-ansi-font-size:10.0pt;
         font-family:Symbol;}
    @list l1
         {mso-list-id:1706909113;
         mso-list-type:hybrid;
         mso-list-template-ids:-1244391706 -178735898 -2037087144 -1764829932 -501428334 -1957922170 -877602540 2125899716 -1534562732 181023898;}
    @list l1:level1
         {mso-level-number-format:bullet;
         mso-level-text:\F0B7;
         mso-level-tab-stop:.5in;
         mso-level-number-position:left;
         text-indent:-.25in;
         mso-ansi-font-size:10.0pt;
         font-family:Symbol;}
    ol
         {margin-bottom:0in;}
    ul
         {margin-bottom:0in;}
    -->
    </style>
    <!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext="edit" spidmax="1027"/>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext="edit">
    <o:idmap v:ext="edit" data="1"/>
    </o:shapelayout></xml><![endif]-->
    </head>
    <body bgcolor=white lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
    <div class=Section1>
    <div align=center>
    <table border=0 cellspacing=1 cellpadding=0 width=100 bgcolor="#003399"
    style='width:75.0pt;mso-cellspacing:.7pt;background:#003399;mso-padding-alt:
    0in 0in 0in 0in'>
    <tr>
    <td style='background:white;padding:0in 0in 0in 0in'>
    <div align=center>
    <table border=0 cellspacing=0 cellpadding=0 width=549 style='width:411.75pt;
    mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'>
    <tr style='height:1.5pt'>
    <td style='padding:0in 0in 0in 0in;height:1.5pt'>
    <p class=MsoNormal align=right style='text-align:right;mso-line-height-alt:
    1.5pt'><img width=247 height=36 id="_x0000_i1025" src="images\fsl.jpg"></p>
    </td>
    </tr>
    <tr style='height:1.5pt'>
    <td style='background:#C6EAFD;padding:0in 0in 0in 0in;height:1.5pt'>
    <p class=MsoNormal style='mso-line-height-alt:1.5pt'><img width=600
    height=202 id="_x0000_i1026" src="images\banner1.jpg"></p>
    </td>
    </tr>
    <tr>
    <td style='background:#C6EAFD;padding:0in 0in 0in 0in'>
    <table border=0 cellspacing=0 cellpadding=0 width="100%" style='width:100.0%;
    mso-cellspacing:0in;mso-padding-alt:1.5pt 1.5pt 1.5pt 1.5pt'>
    <tr style='height:1.5pt'>
    <td width="38%" style='width:38.0%;padding:1.5pt 1.5pt 1.5pt 1.5pt;
    height:1.5pt'>
    <p class=MsoNormal><![if !supportEmptyParas]> <![endif]><span
    style='font-size:2.0pt;mso-bidi-font-size:12.0pt'><o:p></o:p></span></p>
    </td>
    <td width="62%" style='width:62.0%;padding:1.5pt 1.5pt 1.5pt 1.5pt;
    height:1.5pt'>
    <p class=MsoNormal style='mso-line-height-alt:1.5pt'><b><span
    style='font-size:10.0pt;font-family:Verdana;color:#FF6600'></span></b></p>
    </td>
    </tr>
    <tr>
    <td colspan=2 style='padding:1.5pt 1.5pt 1.5pt 1.5pt'>
    <table border=0 cellspacing=0 cellpadding=0 width="100%"
    style='width:100.0%;mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'>
    <tr>
    <td width="27%" style='width:27.0%;padding:0in 0in 0in 0in'>
    <p class=MsoNormal> </p>
    </td>
    <td width="73%" style='width:73.0%;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Verdana;
    color:#FF6600'></span></b></p>
    </td>
    </tr>
    </table>
    <p class=MsoNormal><o:p></o:p></p>
    </td>
    </tr>
    <tr>
    <td colspan=2 style='padding:1.5pt 1.5pt 1.5pt 1.5pt'>
    <table border=0 cellspacing=0 cellpadding=0 width="100%"
    style='width:100.0%;mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'>
    <tr>
    <td width="15%" style='width:15.0%;padding:0in 0in 0in 0in'>
    <p class=MsoNormal> </p>
    </td>
    <td width="85%" style='width:85.0%;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Verdana;
    color:#FF6600'></span></b></p>
    </td>
    </tr>
    </table>
    <p class=MsoNormal><o:p></o:p></p>
    </td>
    </tr>
    </table>
    <p class=MsoNormal><o:p></o:p></p>
    </td>
    </tr>
    <tr style='height:21.0pt'>
    <td style='background:white;padding:0in 0in 0in 0in;height:21.0pt'>
    <p class=MsoNormal align=center style='text-align:center'><b><span
    style='font-family:Verdana;mso-bidi-font-family:Arial'></span></b></p>
    </td>
    </tr>
    <tr style='height:1.5pt'>
    <td valign=top style='background:white;padding:0in 0in 0in 0in;height:1.5pt'>
    <div align=center>
    <table border=0 cellspacing=0 cellpadding=0 width="100%" style='width:100.0%;
    mso-cellspacing:0in;mso-padding-alt:3.0pt 3.0pt 3.0pt 3.0pt'>
    <tr style='height:69.75pt'>
    <td width="9%" style='width:9.52%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal align=center style='text-align:center'><img width=47
    height=47 id="_x0000_i1027" src="images\1.gif"></p>
    </td>
    <td width="28%" style='width:28.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal><b><i><span style='font-size:13.5pt;color:#FF6600'>  </span></i></b><i><span
    style='font-size:13.5pt;color:#FF6600'>frontline</span></i> <span
    style='font-size:13.5pt;font-family:Arial;color:#33CCCC'>ERP</span><b><span
    style='font-family:Arial;color:#33CCCC'> </span></b></p>
    </td>
    <td width="62%" style='width:62.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal style='text-align:justify'><b><span style='font-size:
    7.5pt;font-family:Verdana'>E</span></b><span style='font-size:7.5pt;
    font-family:Verdana'>nterprise <b>R</b>esource <b>P</b>lanning An ERP system supports the planning of the utilization of the enterprises resources, primarily production, distribution and servicing resources, i.e. inventory, production capacity, logistics capacity, employee work hours, etc.<o:p></o:p></span></p>
    <p class=MsoNormal style='text-align:justify'><span style='font-size:
    7.5pt;font-family:Verdana'><br>
    The system works in the modular form and provides complete solution for a small to a large enterprise thus caters to their diverse needs from a simple to complex resource planning and management solution.</span></p>
    </td>
    </tr>
    <tr>
    <td width="9%" style='width:9.52%;padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal> </p>
    </td>
    <td width="28%" style='width:28.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal> </p>
    </td>
    <td width="62%" style='width:62.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal> </p>
    </td>
    </tr>
    <tr style='height:69.75pt'>
    <td width="9%" style='width:9.52%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal align=center style='text-align:center'><img width=47
    height=47 id="_x0000_i1028" src="images\2.gif"></p>
    </td>
    <td width="28%" style='width:28.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal><b><i><span style='font-size:13.5pt;color:#FF6600'>  </span></i></b><i><span
    style='font-size:13.5pt;color:#FF6600'>frontline </span></i> <span
    style='font-size:13.5pt;font-family:Arial;color:#33CCCC'>e-Showroom</span><b><span
    style='font-family:Arial;color:#33CCCC'> </span></b></p>
    </td>
    <td width="62%" style='width:62.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal style='text-align:justify'><i><span style='font-size:
    7.5pt;font-family:Verdana'>frontline </span></i><b><span
    style='font-size:7.5pt;font-family:Verdana'></span></b><span
    style='font-size:7.5pt;font-family:Verdana'> has conceptualized, designed and developed B2B and B2C Portals. The portal provides business rules based shopping for bulk consumers, dealers, corporates & customers. Satellite shops could be setup from the portal that could sell selected / all products from the online shopping mall.
    </span></p>
    </td>
    </tr>
    <tr style='height:12.0pt'>
    <td width="9%" style='width:9.52%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:12.0pt'>
    <p class=MsoNormal> </p>
    </td>
    <td width="28%" style='width:28.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:12.0pt'>
    <p class=MsoNormal> </p>
    </td>
    <td width="62%" style='width:62.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:12.0pt'>
    <p class=MsoNormal> </p>
    </td>
    </tr>
    <tr style='height:69.75pt'>
    <td width="9%" style='width:9.52%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal align=center style='text-align:center'><img width=47
    height=47 id="_x0000_i1029" src="images\3.gif"></p>
    </td>
    <td width="28%" style='width:28.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal><b><i><span style='font-size:13.5pt;color:#FF6600'>  </span></i></b><i><span
    style='font-size:13.5pt;color:#FF6600'>frontline</span></i> <b><span
    style='font-family:Arial;color:#33CCCC'>SFA</span></b></p>
    </td>
    <td width="62%" style='width:62.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:69.75pt'>
    <p class=MsoNormal style='text-align:justify'><b><span style='font-size:
    7.5pt;font-family:Verdana;mso-bidi-font-family:Arial;color:#999999'><o:p></o:p></span></b></p>
    <p class=MsoNormal style='text-align:justify'><span style='font-size:
    7.5pt;font-family:Verdana'>A Sales Force Automation System
    To organize, manage and improve sales call tracking - helps you SELL more. The most powerful sales force automation system - Automates your company�s sales efforts enabling sales people across the entire sales cycle with contact management, email, fax, SMS and task scheduling.
    frontline SFA helps to make the sales pipeline completely transparent, enabling sales teams to track every lead and follow each deal throughout the sales cycle. It enables the Organization to standardize the sales process and to view, manage and control all the activities & information on a real time basis. <o:p></o:p></span></p>
    <p class=MsoNormal style='text-align:justify'><span style='font-size:
    7.5pt;font-family:Verdana'><br>
    </span></p>
    </td>
    </tr>
    <tr>
    <td width="9%" style='width:9.52%;padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal> </p>
    </td>
    <td width="28%" style='width:28.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal> </p>
    </td>
    <td width="62%" style='width:62.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal> </p>
    </td>
    </tr>
    <tr style='height:63.0pt'>
    <td width="9%" style='width:9.52%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:63.0pt'>
    <p class=MsoNormal align=center style='text-align:center'><img width=47
    height=47 id="_x0000_i1042" src="images\4.gif"></p>
    </td>
    <td width="28%" style='width:28.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:63.0pt'>
    <p class=MsoNormal><b><i><span style='font-size:13.5pt;color:#FF6600'>  </span></i></b><i><span
    style='font-size:13.5pt;color:#FF6600'>frontline</span></i> <b><span
    style='font-family:Arial;color:#33CCCC'>CMS </span></b><o:p></o:p></p>
    </td>
    <td width="62%" style='width:62.24%;padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:63.0pt'>
    <p class=MsoNormal style='text-align:justify'><b><span style='font-size:
    7.5pt;font-family:Verdana;color:#999999'>An Email marketing tool...
    <o:p></o:p></span></b></p>
    <p class=MsoNormal style='text-align:justify'><span style='font-size:
    7.5pt;font-family:Verdana'>frontline CMS facilitates bulk e - mailing, bulk SMS and bulk mailing and is a very easy operable tool for marketing. It is a very strong web based application having user-friendly interface enabling user to reach thousand of his contacts round the globe through email and SMS just on one click. </span><o:p></o:p></p>
    </td>
    </tr>
    <tr style='height:1.5pt'>
    <td colspan=3 valign=top style='padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:1.5pt'>
    <p class=MsoNormal style='mso-line-height-alt:1.5pt'>  </p>
    </td>
    </tr>
    <tr style='height:1.5pt'>
    <td colspan=3 valign=top style='padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:1.5pt'>
    <table border=0 cellspacing=1 cellpadding=0 width="100%" bgcolor="#006699"
    style='width:100.0%;mso-cellspacing:.7pt;background:#006699;mso-padding-alt:
    3.0pt 3.0pt 3.0pt 3.0pt'>
    <tr>
    <td style='background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <table border=0 cellspacing=0 cellpadding=0 width="100%"
    style='width:100.0%;mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'>
    <tr style='height:1.5pt'>
    <td colspan=2 valign=bottom style='padding:0in 0in 0in 0in;
    height:1.5pt'>
    <p class=MsoNormal style='mso-line-height-alt:1.5pt'><b><span
    style='font-size:10.0pt;font-family:Verdana;color:#000099'>To know
    more about the multi-fold Path rewards:</span></b></p>
    </td>
    </tr>
    <tr style='height:48.0pt'>
    <td width="54%" style='width:54.0%;padding:0in 0in 0in 0in;
    height:48.0pt'>
    <ul type=disc>
    <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
    auto;mso-list:l0 level1 lfo3;tab-stops:list .5in'><span
    style='font-size:10.0pt;font-family:Verdana'>Call Frontline at
    91.11.2921.2331/2</span></li>
    <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
    auto;mso-list:l0 level1 lfo3;tab-stops:list .5in'><span
    style='font-size:10.0pt;font-family:Verdana'>E-mail: <a
    href="mailto:[email protected]">[email protected]</a></span></li>
    <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
    auto;mso-list:l0 level1 lfo3;tab-stops:list .5in'><span
    style='font-size:10.0pt;font-family:Verdana'>Visit us at: <a
    href="http://www.fsltechnologies.com" target="_blank">www.fsltechnologies.com
    </a></span></li>
    </ul>
    </td>
    <td width="46%" style='width:46.0%;padding:0in 0in 0in 0in;
    height:48.0pt'>
    <ul type=disc>
    <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
    auto;mso-list:l1 level1 lfo6;tab-stops:list .5in'><b><span
    style='font-size:10.0pt;font-family:Verdana'>Contact us at</span></b><span
    style='font-size:10.0pt;font-family:Verdana'><br>
    M-6, M Block Market,<br>
    Greater Kailash - II<br>
    New Delhi - 110048, India</span></li>
    </ul>
    </td>
    </tr>
    </table>
    <p class=MsoNormal><o:p></o:p></p>
    </td>
    </tr>
    </table>
    <p class=MsoNormal style='mso-line-height-alt:1.5pt'><o:p></o:p></p>
    </td>
    </tr>
    <tr style='height:1.5pt'>
    <td colspan=3 valign=top style='padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:1.5pt'>
    <p class=MsoNormal style='mso-line-height-alt:1.5pt'><a
    href="www.fsltechnologies.com" target="_blank"><span style='text-decoration:
    none;text-underline:none'><img border=0 width=250 height=60
    id="_x0000_i1043" src="images\logo.gif"></span></a></p>
    </td>
    </tr>
    <tr style='height:1.5pt'>
    <td colspan=3 valign=top style='padding:3.0pt 3.0pt 3.0pt 3.0pt;
    height:1.5pt'>
    <table border=0 cellspacing=1 cellpadding=0 width="100%"
    style='width:100.0%;mso-cellspacing:.7pt;mso-padding-alt:3.0pt 3.0pt 3.0pt 3.0pt'>
    <tr>
    <td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'>
    <p class=MsoNormal style='text-align:justify'><span style='font-size:
    10.0pt;font-family:Verdana'>FSL Software Technologies Ltd an ISO
    9001:2000 certified company and a leading software solutions provider,
    we realize that in today's competitive environment, business must keep
    pace with the speed of thought. And we believe that your ideas and
    enterprises deserve substantial reinvention. We address the changing
    needs of your business with solutions that are cost-effective, fast to
    deploy, highly scalable and reliable</span></p>
    </td>
    </tr>
    </table>
    <p class=MsoNormal style='mso-line-height-alt:1.5pt'><o:p></o:p></p>
    </td>
    </tr>
    </table>
    </div>
    <p class=MsoNormal align=center style='text-align:center;mso-line-height-alt:
    1.5pt'><o:p></o:p></p>
    </td>
    </tr>
    </table>
    </div>
    <p class=MsoNormal><o:p></o:p></p>
    </td>
    </tr>
    </table>
    </div>
    <p class=MsoNormal><span style='color:windowtext'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
    </div>
    </body>
    </html>
    How i do that
    Regards
    Shambhu

    The functionality that you require is not available to VBA/COM - it is only exposed via C/C++.
    However, you could retrieve the ENTIRE page image to the clipboard and then use whatever VB/VBA methods you choose to grab a section of the image.
    Of course, this all assumes that Adobe Acrobat is installed on each person's computer that will be using the solution since Reader does not have the necessary APIs and Acrobat can't be installed on a server.

  • Problem in file association and main-class in JWS

    Hello , all
    I have a problem in JWS with file association and main-class. I have a java application that has two entry classes, one is appmain.class that is required to launch from web, and the other is player.class that is required to launch when user double-click the .abc extension file.
    In JWS 5.0+, there is a association element in JNLP syntax that can be used to make the file association with .abc extension. But how can I declare the main-class in JNLP file?
    If I declare the application-desc element as <application-desc main-class="player">, the player.class will be launched from web. But if I declare it as <application-desc main-class="appmain">, the .abc extension wil be associated to the appmain.class.
    Does anyone know how to solve this problem? Thank you for your kindly help.

    One way is to define a third main that refers
    to the other two, as appropriate. E.G. if the
    web based main does not include -open as
    its arguments, it is easy.class WebStartSpringboard {
      /** Call web based main unless args include -open. */
      public static void main(String[] args) {
        if (args[0].equals("-open") ) {
          OpenFileBasedClass.main(args);
        } else {
          WebBasedClass.main(args);
    }Other measures might be taken for a situation
    where the web based version does include a
    -open argument.

  • Are enums and inner classes allowed in taglib function signatures??

    Hi,
    I have a taglib with the following function definition:
    <function>
            <description>Determine if viewing a patient attribute is allowed</description>
            <name>isViewingPatientAttributeAllowed</name>
            <function-class>com.example.admin.authorization.UserAuthorizer</function-class>
            <function-signature>boolean isViewingPatientAttributeAllowed(com.example.bean.User, com.example.bean.Patient.PatientAttribute, com.example.bean.Patient)</function-signature>
            <example>
                ${ncvi:isViewingPatientAttributeAllowed(user, patientAttribute, patient)}
            </example>
    </function>Where com.example.bean.Patient.PatientAttribute is an enum (note package names have been changed to protect the innocent;-). When I try to compile my web app I get the following error:
    org.apache.jasper.JasperException: The class com.example.bean.Patient.PatientAttribute specified in the method signature in TLD for the function ncvi:isViewingPatientAttributeAllowed cannot be found. com.example.bean.Patient.PatientAttributeIf I change PatientAttribute to a static inner class of Patient, I still get the error. Are enums and inner classes allowed in function signatures?
    Thx.

    I think that you'll find it easier to define a non-inner abstract class RefBase, that exposes a removeFromQueue() method, then extend that for your Ref class. That way, the queue just deals with RefBase instances (or ? extends RefBase).
    I think that any other approach is going to get the compiler confused, because the compile-time Ref depends on the parameterization of its defining class.

  • Annonymous and inner classes

    Hello,
    Can anyone tell me what the benefits of anonymous and inner classes are? inner classes are seem pretty complicated without any obvious benefit.
    I have read about these in books and have some understanding of them but these don't appear to have any benefits.
    Any info on either would be really cool.
    regards

    There are many places where inner classes can be useful. One place where anonymous inner classes are particularly neat is for ActionListeners. For example, compare the "normal" way of doing it:
         for(int i = 0; i < 2; i++)
              JButton button = new JButton("Button " + i);
              button.setActionCommand("ACTION" + i);
              button.addActionListener(this);
         public void actionPerformed(ActionEvent e)
              if("ACTION0".equals(e.getActionCommand()))
                   doSomething(0);
              else if("ACTION1".equals(e.getActionCommand()))
                   doSomething(1);
         }with the way using anonymous inner classes:
         for(int i = 0; i < 2; i++)
              final int index = i;
              JButton button = new JButton("Button " + index);
              button.addActionListener(new ActionListener()
                        public void actionPerformed(ActionEvent e)
                             doSomething(index);
         .In the first case you need a global actionPerformed method with some if statements inside. If there are many types of action then this can quickly become very large and error-prone. In the second case, each action is handled in its own class, right with the button that it's associated with. This is easier to maintain. Note that local variables must be declared final to be accessible from the inner class.

Maybe you are looking for