Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT. Form and setHeadClient().
XWT. Form and setHeadClient(). [message #528895] Thu, 22 April 2010 06:33 Go to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
I can not implement same UI using XWT.
			Form form = formToolkit.createForm(m_shell);
			formToolkit.paintBordersFor(form);
			form.setText("New Form");
			{
				Button button = formToolkit.createButton(form.getHead(), "New Button", SWT.NONE);
				form.setHeadClient(button);
			}

http://dl.dropbox.com/u/76691/Eclipse/images/Screenshot-20100422-143248.png

When I try to use "headClient"
<!-- Forms API -->
<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt">
	<Shell.layout>
		<FillLayout/>
	</Shell.layout>
	<Form text="New Form">
		<Form.headClient>
			<Button/>
		</Form.headClient>
	</Form>
</Shell>

..it complains that Button was created not on "head".

When I use "head" it does not throw exception, but does not show my Button.
<!-- Forms API -->
<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt">
	<Shell.layout>
		<FillLayout/>
	</Shell.layout>
	<Form text="New Form">
		<Form.head>
			<Button/>
		</Form.head>
	</Form>
</Shell>


Konstantin Scheglov,
Google, Inc.
Re: XWT. Form and setHeadClient(). [message #529095 is a reply to message #528895] Thu, 22 April 2010 19:29 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
I suppose you have found the bug. The call form.setHeadClient(button) is
missing. Please fill a bug.

Thanks
yves YANG
"Konstantin Scheglov" <Konstantin.Scheglov@gmail.com> wrote in message
news:hqp8mh$1qh$1@build.eclipse.org...
>I can not implement same UI using XWT.
> Form form = formToolkit.createForm(m_shell);
> formToolkit.paintBordersFor(form);
> form.setText("New Form");
> {
> Button button = formToolkit.createButton(form.getHead(), "New Button",
> SWT.NONE);
> form.setHeadClient(button);
> }
>
>
>
> When I try to use "headClient"
> <!-- Forms API -->
> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
> xmlns:x="http://www.eclipse.org/xwt">
> <Shell.layout>
> <FillLayout/>
> </Shell.layout>
> <Form text="New Form">
> <Form.headClient>
> <Button/>
> </Form.headClient>
> </Form>
> </Shell>
>
> ..it complains that Button was created not on "head".
>
> When I use "head" it does not throw exception, but does not show my
> Button.
> <!-- Forms API -->
> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
> xmlns:x="http://www.eclipse.org/xwt">
> <Shell.layout>
> <FillLayout/>
> </Shell.layout>
> <Form text="New Form">
> <Form.head>
> <Button/>
> </Form.head>
> </Form>
> </Shell>
>
> --
> Konstantin Scheglov,
> Instantiations, Inc.
Re: XWT. Form and setHeadClient(). [message #530917 is a reply to message #529095] Sun, 02 May 2010 14:51 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
The fix is committed in CVS.

Regards
Yves
"Yves YANG" <yves.yang@soyatec.com> wrote in message
news:hqqm50$sq1$1@build.eclipse.org...
>I suppose you have found the bug. The call form.setHeadClient(button) is
>missing. Please fill a bug.
>
> Thanks
> yves YANG
> "Konstantin Scheglov" <Konstantin.Scheglov@gmail.com> wrote in message
> news:hqp8mh$1qh$1@build.eclipse.org...
>>I can not implement same UI using XWT.
>> Form form = formToolkit.createForm(m_shell);
>> formToolkit.paintBordersFor(form);
>> form.setText("New Form");
>> {
>> Button button = formToolkit.createButton(form.getHead(), "New Button",
>> SWT.NONE);
>> form.setHeadClient(button);
>> }
>>
>>
>>
>> When I try to use "headClient"
>> <!-- Forms API -->
>> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
>> xmlns:x="http://www.eclipse.org/xwt">
>> <Shell.layout>
>> <FillLayout/>
>> </Shell.layout>
>> <Form text="New Form">
>> <Form.headClient>
>> <Button/>
>> </Form.headClient>
>> </Form>
>> </Shell>
>>
>> ..it complains that Button was created not on "head".
>>
>> When I use "head" it does not throw exception, but does not show my
>> Button.
>> <!-- Forms API -->
>> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
>> xmlns:x="http://www.eclipse.org/xwt">
>> <Shell.layout>
>> <FillLayout/>
>> </Shell.layout>
>> <Form text="New Form">
>> <Form.head>
>> <Button/>
>> </Form.head>
>> </Form>
>> </Shell>
>>
>> --
>> Konstantin Scheglov,
>> Instantiations, Inc.
>
>
Re: XWT. Form and setHeadClient(). [message #530995 is a reply to message #530917] Mon, 03 May 2010 06:05 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
Yves YANG wrote on Sun, 02 May 2010 22:51
The fix is committed in CVS.



OK, it works now.
Thank you.


Konstantin Scheglov,
Google, Inc.
Re: XWT. Form and setHeadClient(). [message #575375 is a reply to message #529095] Sun, 02 May 2010 14:51 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
The fix is committed in CVS.

Regards
Yves
"Yves YANG" <yves.yang@soyatec.com> wrote in message
news:hqqm50$sq1$1@build.eclipse.org...
>I suppose you have found the bug. The call form.setHeadClient(button) is
>missing. Please fill a bug.
>
> Thanks
> yves YANG
> "Konstantin Scheglov" <Konstantin.Scheglov@gmail.com> wrote in message
> news:hqp8mh$1qh$1@build.eclipse.org...
>>I can not implement same UI using XWT.
>> Form form = formToolkit.createForm(m_shell);
>> formToolkit.paintBordersFor(form);
>> form.setText("New Form");
>> {
>> Button button = formToolkit.createButton(form.getHead(), "New Button",
>> SWT.NONE);
>> form.setHeadClient(button);
>> }
>>
>>
>>
>> When I try to use "headClient"
>> <!-- Forms API -->
>> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
>> xmlns:x="http://www.eclipse.org/xwt">
>> <Shell.layout>
>> <FillLayout/>
>> </Shell.layout>
>> <Form text="New Form">
>> <Form.headClient>
>> <Button/>
>> </Form.headClient>
>> </Form>
>> </Shell>
>>
>> ..it complains that Button was created not on "head".
>>
>> When I use "head" it does not throw exception, but does not show my
>> Button.
>> <!-- Forms API -->
>> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
>> xmlns:x="http://www.eclipse.org/xwt">
>> <Shell.layout>
>> <FillLayout/>
>> </Shell.layout>
>> <Form text="New Form">
>> <Form.head>
>> <Button/>
>> </Form.head>
>> </Form>
>> </Shell>
>>
>> --
>> Konstantin Scheglov,
>> Instantiations, Inc.
>
>
Re: XWT. Form and setHeadClient(). [message #575449 is a reply to message #530917] Mon, 03 May 2010 06:05 Go to previous message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
Yves YANG wrote on Sun, 02 May 2010 22:51
> The fix is committed in CVS.


OK, it works now.
Thank you.
--
Konstantin Scheglov,
Instantiations, Inc.


Konstantin Scheglov,
Google, Inc.
Previous Topic:Load XWT content dynamically
Next Topic:XWT. How to set absolute (null) layout?
Goto Forum:
  


Current Time: Sat Apr 19 12:03:33 EDT 2014

Powered by FUDForum. Page generated in 0.09487 seconds