drag-and-drop

How to use HTML5 Tags within ADF FACES

旧城冷巷雨未停 提交于 2019-12-11 19:36:29
问题 I'am looking for a pretty and easy way to use HTML5 Tags inside of my Adf Faces Application. I'am using ADF 12c and it's supposed to support HTML5 and CSS3. Until now i get this <f:facet name="center"> <af:inputText label="Label 1" id="it1" placeholder="Test"/> </f:facet> placeholder is an HTML5 feature. My questions: How can i use something as Canvas or Drag and Drop Events ? 回答1: You can use canvas tags directly, you can use normal HTML tags with ADF Faces 12c, and you can inject EL

How to handle type “Object {System.Collections.Generic.List<object>}”

旧巷老猫 提交于 2019-12-11 18:50:10
问题 This is my first time encountering with such an object. >Link of image of my local window during debug< So to put it very simply, how do I access the value for CardNO or ItemID, which is 296 and 130 respectively when the only methods 'test' give are exactly like a normal object and I don't know what to cast it to. I can't even do this 'test[0]'. This is where 'test' comes from: private void ListBoxIssue_OnDragEnter(object sender, DragEventArgs e) { var test = DragDropPayloadManager

Add drag behavior to a form with FormBorderStyle set to None [duplicate]

混江龙づ霸主 提交于 2019-12-11 18:45:15
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: C# - Make a borderless form movable? If I set my form's FormBorderStyle to None , I lose the drag behavior of the form, as expected. I've added a custom bar to the top of my form and I like it to stay that way, now is it possible to keep the form in this mode and have (or write) drag behavior? If it's possible, how should I do so. I really hope to find a Yes it's possible answer. :) 回答1: private const Int32 WM

Generic DragDrop Behavior in WPF DataGrid

我怕爱的太早我们不能终老 提交于 2019-12-11 18:09:53
问题 I made a Behavior Drag Drop Beahvior which take a Collection (Implementing IList like ObservableCollection,LIst) And its working alrght... but if I Use CollectionViewSource.View (in the Xaml Binding), the behavior falis.... How could I make this behavior Generic (LIke independent of type of DataSource attached to DataGrid) Is it even possible as I am using methods for IList interface like Insert(object item) 回答1: This problem already has an open source solution, see Wpf Drag & Drop behaviour.

JLabels, that store ImageIcons, are returned back to original location when the mouse is clicked in the panel

戏子无情 提交于 2019-12-11 18:07:36
问题 I've added this listener to a JLabel, and I am able to drag the image around perfectly, However, as soon as I click on the panel(in an area where a JLabel is not present) the label returns back to it's original location. I can't figure out why that would happen. Please help me out, I've spent hours working on this. Thanks! public class CardLabelListener extends MouseAdapter { private MouseEvent initiateEvent = null; @Override public void mouseReleased(MouseEvent me) { System.err.println(

angular dragdrop not working with IE

雨燕双飞 提交于 2019-12-11 18:04:38
问题 I'm using angular-dragdrop.js (http://codef0rmer.github.io/angular-dragdrop/#/) It works nicely on Chrome but generates error at drop in IE. (drag an item from a list and drop it to another list) I have a requirement that the app needs to work in IE8. I saw the error in console, apparently it is complaining about $timeout in the angular drag drop code: $timeout(function(){this.mutateDraggable(v,u,o,i,s,l,e);this.mutateDroppable(d,u,o,s,f,a);this.callEventCallback(d,u.onDrop,n,r)}.bind(this))

Drag and drop exception. Desktop objects [duplicate]

我与影子孤独终老i 提交于 2019-12-11 17:47:16
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed last year . I am using Drag & Drop ListView on files (directories or any kind of files). When i drag&drop My Computer or Bin from Desktop NullReferenceException happens. All i want is to skip this element (display some text in log textbox or smthing). I have no idea how to achieve that. I don't know what kind of object is MyComputer element from Desktop. Here's my code after

How to limit rest calls angular

杀马特。学长 韩版系。学妹 提交于 2019-12-11 17:41:36
问题 I am working on a kanban style drag&drop system with ng2-dragula. And I have an issue, and I think it's because every time you drop an item to a new place it sends the data to the server and redo the whole list of items that you can drag around. And if you do it fast enough you can break the drag&drop cycle. Is there a way to limit the intervall you can make an API call? Similar to RxJS debounceTime, but since the list is almost always changing I cannot pipe a filter to it. Basic constructor

How to drag images from one imageview and drop to another image view.

牧云@^-^@ 提交于 2019-12-11 17:33:42
问题 public class Quiz extends Activity { int windowwidth; int windowheight; ImageView ima ima2; private View selected_item = null; private int offset_x = 0; private int offset_y = 0; private android.widget.LinearLayout.LayoutParams layoutParams1, layoutParams2; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.quiz); windowwidth = getWindowManager().getDefaultDisplay().getWidth();

How to drag and drop file with Python Selenium?

ⅰ亾dé卋堺 提交于 2019-12-11 17:24:11
问题 I would like to check in my test (selenium / python) creating a new image on the site. I need to load a picture for it. How can I do this when I have the option to use the drop or file explorer field. As far as I know, I can not use the file explorer because there is no id or name. How to use the drag and drop method? I have this code but it does not work: element = driver.find_elements_by_id ("file_upload") element.send_keys ( "C: \\ Users \\ Desktop \\ Robert \\ Construct_ImminentCollision