English 中文(简体)
如何把重点放在下一个构成部分?
原标题:How to set focus on next component?

How can I set focus on next component in the form? For example:

        Button button1 = new Button("Button1");
        button1.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                button1.???
            }
        });

I dont know what next components are, and I dont want to know.
In a hard way I would need to check if next components exist. Next step is check if they are focusable or not. For example next component maight be a button (or other input), but it could be placed in <table><tbody><tr><td><button></td></tr></tbody></table> so i would need to do that in recursive way.
Isn t there a simpler way?

最佳回答

将你的所有组成部分都列入一个阵列,然后在座标出你的位置,并将下个项目放在阵列中。

阵列。

你们不得不在启动时建立阵列,否则,无论文件是谁,你都会控制项目顺序。

问题回答

暂无回答




相关问题
How to start to create an application GUI using C#?

HI! I am new to C# and plan to use it for my application GUI. I am trying to make my GUI similar to SPSS:http://www.spss.com/images/08/statistics_screens/ez_rfm-big.jpg Is this easy in C#? Is there ...

Automatic height of edit box

My shoes application has three items stacked on top of each other (with a stack, of course), in order: A banner An edit box Two buttons in a flow What I want to do is have the banner stay at it s ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

UI Convention: Shortcut key for application exit? [closed]

Is there a convention for the shortcut keys for application exit? Some applications uses Alt+X some others use Ctrl+ X and Ctrl+Q. Applications like FF and IE doesnot assign a shortcut at all. So is ...

热门标签