How to Perform an Action from an outside MouseListener.

Hi to all,
The MouseListener Object can be either inside the main applet class or outside it. I want to define the MouseListener object outside the applet class.
My question is how can the MouseListener object perform the specified action on an mouse event, when it is outside the main applet class?

By "outside" you mean it's a top-level class, as opposed to a nested class?
An event handling class is just a class that performs certain required actions. It doesn't need to be an inner class.
If you're asking how a top-level class can access another class's private data or methods...it can't. So the programmer is required to do the various things that are necessary to control and/or permit access, which one has to do in other cases where one class needs (or seems to need) another class's privates.

Similar Messages

  • OSB : How can we copy  actions from one project folder to other projects?

    How can we copy actions from one project folder to other projects in OSB?
    For eg:
    I have a service call out action in Project1/proxySer1
    I want to copy this to Project2/proxySer2.
    Espicially, in our case error handling callout is common to all of our projects and we should be able to copy from one to another.
    Edited by: user10367892 on Aug 20, 2009 12:28 PM

    Thank you for the reply.
    It was my fault. I was on two different servers, while i was doing this and so didn't work. But copy /past action works as you suggested.
    Can I select multiple actions from one stage and paste to different proxy service? I have too many options to copy/paste and hence I have this question.
    Is there any other way of copying all selected actions in one stage to another, but not the complete stage itselft?

  • How can I map SSH from an outside network range to an internal host (ASA 5505)

    Cisco Adaptive Security Appliance Software Version 7.2(4)
    Device Manager Version 5.2(4)
    - External network range that needs SSH access: 8.8.8.0/24
    - Outside interface: 10.1.10.2 (NAT'd from 7.7.7.7)
    - Inside Network: 192.168.100.0/24
    - Inside host to redirect external SSH to: 192.168.100.98
    Hi All,
    I have a Cisco ASA 5505 (version above) and I have someone that needs to SSH into a box behind the ASA. I'm having a few issues trying to configure this access-list and NAT. I've tried many combinations and clearly my IOS is not as good as I thought.
    Can anyone help with this? What commands should I enter to accomplish mapping SSH from an outside network range to an internal host?
    Many thanks,
    Tarran

    This may or may not work depending on how your modem handles the natting. On your firewall try this -
    static (inside,outside) tcp interface 22 192.168.100.98 22
    then add this to your acl on the outside interface of your ASA -
    access-list outside_in permit tcp 8.8.8.0 255.255.255.0 host 10.1.10.2 eq 22
    if you don't have an acl applied then add this extra step -
    access-group outside_in in interface outside
    Jon

  • How to perform TERMINATION action

    Hello experts....
    I am new to SAP... can anybody please let me know how to configure termination action and what type of infortype we will configure for Termination.Thanks in advance...........

    Hi,
    Follow the below mentuion steps:-
    1. Create an action say 'TM' at the img path mention below:-
    Personnel Management->Personnel Administration->Actions->Set up personnel actions
    2. Create action reasons also at the link below:-
    Personnel Management->Personnel Administration->Actions->Create reasons for personnel actions
    3. Add the termintaion action in the Action menu of your country:-
    Personnel Management->Personnel Administration->Actions->Change action menu
    4. Define infogroup for your termination action below:-
    Personnel Management->Personnel Administration->Actions->Define infogroups
    Usually, IT0001, IT0002, IT0014, IT0015, IT0041 are set up in the infogroup action. Also, get the requirements from your customer like which all infotype he will like to delimit.
    5. Most important is to set the Inactive status for the employee
    Go to table T529A and set the status as '0' in the employment field 'STAT2'.
    Thanks & Regards, Swapnil Mishra

  • How to "Performing an Action on Multiple Selected Records" using Struts-JSP

    Hi all:
    How to do "Performing an Action on Multiple Selected Records" through using Struts/JSP solution that is original MVC/UIX customizing example by Jheadstart.
    I know how to reason by analogy through tutorial guide on
    Model and Control layer of MVC , but for View layer that is torment to me !
    have any idea ?
    thanks a lot .

    Ting Rung,
    In the table in the JSP page you add a checkbox like this:
    <td class="fixed">
    <input type="checkbox" name="multiselect" value="<%=index%>"/>
    </td>
    This will render a checkbox in each row, with index number of that row as value.
    When you submit the page the request contains the multiselect parameter when at least one row has the checkbox checked.
    You can get the value of the multiselect parameter by calling sessionData.getRequestParameterValues("multiselect") in your action. The value is a string array containing the index numbers of the rows that have the checkboc checked.
    Steven Davelaar,
    JHeadstart Team.

  • How do you import actions from an older version of elements to a newer one?

    I just upgraded from Elements 6 for a mac to Elements 9. I have about twenty or so actions  I've downloaded into Elements 6.  Does anyone know how I might import these actions into Elements 9?  I'm hoping there is an easier way than importing them each one by one from the original files.....Thanks!

    I was about to post to ask Paul what advantage there is in Exporting/Importing Projects over simply converting the Library as kbeat suggests.
    Then I reread the original post and realized that what you are trying to do is combine the two libraries.
    If that's the case, Paul has given you the answer.
    DLS
    Message was edited by: MacDLS

  • How do I migrate Actions from Old Version to new?

    I've been using Photoshop 6.0 for years and have many custom actions that I have created myself. I've now downloaded the trial for photoshop CS2. I want to use the actions I've created in version 6 in CS2. How do I migrate these old actions into CS2? What files do I copy to the CS2 folder from my version 6 folder?
    I don't see any difference in the actions files (.atn files) listed in /presets/actions folders. File sizes are the same and I don't see any action group files with the names I saved them in. Where are my custom actions and how do I move these old ones into the new version? My actions were saved in a group called 'My Actions'. I see no .atn file with that name.
    This is the only thing I need to figure out. Upgrading to CS2 is a no brainer -- it has many fixes that version 6 needed. But I don't want to recreate the old actions. There's got to be a way to do this. Please tell me what I need to do.
    Thanks.

    First of all, you should have been using 6.0.1.
    You need to save your Actions before you can move them around. Just putting them into a set is not enough. From the Actions palette flyout arrow, choose New Set (or click on the little folder icon at the bottom of the palette), name it and put your custom Actions in it. Then go to the flyout menu and choose Save Actions. Save the Set to any location you wish (Presets Folder is a good place.
    That will make an .atn file that you can move or copy anywhere you like. You can load it in the new version from its location (flyout arrow> Load Actions) or put (copy) it in the Photoshop Actions folder in Presets which will let you load it by choosing from the menu.

  • How to call another action from Struts dispatch action?

    Hi all,
    there is a method in dispatch action that needs data from another chained action. How should other action determine which method in dispatch action will receive response and how should these data be returned from called action? Called action does not have associated form bean
    thanks,

    Not sure, why are there then "chained actions" is struts practice? Struts allows action without form bean to be configured and the action is a class?

  • How to perform multiple selection from dropdown list

    Hi,
           I have developed one application in which i have taken one dropdownbyindex and entered some values in it, now i need to have multiple selection of entries, can any one please suggest how to do these
    Regards,
    Prasanna

    A drop-down list is by definition a 1-from-many selector.
    Armin

  • How do I block pings from the outside to the ASA 5505 outside interface?

    I was asked to block pings from the internet to the outside interface of our ASA-5505 firewall.  I found a post that said to enter "icmp deny any outside", however that does not do it.
    I created an ACL to try and do the trick, also to no avail:
    access-list outside_in extended permit icmp any any echo-reply
    access-list outside_in in interface outside
    access-group outside_in in interface outside
    Anyone have a clue what I'm doing wrong?  I'm not the firewall guy as you can tell.  :/
    Thanks in advance...
    Block / Deny ICMP Echo (Ping) on Cisco ASA Outside Interface
    Most networks that you protect with a Cisco ASA device, will probably want to deny ICMP (maybe not all ICMP types, but a lot of network admins will want to block ICMP Echo, etc.) on the outside interface. This will make the network harder to find through external enumeration, but not impossible.
    ASA5505(config)#icmp deny any outside
    You will deny ICMP on the outside interface, but if you include ICMP as a protocol in the default global policy map, you can ping from the inside to any host on the outside, and it will be permitted back through the ASA, as it knows about the previous ICMP “connection

    You are allowing echo-reply, thus it will reply to a ping
    try this ACL:
    icmp deny any echo-reply outside
    From: 
    https://supportforums.cisco.com/thread/223769
    Eric

  • How can I move actions from old computer using Elements 6 to new computer using Elements 12?

    I downloaded some actions onto my old computer using Elements 6. I would like to move them to my new computer using Elements 12. How do I do that?

    Does she have any photos in the iPhoto library on her new machine?
    What version of iPhoto does she have?
    The general answer is to trash the iPhoto library on the new computer (assuming it is empty) and drag the old iPhoto library to the pictures folder of the new machine and launch iPhoto letting it convert the library
    LN

  • How to perform click action on the notification received in windows phone 8.1 silverlight app?

    Hi,
    I am developing a windows phone 8.1 silverlight app , I added push notification service to my app and I am able to receive notifications . 
    My question is when the app is not opened and the notification is received , if the user clicks on the notification it is directly taking to the app ,
    but I want to redirect it to a specific page in my app How is it possible?
    Any help..
    Thanks..
    Suresh.M

    Thanks for your information
    but where to write the rootframe.urimapper  , I think it is in app.xaml.cs , If I write urimapper , how do I know I am navigating from notificaition?
    Suresh.M
    Why you need to know it is from notification? If you must need to know this, try to check deep link
    Best Regards,
    Please remember to mark the replies as answers if they help

  • How to perform an activity from an external link using PAPI?

    Hi,
    The question is:
    I've got an external web application that lists all the instances of a user's inbox.
    On every item of the list, I've got a hyperlink. Through this link, I just want to perform the very interactive activity this instance requires.
    (Just like the activity link in workspace. If the activity's task is a screen flow, the link will also perform that screen flow. All the difference is that it's an external link)
    Thanks a lot

    If you want to execute an screenflow from an external application the only way I know is with WAPI.
    You can check the WAPI possibilities in your installation in /weabapps/workspace/wapi/urlActionsExample.jsp
    HTH

  • How to hide custom actions from Oracle Worklist Application (Conceptual)

    Hi,
    I have a conceptual question in relation to Worklist Application and the Oracle Workflow. I will explain, now:
    This is the image that demonstrate the situation (worklist app console): http://i53.tinypic.com/34h9ilw.png
    As you can see, i have 4 custom actions (ENVIAR_ANALISE_FRAUDE, APROVAR, REPROVAR, ENVIAR_ANALISE_NIVEL2) and i have three main regions in the image
    (Action By Menu 1, Action By Menu 2 and Action By Button 3).
    I have to make same custom validations when the user to choose any action, then inside of the JSPX file (Human Task Page Generated), i made the following customizations to reach my objective:
    1) At the Region 2 (Action By Menu 2) - I delete these lines of code to hide the actions:
    <af:group id="g2">
    <af:forEach var="childNode1"
    items="#{actionAvailable.customActions}">
    <af:commandMenuItem textAndAccessKey="#{childNode1.displayName}"
    actionListener="#{invokeActionBean.setAction}"
    action="#{invokeActionBean.action}"
    partialSubmit="false" id="cmi2">
    <f:attribute name="ACTION_MENU_ITEM"
    value="#{childNode1.action}"/>
    </af:commandMenuItem>
    </af:forEach>
    </af:group>
    2) At the Region 3 (Action By Button 3), i change the default action button's to point to my managed bean action and make the required custom validations, in accordance to my requirements. After that i made my validations, i call some lines of code to make with the Oracle Workflow executes your default internal functions when an action is clicked.
    <af:commandToolbarButton actionListener="#{myManagedBean.setOperation}"
    text="Aprovar"
    disabled="#{myManagedBean.isErrorOccurred}"
    action="#{myManagedBean.invokeMyCustomizedOperation}"
    partialSubmit="false"
    visible="#{wf:isCustomActionAvailable('APROVAR', 'bindings.customActions')}"
    id="ctb2">
    <f:attribute name="DC_OPERATION_BINDING" value="bindings.APROVAR"/>
    </af:commandToolbarButton>
    public void setOperation(ActionEvent p1){
    this.acaoSelecionada = (String) p1.getComponent().getAttributes().get("DC_OPERATION_BINDING");
    this.operation = UtilWorkflow.getInstance().getOperationFromHumanTask(this.acaoSelecionada);
    this.operation.execute();
    InvokeActionBean ia = (InvokeActionBean)ADFContext.getCurrent().getRequestScope().get("invokeActionBean");
    ia.setFinalizerJavaScriptName("closeBrowser()");
    ia.invokeScript();
    3) The great problem for me now is the region 1 (Region By Menu 1), this the part of Oracle Worklist Application and i cannot hide this Menu or change anything inside it. If the user click at the 'APROVAR' action, my custom validations will be ignored and the Workflow will approve my task, without intervention of my validations.
    After explaining everything this, here are my questions:
    1) Is this the correct way to work with the Oracle Soa Suite ?
    2) How can i hide the Region 1 (Action By Menu 1) ? Is possible ?
    Thanks,
    Victor Jabur

    Hi,
    I am also in need of hiding or having custom validations for the actions in Region 1. Does anyone have any suggestions? Please help!
    Thanks,
    Farhana

  • How to perform loop action in ODI

    hi all,
    i want to implement a function which fetches data from 3 tables and then inserts into one table
    but the problem is there with the loop.
    the function contains a loop and i dont know how to implement a loop in odi.
    anyone can give a solution.
    regards,
    prateek.

    hi guru,
    yes i have fk between the tables but i am not able to understand that how to apply the exit condition and how to tell the interface that if the exit condition is not satisfied then again loop back.
    can you please explain this in detail.
    thanks and regards,
    prateek sharma.
    Edited by: user11116379 on May 21, 2009 5:32 AM

Maybe you are looking for