How to set place holder in swt text box without using SWT.SEARCH style - swt

I have a SWT textbox to which I would like to add a place holder text. Now this textbox is not intended to behave as a search textbox, its a normal textbox and hence I do not want to add the style of SWT.SEARCH. But just by calling setMessage(), the place holder text is not visible.
How to show the place holder without using the style SWT.SEARCH ?

Related

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

Is there any valid way to show an input without a border in SAPUI5?

I am working on a SAPUI5 app in which we do not want to add custom css to. Currently we are displaying text in a form which does not have the same height and styling as the inputs.
I'd prefer to change the text to an input with a pre-filled value so everything in the form has consistent styling but I need to differentiate that this should be treated as text.
The easiest way to do this is to remove the border but I cannot find away of doing this without creating custom css.
I tried borderDesign="None" but this does not affect inputs.

Highlight the ComboBoxCellEditor choice on mousehover

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.

iTextSharp PDFForm Radio Button format change

We have a library of PDF forms which we're filling with variable content in text, check box and radio button form fields. Since the form is a template, we use the PDFStamper to perform the form fills. Everything is filling and checking appropriately. The problem we have is that the Radio Button controls are set up (in the form) to display a check mark and not the conventional dot within a circle. When filling the form manually with Acrobat reader, the buttons appear as check boxes however; after filling with iText PDFStamper, the resulting PDF radio buttons revert to their conventional style (dot within a circle).
Is this a bug or is it the intended functionality? Is there a work around. We are currently on V5.5.8. I know in previous version(s) the formatting was maintained.
Thanks for any help .

Is there a Zend_Form_Element that renders a plain div with some content?

Working on a bunch of forms at the moment and I'm finding that I want to be able to split a form into sections with some text in between. Is there a Zend_Form_Element that simply allows me to place some text mixed in with my form (not as a label or description linked to an individual input)?
Thanks!
I think there's not.
Although, you can do one of the following things:
If the text inbetween is more like a title, you can group them in display groups.
If you want to put a lot of text then you'll have to write your own custom form element.
If you choose the second option beware of your form decorations. If you want the text to be from side to side of the page (ie. without the labels space to the left and not aligned to the rest of the input forms) you'll probably have to disable default decorators and set new ones.