labelfield

Blackberry Java: TextField *without* the caret?

▼魔方 西西 提交于 2020-01-23 03:43:45
问题 I want a non-editable TextField (or a subclass) that doesn't even have the caret displayed. Alternatively, I want a multiline LabelField. Is any of these possible? 回答1: TextField without focus cursor TextField readOnly = new TextField(NON_FOCUSABLE); readOnly.setText("Read only, no carret"); add(readOnly); TextField drawFocus override If text is too large to fit the screen, you can override drawFocus method in TextField, so scrolling will be available: TextField readOnly = new TextField

Flex DropdownList does not show the correct values

眉间皱痕 提交于 2019-12-11 17:14:27
问题 I have a Flex Spark dropdownList in which I need to show the Provider FirstName,LastName: <s:DropDownList id="providerList" dataProvider="{model.practiceProviderList.practiceProviders}" labelField="provider.providerName.firstName"/> But the output shows only [object Object] & [object Object] as there are 2 providers in the DB and does not show the actual values. The PracticeProviderList.as: [Bindable] [RemoteClass(alias="model.PracticeProviderList")] public class PracticeProviderList extends