How to know drop location with a transfer handler?
Using the Swing TransferHandler, there doesn't seem to be a way to figure out the location of the drop!
Does this mean I must use the older mechanism instead of this new one, my situation here requires that I know where the object is being dropped so that I can add it in the right location.
Help!
Hey, anybody using drag & drop at all?!?!
It's funny, you search around the web and the new features of 1.4 drag & drop are nowhere to be found/discussed!
:-(
Similar Messages
-
How do show JTree DnD drop location with custom TreeRenderer?
I am adding DnD support to a JTree with a custom renderer.
With the custom renderer I am losing the display of drop location on the tree.
Is there a method to determine if the passed in node object in the getTreeCellRendererComponent is currently a drop location?
I can tell if the node is selected, but not if a DnD is in action on the tree.
Thanks,
ChrisIs there a method to determine if the passed in node object in the getTreeCellRendererComponent is currently a drop location?
I can tell if the node is selected, but not if a DnD is in action on the tree.If you are using Java 1.6 you should be able to do something along these lines:Install a TransferHandler on your tree, and override the method canImport() that takes a TransferHandler.TransferSupport as input argument. That method is called repeatedly during the drag process.
In that method, ask the passed in TransferSupport for the current drop location, by calling getDropLocation(). For a JTree that will return a JTree.DropLocation, which in turn has methods for finding out which node is the current drop target. Store that node in a variable that your renderer can access. -
How to obtain current location with in a flow
Hi,
This might be very basic level query, but i cant figure it out.
I want to extract the location with in a flow. ie in my proxy service i have multiple stages and with in each stage i am using some log actions to print some statements. I can see the log statement does shows the location where the 'log' is generated from. something like this
<ERROR> <ALSB Logging> <BEA-000000><*[Message Flow Pipeline, Message Flow Pipeline_request, stage1]*> My Message
My Query is how i can obtain this string "*[Message Flow Pipeline, Message Flow Pipeline_request, stage1]" , in some variable, in my flow in case i need to log my current location somewhere.
Many thanks for your help!
sallthanks guys!
I had already looked for any context variable which could provide the current location but no success!
The business scenario is:
Proxy request pipleline has saveral stages, from within each stage i have to make a java callout, which is basically a internal logging mechanism, with current location.
Currently i am using hard coded string value e.g. "[JMS Flow Pipleline, JMS Flow Pipeline_request, Stage 1]" or "[JMS Flow Pipleline, JMS Flow Pipeline_request, Stage 2]", which is pretty pathetic. Any ideas how can we obtain the current location, within a flow, and assign it to some variable like location etc???
I would like to use something like '$input/@name' which returns some string "ProxyServices$Template$Services$ProxyService"
I hope this explains bit more, however let me know if you need more clarification.
thanks
sall -
How to know if implementation with a filter value exist for a BAdI in code?
Hi all,
Scenario:
I created a BAdI. There will be a button on the UI to call its implementation(s); while if there is no implementation with specified filter value, this button needs to be hidden. Thus I need to know if the implementation exist before calling it.
Question:
In the ABAP code, how to get whether implementation with specified filter value exists for a BAdI?
If it's possible, please help provide code.
Thanks and regards,
SaidProblem solved:
data: r_badi type ref to YOUR_BADI,
badi_impl_num type i.
get badi r_badi
filters
flt_name = fit_val.
badi_impl_num = cl_badi_query=>number_of_implementations( badi = r_badi ).
if badi_impl_num > 0.
"there are badi implementation(s)
endif. -
How to register a Location with database link in Ombplus?
Hello,
what's the detailed syntax in owb 10.2 to register a location with a database link?Hi,
thanks that helps.
Now i found out that after an import of the location the field "from Location" is not set. I need to set it to OWB_REPOSITORY_LOCATION.
How can i do it?
OMBALTER LOCATION 'Locname' SET PROPERTIES (FROM_LOCATION) VALUES ('OWB_REPOSITORY_OWNER') does not work
-> Property FROM_LOCATION is not defined in class ORACLE_GATEWAY_LOCATION
Cann you help me again?
Thanks
Helga -
How to know the location of JDBC Driver/ connection
unable to find JDBC driver and connection location
How can I know the location of "JDBC Driver" for the input box JDBC Driver to confrigure this in ID.
The same for "Connection" too.
urgent input (no links please) will help me.
Thanks
SYHi,
You can ask basis person to get the location of JDBC driver.
http://help.sap.com/saphelp_nw2004s/helpdata/en/80/4f34c587f05048adee640f4c346417/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/frameset.htm
Hope this helps.
Regards,
Moorthy -
How to create Drop-Down with Function Module REUSE_ALV_GRID_DISPLAY
Hi Experts,
I have used Reuse_alv_grid_display function module in my report for ALV output. I have a requirement to add drop down in one cell of my output. I have searched but all are suggesting through OOPS programing that I can not use.
If it is possible with the given scenerion , please help me how to write the code for it?
Thanks a bunch in advance.Hi,
You can check demo programs:
BCALV_EDIT_06
BCALV_EDIT_07
Hope it helps
Regards
Mansi -
Mac os 10.5.8: how to know if infected with backdoor.flashback.39
I am running Mac OS X 10.5.8 and not tech savy. How do I know if I'm infected with backdoor.flashback.39?
Flashback Trojan User Tip
Malware Checker Dowload Link
Additionally you can Google search as there is plenty out there to find. -
How to know tablespaces, related with one user
hi experts,
please tell me how can i know the name of tablespaces, who are related with one user.
thanx and regardsI wish more people would use quota instead of the resource role and unlimited tablespace.UNLIMITED TABLESPACE is a particularly noisome privilege, because it grants quota on all tablespaces, including SYSTEM. The fact that RESOURCE used to include this privilege in its portfolio was the main reason not to grant it willynilly.
Cheers, APC
blog: http://radiofreetooting.blogspot.com -
HOW TO KNOW VALID XML WITH DTD ? WITHOUT PARSING ?
i am creating the xml file
i need to validate the xml with DTD to confirm is it valid or not ?
with out parsing...
could you tell me how ?
Durgawithout parsing u cant do it..
-
HT204053 how may a share location with another apple id
I want to enable another family member to find my location. How may i authorize that .
Download "Find my Friends" app in both devices.
Invite the other member through this app. -
HOW TO KNOW THE LOCATION OF MY LOST PHONE IT HAS BEEN FOUND ALREADY BUT I DON'T KNOW WHERE TO GO
Please stop typing in caps. It is difficult to read and rude, Caps are considered shouting on the web.
Odds are that is a scam.
Post more details, such as phone number and we'll confirm if it is a scam or not. -
HT2693 How do I know the location of my Mac using my iPhone or my iPad
how to know the location of my Mac
If you have Find My Mac enabled on your Mac and it's connected to a network, then you can log into your iCloud account in the Find My iPhone app (the app should be in your country's app store) on your iPhone or iPad and see if that can locate it.
-
Issue while creating location with database link
Hi all,
I am using OWB 10.2.0.4.0 (same Oracle DB version). I am trying to create a location using a database link.
When I select the location which the database link is located (From location drop-down list), I face the following error.
>
ENV0036: The selected location is not valid.
ENV0036: The selected location is not valid.
at oracle.wh.service.sdk.integrator.RepositoryUtils.createDBLinkWithLocation(RepositoryUtils.java:156)
at oracle.wh.ui.environment.wizards.DatabaseLinkComponent.init(DatabaseLinkComponent.java:61)
at oracle.wh.ui.environment.wizards.DatabaseLinkComponent.reload(DatabaseLinkComponent.java:204)
at oracle.wh.ui.environment.wizards.FromLocationComponent.itemStateChanged(FromLocationComponent.java:111)
at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1162)
at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1219)
at javax.swing.JComboBox.contentsChanged(JComboBox.java:1266)
at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
at javax.swing.JComboBox.setSelectedItem(JComboBox.java:551)
at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)
at javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased(BasicComboPopup.java:749)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
at java.awt.Component.processMouseEvent(Component.java:5100)
at javax.swing.plaf.basic.BasicComboPopup$2.processMouseEvent(BasicComboPopup.java:452)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:542)
at java.awt.Dialog$3.run(Dialog.java:569)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:567)
at java.awt.Component.show(Component.java:1133)
at java.awt.Component.setVisible(Component.java:1088)
at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
at oracle.wh.ui.owbcommon.OWBWizard.initialize(OWBWizard.java:815)
at oracle.wh.ui.owbcommon.OWBWizard.<init>(OWBWizard.java:168)
at oracle.wh.ui.owbcommon.OWBWizard.<init>(OWBWizard.java:147)
at oracle.wh.ui.owbcommon.IdeUtils._doLaunchDefinition(IdeUtils.java:1188)
at oracle.wh.ui.owbcommon.IdeUtils.showWizard(IdeUtils.java:471)
at oracle.wh.ui.owbcommon.IdeUtils.showWizard(IdeUtils.java:427)
at oracle.wh.ui.jcommon.tree.WBRepositoryObjectTree.launchWizard(WBRepositoryObjectTree.java:502)
at oracle.wh.ui.console.commands.CreateByWizardCmd.showUI(CreateByWizardCmd.java:33)
at oracle.wh.ui.console.commands.CreateCmd.performAction(CreateCmd.java:76)
at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
>
Could you please let me know how to solve this and how to create such location with OMB*Plus?
Thanks,
SebastianHi David,
Thanks a lot for the tip. Now I was able to use this and using a registered location.
OMBCREATE LOCATION 'X' SET PROPERTIES (TYPE,VERSION,CONNECTION_TYPE, SCHEMA) VALUES ('ORACLE_DATABASE','11.1','DATABASE_LINK','MY_SCHEMA')
OMBCREATE CONNECTOR 'REGISTERED_LOC/X SET PROPERTIES (DATABASE_LINK_NAME) VALUES ('MY_DBLINK') SET REF LOCATION 'X'
OMBCOMMIT
OMBCC '/MY_PROJECT'
OMBCAC 'DEFAULT_CONFIGURATION'
OMBCONNECT CONTROL_CENTER USE 'owb_user/owb_user'
OMBREGISTER LOCATION 'X' REUSE
OMBCOMMITBut now my question is the following.
I am having problems to import the metadata from X.
When create a module (source), I am able to make "data location" from location 'X' but when I want to import a table from location 'X' is not possible, because it shows as a plausible metadata location as "REGISTERED_LOC"
Could you please let me know how to use 'X' as metadata location?
Thanks!
Sebastián -
I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?
Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.
Maybe you are looking for
-
Safari not loading any webpages after 10.7.3 update.
I did the update through software update, and I saw a lot of people having errors with that, but i did not get the cui error, my only issue is safari stopped loading any webpages. If I try to enter an address in the bar and hit enter, it just beachba
-
How do I go back to default Open With application in /Library/Mail/cache
Help! I was trying to find a mailbox that got deleted. In looking at /Library/Cache/Mail/ to see if the mailbox was there, I tried to open a cache. There was no application to open the document, so I clicked Mail Document, or something--I don't even
-
Reg: filters for the perticular vendor..
Hi all,, I want to put Filters are required to be set up for particular Vendor number (Ex: 14562365). The Filters required are as below. Message type Segm.type MATMAS1 E1EMAS1 Can any body please tell me the proce
-
Encrypting authentication details - HTTP URL Connection
Hi, We have a Java application which retreives HTML content from intranet page using HTTPURLConnection, displays the portion of the content. The site to which we are connecting using HTTPURLConnection requires baisc user authentication and we are pas
-
CS6 Crash In dynamiclinkmanager.app
Hello Folks, I am getting a crash on startup of AE CS6. Mine is Last log message was: <140735178053984> <DynamicLink> <5> /Library/Application Support/Adobe/Common/dynamiclink/CS6/dynamiclinkmanager.app I am an IT Consultant so I have done some trou