Detecting a click on Grid while row editor is opened in buffered mode - gwt

I want to show the dialog box by clicking on a different row (with options to save changes or cancel).
When Editor is open, it will catch the click and is stoping the event propagation, thus underlying Grid does not get the click event and ItemClickEvent is not being fired.
Is it possible to detect a click on the grid row through extensions or another way?

Is it possible to detect a click on the grid row through extensions or another way?
Technically speaking yes. E.g. GridFastNavigation add-on does this trick in order to make possible single click editor opening.
But you could also listen to Editor opening, see (https://vaadin.com/download/release/8.3/8.3.1/docs/api/com/vaadin/ui/components/grid/Editor.html#addOpenListener-com.vaadin.ui.components.grid.EditorOpenListener- ) when you are in unbuffered mode Editor already open, editor will re-open on the row you click. This catching this event could help you find a way.

Related

Filter toggle grays out workbook and only a manual refresh fixes

This is only happening with one workbook, all others function fine. I've tried live vs extract, restarting and reconnecting/refreshing my data source. Every time I toggle one of my filters, my visual is grayed out. Each time I toggle a filter, I have to right click the data source and refresh.
See Automatic Updates
In the menu bar, Worksheet -> Auto Updates, "Auto Update Worksheet" is likely unchecked which would cause the described behavior (or use the pause/play icon in the toolbar).

How to make GraphicalEditorWithFlyoutPalette's PaletteView visible on first start

My GEF editor (extending GraphicalEditorWithFlyoutPalette) always opens the editor with the palette hidden on first start of the application / first opening of the editor (after a build for example).
As this will potentially bewilder users who'll need to go in search of the flyout icon first, I'd like to have the palette view shown whenever the editor is opened. The user can then choose to close it on his/her preferences.
How can I achieve this? The API doesn't seem to give any clues, or I'm unable to find them...
The state of the palette defines if it is open or closed. This state is accessible using the getPalettePreferences().setPaletteState() method that is accessible in the GraphicalEditorWithFlyoutPalette. To open the palette, you must set it to the FlyoutPaletteComposite.STATE_PINNED_OPEN, like this:
getPalettePreferences().setPaletteState(FlyoutPaletteComposite.STATE_PINNED_OPEN);
If you want to ALWAYS override the state so that the palette is always opened with the editor, you have to add the line to the constructor of your editor. If you only want to do this once, and then leave the state as it was last selected by the user... No idea how to do this :-(

How can I go to the next Eclipse marker (e.g. build error) using the keyboard?

Suppose I make a method signature change that breaks several callers, and I want to review the call sites manually to update them.
Once I change the signature, my "Problems" view shows, say, a dozen errors.
What keys can I hit to navigate through them while leaving the keyboard focus in the editor for fast fixups?
(It's been a while, but I think the Visual Studio equivalent is F8.)
Note that this question does not duplicate Eclipse: How to go to a error using only the keyboard (keyboard-shortcut)?, as that one seeks to navigate only between markers in the current file. In this case, I want to go to the next error regardless of which file it's in.
("Marker" is the general Eclipse term for errors, warnings, etc.)
The best I've come up with so far is Ctrl + F7 to flip to the Problems view, then ↓ to pick the topmost error, then Enter to go to it (which returns focus to the editor).
Here's a way to move to the next error, regardless of editor, in one keystroke. It's not perfect, but it works until it's fixed in Eclipse.
Open a "Markers" view. Click the down arrow at the top right, and choose "Configure Contents". Uncheck the show all box, and create the view to show only the problems you want to see. You'll probably want to deselect "warnings" and "errors" as well. Save it.
Click the same "Markers" down arrow, and choose "Group By". Select "None". This is important because you don't want the parent tree level nodes to show, otherwise some of your "next" actions will take you to those, which don't represent an error.
In Eclipse -> preferences -> keys, search for "Markers". If there is not a keystroke bound to the Markers view, create one. I use Ctrl + Shift + M
Get a keyboard hotkey tool like AutoHotKey (for PC's) or iKey for the Mac. I'm using iKey, but there are plenty of other Mac tools you can use. In your hotkey tool, define an action for the keystroke you want to use for "next error". I chose the standard CMD + .
For that keystroke/action in your hotkey tool, generate 3 keystrokes in the following order:
Ctrl + Shift + M
Down arrow
Enter
Of course, you'll want to change the first one to whatever you picked for yours. You'll probably want to restrict that action to be executed only when Eclipse is the current application.
Save that, create some compile errors, and test it.
Try Ctrl + 3 for Quick access popup window.
If the "Markers view" is not already visible, then type in "markers", in the searchbox on the popup window. Once you have selected it, it should stay available, when you press Ctrl + 3 the next time around.
I just had the same problem, after refactoring some parts of code. I had a lot of errors in different files and i had to go through all of those.
I used the following solution:
Mark all (relevant) entries in the Problems view.
To do this switch to the Problems view using Ctrl+F7 and select the entries with Shift+↓/↑
You can also select all entries using Ctrl+A
Open the marked errors by pressing ↵.
Every file containing at least one marked error will be opened.
The cursor will automatically select one error/file, as if you open only this specific entry
Fix the errors in the opened file.
Here you can use Ctrl+. to navigate to next error inside this file
Close the file using Ctrl+W when your done.
Eclipse will automatically focus the next file and you can go back to step 3
In my case this solution was much faster then switching to the Problems view each time.
There's an Eclipse bug entered for this that has an attachment that looks like it does what you want.
You could use AutoHotkey:
save the mouse position, send a mouse event to click on the arrow in CDT console and then return the mouse back to it's original location. Record the mouse coords with window spy or use autohotkey's search by image function (first capture the images of two arrows with printscreen into bitmaps).

How can I create a YUI menu where you can click to open the submenus?

We have a multi-tiered/hierarchical YUI menu activated via a YUI menu button. Everything in this menu works pretty well. If you mouseover a menu item with a submenu, the submenu appears as expected. You can select an item from this submenu just fine.
The problem, however, is that you can also click on the parent items of this menu which closes the entire menu. In fact, I want the opposite. I'd like a click of a parent menu item leave the top level menu open and open the submenu (i.e. I want a click to be identical to a mouseover event in terms of functionality).
Side note: This isn't an issue on a typical web browser (e.g. Firefox) where the click event doesn't matter because you can't have a click without a mouseover. This is an issue on the iPhone which doesn't have a mouseover event.
I've been playing with the autosubmenudisplay properties and keepopen properties, hoping I can just handle the parent item click events to do what I want but, so far, I've been unsuccessful. If I set autosubmenudisplay to false, I can't figure out how to get the submenus to display manually. The keepopen property doesn't seem to work rather I set it on the menu or submenus.
Is there a way to get the behavior I want so our iPhone users are happy?
Todd Kloots, author of the YUI Button and Menu widgets here. Took at look at your request. Unfortunately the current version YUI Button and Menu aren't designed to support the type of interaction you are looking to create. Feel free to file a feature request via SourceForge and I'll try to work on this for a future version of YUI.
Todd
It's not exactly what you asked for, but have you looked at iUI? You may be able to pick up some tricks from the implementation.

Change checkbox(Activex control) in word 2007

In word 2007, I'm trying to use the default activex control as check box. I would like the color of text changed after some one check the box it.
I know how to get it done with VBA and checkbox formfield, but how can this be done with checkbox(active control)?
Shortly, is there any way I can retrieve the properties or other object information of ActiveX control check box?
I think this answer is too late for the questioner, how ever i am sending it for those who will face this problem later on.
IF you know how to change check box color in VBA then you can do it in word as well. All you have to do is to insert a check box that you can code your self. to do so.
Generate Developor's Tab in MS Word by clicking word button at the top left of MS WORD 07 Window; Select Advanced; Select Popular; then in the pan opened, check the check box that contains Developor's tab.
Now Click the Developer's Tab, Locate the Control Group and from their, click on legacy tools pull down menu.Click on more controls option at the lowest left of the legacy tools pull down menu. A new Window will open.
Scroll down to find the option Micrsoft Forms 2.0checkbox.
Click to select it, and you are done. You will receive a check box at the place where your cursor was blinking before you startated this process.
This Checkbox is very similar to the Check box from VB. Now if you know the VBA Codes and want to change the properties of check box like color etc. Look at the Control Group in Developer's Tab. Click Design Mode. Now DOUBLE CLICK THE CHECK BOX AND VB CODING FORM OPENS WHERE YOU CAN CODE.
In case you do not know how to code in VB, You can still make some useful changes in check box. Single click on the check box and Then Click Properties Immediately below the Design Mode in the devloper's Tab.
Here you can make changes in properties.