Highlight the ComboBoxCellEditor choice on mousehover - eclipse-rcp

I want to achieve the ComboBox functionality in which the ComboBox values are highlighted on mouse hover. In ComboBoxCellEditor only the selected is highlighted when the drop down is shown. There is no effect of the mouse hover on the list.
In the above pic my cursor is pointing to String2 and its highlighting String2. Here i'm using ComboBox.
But In the above pic my cursor is pointing to String2 but its highlighting the String0 which is selected. I want to achieve the first pic functionality using ComboBoxCellEditor.

There are two implementations of a combo box in SWT:
Combo uses the platform's native widget
CCombo (C for custom) is a control composed of a text and a button which opens a List to let the user select an item
The ComboBoxCellEditor internally uses the CCombo widget. To have a combo box like shown in the first image of your question in a cell editor, you need to implement your own AbstractComboBoxCellEditor that uses the Combo widget.
The two combo box implementations are mostly API compatible. You may want to use a copy of the ComboBoxCellEditor as a start, change the type of the comboBox field to Combo and adjust the remaining code passages.

Related

Material UI: manually highlight xgrid row

I am new to Material UI and React in general, but as a 10 yr HTML UI vet I am so perplexed right now. We are using XGrid component with rows and columns. When you hover over rows they highlight by turning light blue, but I am at a loss as to how this is happening. When I inspect the row with regular inspector, I don't see any class changes when hovering over the row. When I force hover state, it does not highlight the row. I am guessing two things
It's a mouseenter event, not hover
It's using some built in browser highlight, not a class
Anyway what I'm trying to do is manually highlight a row and it would make sense to use the same class/colour or call some API function, but I cannot find either.
There's documentation here: https://material-ui.com/api/table-row/
Here's an example: How to change the text color of the selected row in material ui table

AEM - Classic UI - Can we implement tooltip on Classic UI dialogue CQ widgets? If possible, how can we do it?

I am working on AEM Classic UI and I want to add a checkbox widget inside dialouge and to add a tooltip on it. Is that possible to add a tooltip or on mouse hover text inside dialogue on cq widgets? If possible, how can we implement it?
I found the solution.
The answer is NO. We can't implement direct tooltip inside dialogue box.
But we can implement a short text that works like tooltip.
eg:
feildLabel = <p title="Trust me! I am tooltip!!">Hover over me</p>
Note: In the above example, the tooltip text will appear only if we place the mouse over the base text for more then 1 second. There is an delay for a second.
We can implement tooltip in classic UI. Here below I gave the node structure to implement that.
Node Structure:
=> nt:unstructured
=> tooltip
jcr:primaryType = nt:unstructured
autoHide = true(Boolean)
title = title for tooltip
text = text for tooltip

Add a cell renderer using Glade

I'm using Glade to build a GTK user interface for my Rust program.
The issue is that items that are added to the ListStore are not showing up. I have horizontal lines set up that show up, but the text of the items is not showing up. I Googled and I suspect it's because of the cell renderers. I have tried to add a cell renderer in Glade, however I didn't see anywhere where could I do that. I right click on the treeview, click Edit, right click on the row/column but nothing about cell renderers is displayed.
How can I add a cell renderer using Glade?
$ glade --version
glade 3.22.1
It's very hard to find. I search lots of tutorial but many of them are very old, so the interface was quite different.
Right click GtkTreeView and choose "Edit"
On top left sub area, click blue "+" sign to add a new column.
right click newly created column, choose add child text
You will see Cell Render area showing up to the right.
In "Properties and Attributes", set "Text" properties to the column you wish to present.

GWT menu item text alignments issues

Is it possible in GWT to set Menu Item text in two different alignments,what I mean to say is
I want my menu item's label to be left justified and its accelerator key to be right justified.
i.e,
Create Alt+Ctrl+C
Edit Shift+E
Optimize Ctrl+O
There's a "boolean asHTML" option when creating menu items, set that to true, then use CSS to left align and right align the text you want to align.
See the docs: http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuItem.html

yui-autocomplete

Two questions regarding yui autocomplete:
Is there a way to make yui autocomplete mouse selection and keyboard up/down selection create only one selection at any time ?
Also is there any way to update the text in the autocomplete textbox with the selection done with keyboard up/down arrow only ie force the selection to appear in the textbox above if user selects in with up/down arrow keys ?
Note that in the following link I see deep blue for keyboard up/down arrow and light blue for mouse selection. (Remove the underscore before http in your browser url)
Case #1: _http://developer.yahoo.com/yui/examples/autocomplete/ac_basic_array.html
However in the following link(case #2) this is not the case. I see only one selection (dark blue) at one point of time.
Case #2: http://developer.yahoo.com/yui/examples/autocomplete/ac_basic_xhr.html
If I use the mouse and/or key up/down, there is still only one selection dark blue always.
My application is behaving as in case #1 but I would like it to behave as in case 2 above, with only one selection at any time and in addition update the text when user moves with the keyboard up/down arrow keys.
How can I make this happen? Both the above examples are using YUI autocomplete, but I can't see the difference between the two to make my app follow example 2.
In summary I want this to behave as google suggest does in www.google.com
Thanks,
Viji
var myConfigs = {typeAhead:true, autoHighlight:false, prehighlightClassName:""},
myAutoComp = new YAHOO.widget.AutoComplete("myInput","myContainer", myDataSource, myConfigs);
By the way, prehighlightClassName is disabled by default so you really shouldn't need to specify it in the configs.