Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ExpandBar widget
ExpandBar widget [message #70049] Tue, 15 January 2008 08:19 Go to next message
Eclipse UserFriend
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 09:02 Go to previous messageGo to next message
Eclipse UserFriend
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 12:24 Go to previous message
Eclipse UserFriend
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
Previous Topic:Tomcat deployment without Equinox
Next Topic:RAP & MultiEditorInput
Goto Forum:
  


Current Time: Thu Mar 28 11:53:02 GMT 2024

Powered by FUDForum. Page generated in 0.04121 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top