Can you suppress Smart GWT's TreeGrid from showing icons when there is only 1 element? - smartgwt

I am using Smart GWT 4. I have data to present that may or may not have children. I decided to display this information in a TreeGrid. It looks fine when there are children to display but in the cases where a data element does not have children there is an image of a circle with a dot where the plus sign would be if there were children. Is there anyway to suppress this?

There is a method setShowOpener(boolean) on the TreeGrid that allows you to turn on/off.

Related

How to prevent Tooltip content reading in JAWS reader

I am using Tooltip for multiple input elements and showing the Tooltip on input elements both hovering and clicking. I need to prevent the JAWS reader from reading the Tooltip content while hovering. I have tried to remove the "role" attribute and set the "aria-hidden" attribute as true.
But none of this way works and the Tooltip still readable. Any assistance would be appreciable. we are using JAWS 2020.2008.24 ILM
There could be several things at play here. The first is that JAWS, by default, does not announce anything when you move the mouse so I'm puzzled why you are hearing something read when you hover. There's a "mouse echo" setting in the JAWS Setting Center but that's off by default for JAWS (unless you're running ZoomText). Did you specifically turn that feature on?
Secondly, you say you are showing the tooltip. So you're not relying on the default tooltip feature of browsers via the title attribute? You are handling the tooltip yourself and displaying it via javascript? JAWS will not announce newly displayed text unless the new text is in an aria-live region. Are you using live regions?
And lastly, if a tooltip attribute is being used, such as the title attribute, then the tooltip text might be used in the accessible name calculation or in the accessible description. It's the last attribute looked at (step 2.I). If it's being used in that manner, then you would not want to turn that off. It's expected behavior by JAWS users.
You may want to post some code to clarify all these issues in order to get a more accurate answer.

Blackberry 10 Cascades - Images inside Text Area

I am designing an application that needs to replace some text inside of a TextArea with an Image. For example, if I enter a phone Number that exists on the Native contacts list, I need to replace the text on the text Area with an Image and be able to add more phone Numbers (the attached image illustrates the procedure). This is the native messaging application, but I can't find an API to do this in Cascades.
Thanks for the help.
I believe what you are looking for is the FlowListLayout but would recommend you become familiar with how Cascades deals with simple lists first. The general premise, and how some form a list can help you, is that each element on the list is display an an object, or collection of objects depending on what type the element is. As elements change in type, in this example from the text entered by the user, to the contact found by searching for that text, the form of display can change.

Xbox XNA Navigational logic for UI

I'm developing an application for the XBox using XNA, with a custom made UI framework.
For this I developed a navigation system, the navigation system works as followed:
The system exists of pages, each page contains child UI elements, which all have
one or more PageTabs as I called them.
The pagetabs are objects, having 2 properties, X and Y.
(I know I could have used Point, but the pagetab class has some methods also)
Based on the current state of the system, I check for input, and I raise events on elements with the right pagetab.
So I have this array:
pages[]{
Start,
Exit,
Settings,
...}
Then, I use an enum for my state, like Start, and access the page navigatable elements like this:
pages[Start].Navigatables[]
This is an array containing all the pagetabs of the page. When you go down, Y gets increased, and vice versa. Same for X
This works great, it keeps the max & min Y&X values in mind, so something always get selected.
However, this system has one major flaw, it can only box input for 1 state.
But say I am for example on the start page,
so my state is Start, and I have a popup, with 2 buttons, pagetabs:
(1,1) & (2,1)
The system as it currently is designed, will look for ALL elements in the current state with the selected pagetab, but I need to make it so that if the popup is visible, only the popup accepts navigation, and everything else won't react to user input (gamepad).
I was thinking of adding an extra List to the PageTab class, which contains 'substates' on which the element may accept input, but there must be a better way, ain't there?
I hope I explained it good enough, if you need more info I'll be glad to provide it.
I'd suggest using some kind of flag in your system, so that when you have a pop-up active. it marks all other elements as disabled. then when you close the pop-up you re-enable the other elements. you can check this flag when passing input to the elements so that you only send it to enabled elements.
I went with the extra Z-index approach.
Using a different Z-index for some elements and catching this input works like a charm.
I also added a flag: IndependentNavigation, which makes sure some elements are Z-index-independent (so one could click somewhere different when a dropdown is opened for example)

JQuery mobile, is there a way to prevent the SELECT box from becoming a dialog page?

SO I have a select box that I fill dynamically. I discovered that once the SELECT gets longer than the page, it automatically becomes a dialog listview.... which is TERRIBLE!
When this happens, the page refreshes when the dialog is closed and my whole page starts over....
Has anyone experienced that and do you know how to shut it off?
Thanks!
Todd
You could use the native look and feel?
http://jquerymobile.com/demos/1.0.1/docs/forms/forms-all-native.html
Native form elements & buttons Although the framework automatically enhances form elements and buttons into touch input
optimized controls to streamline development, it's easy to tell jQuery
Mobile to leave these elements alone so the standard, native control
can be used instead.
Adding the data-role="none" attribute to any form or button element
tells the framework to not apply any enhanced styles or scripting. The
examples below all have this attribute in place to demonstrate the
effect. You may need to write custom styles to lay out your form
controls because we try to leave all the default styling intact.

How to show Pointer in non-browser field

I have a blackberry application in which I want to use pointer navigation, just like the browser field, however I do not want to use a browserfield. On the surface it seems like it would be simple however I am having trouble finding out how to do this.
The BlackBerry standard interface does not provide a pointer. Focus moves from one input UI element to the next depending on the navigation interface which could be 1 dimensional (scroll wheel), 2 dimensional, or multi-touch.
If you want to provide a pointer based navigation model you will have to write your own UI toolkit.

Resources