ExpandBar widget [message #70049] |
Tue, 15 January 2008 03:19  |
Eclipse User |
|
|
|
Originally posted by: sergey.n.zaitsev.gmail.com
Hi all,
I found that there is no swt.widgets.ExpandBar implementation available in
RAP (recently checkouted from CVS). Are there any plans to implement it?
Btw, there is a widget in RAP Workbench Demo looking like ExpandBar and I
will be really appreciate if someone give me snippet how to implement it.
Regards,
Sergey
|
|
|
Re: ExpandBar widget [message #70108 is a reply to message #70049] |
Tue, 15 January 2008 04:02   |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
currently there is no schedule for implementation of the ExpandBar widget.
Regarding the demo I think you are referring to the intro page. There is no
single widget like an ExpandBar, the intropage uses the form toolkit and in
particular sections. Here is the snippet that creates those sections in the
demo:
private Composite createSection( final ScrolledForm form,
final Composite client,
final String title,
final String desc,
final int numColumns,
final boolean expanded )
{
int style = Section.TWISTIE | Section.TITLE_BAR
| Section.DESCRIPTION | Section.EXPANDED;
Section section = toolkit.createSection( client, style );
section.setExpanded( expanded );
section.setText( title );
section.setDescription( desc );
section.getChildren()[ 1 ].setBackground( COLOR_WHITE );
Composite result = toolkit.createComposite( section );
GridLayout layout = new GridLayout();
layout.marginWidth = 0;
layout.marginHeight = 0;
layout.numColumns = numColumns;
result.setLayout( layout );
section.setClient( result );
section.addExpansionListener( new ExpansionAdapter() {
public void expansionStateChanged( ExpansionEvent e ) {
form.reflow( false );
}
} );
return result;
}
Hope that helps.
Ciao
Frank
"Sergey N. Zaitsev" <sergey.n.zaitsev@gmail.com> schrieb im Newsbeitrag
news:fmhqac$3ln$1@build.eclipse.org...
> Hi all,
>
> I found that there is no swt.widgets.ExpandBar implementation available in
> RAP (recently checkouted from CVS). Are there any plans to implement it?
>
> Btw, there is a widget in RAP Workbench Demo looking like ExpandBar and I
> will be really appreciate if someone give me snippet how to implement it.
>
> Regards,
> Sergey
|
|
|
Re: ExpandBar widget [message #70309 is a reply to message #70108] |
Wed, 16 January 2008 07:24  |
Eclipse User |
|
|
|
Originally posted by: sergey.n.zaitsev.gmail.com
Greate thanks! It is exactly what I want (:
Frank Appel wrote:
> Hi,
>
> currently there is no schedule for implementation of the ExpandBar widget.
>
> Regarding the demo I think you are referring to the intro page. There is
> no single widget like an ExpandBar, the intropage uses the form toolkit
> and in particular sections. Here is the snippet that creates those
> sections in the demo:
>
> private Composite createSection( final ScrolledForm form,
> final Composite client,
> final String title,
> final String desc,
> final int numColumns,
> final boolean expanded )
> {
> int style = Section.TWISTIE | Section.TITLE_BAR
> | Section.DESCRIPTION | Section.EXPANDED;
> Section section = toolkit.createSection( client, style );
> section.setExpanded( expanded );
> section.setText( title );
> section.setDescription( desc );
> section.getChildren()[ 1 ].setBackground( COLOR_WHITE );
> Composite result = toolkit.createComposite( section );
> GridLayout layout = new GridLayout();
> layout.marginWidth = 0;
> layout.marginHeight = 0;
> layout.numColumns = numColumns;
> result.setLayout( layout );
> section.setClient( result );
> section.addExpansionListener( new ExpansionAdapter() {
> public void expansionStateChanged( ExpansionEvent e ) {
> form.reflow( false );
> }
> } );
> return result;
> }
>
> Hope that helps.
>
>
> Ciao
> Frank
>
> "Sergey N. Zaitsev" <sergey.n.zaitsev@gmail.com> schrieb im Newsbeitrag
> news:fmhqac$3ln$1@build.eclipse.org...
>> Hi all,
>>
>> I found that there is no swt.widgets.ExpandBar implementation available
>> in RAP (recently checkouted from CVS). Are there any plans to implement
>> it?
>>
>> Btw, there is a widget in RAP Workbench Demo looking like ExpandBar and I
>> will be really appreciate if someone give me snippet how to implement it.
>>
>> Regards,
>> Sergey
|
|
|
Powered by
FUDForum. Page generated in 0.06086 seconds