Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Removing components from view?
Removing components from view? [message #120618] Tue, 02 September 2003 14:55 Go to next message
Eclipse UserFriend
Originally posted by: adamh.us.ibm.com

I would like to alter the my view dynamically based on the state of the
user (authenticated or not). If they are not authenticated, I would like
the view to display an informational message. If they are authenticated,
I would like the view to dynamically update by displaying the components
available to the user (Example: add some buttons to the composite).

I know I could set the label as visible(false), but that would leave a gap
at the top of my view pane. I would prefer to remove the component.

Does anyone know if this is possible?
Re: Removing components from view? [message #121565 is a reply to message #120618] Tue, 02 September 2003 21:37 Go to previous messageGo to next message
Eclipse UserFriend
component.dispose() ?

Chris

"Adam Hoover" <adamh@us.ibm.com> wrote in message
news:bj2p2r$hf6$1@eclipse.org...
> I would like to alter the my view dynamically based on the state of the
> user (authenticated or not). If they are not authenticated, I would like
> the view to display an informational message. If they are authenticated,
> I would like the view to dynamically update by displaying the components
> available to the user (Example: add some buttons to the composite).
>
> I know I could set the label as visible(false), but that would leave a gap
> at the top of my view pane. I would prefer to remove the component.
>
> Does anyone know if this is possible?
>
Re: Removing components from view? [message #121907 is a reply to message #121565] Wed, 03 September 2003 09:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adamh.us.ibm.com

Actually, I think I was thinking more along the lines of the Page views
which I see is how Eclipse handles the Outline view. Thanks.

Chris Laffra wrote:

> component.dispose() ?

> Chris

> "Adam Hoover" <adamh@us.ibm.com> wrote in message
> news:bj2p2r$hf6$1@eclipse.org...
> > I would like to alter the my view dynamically based on the state of the
> > user (authenticated or not). If they are not authenticated, I would like
> > the view to display an informational message. If they are authenticated,
> > I would like the view to dynamically update by displaying the components
> > available to the user (Example: add some buttons to the composite).
> >
> > I know I could set the label as visible(false), but that would leave a gap
> > at the top of my view pane. I would prefer to remove the component.
> >
> > Does anyone know if this is possible?
> >
Re: Removing components from view? [message #121989 is a reply to message #121907] Wed, 03 September 2003 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

StackLayout lets you switch which widget displays in the outer
Composite. You just set the top widget into the StackLayout instance and
then redo the layout() on the outer Composite. This will then hide the
current top widget and show the one you just set.

Rich
Re: Removing components from view? [message #122275 is a reply to message #121989] Wed, 03 September 2003 13:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adamh.us.ibm.com

That is what I needed. Thanks!

Richard L. Kulp wrote:

> StackLayout lets you switch which widget displays in the outer
> Composite. You just set the top widget into the StackLayout instance and
> then redo the layout() on the outer Composite. This will then hide the
> current top widget and show the one you just set.

> Rich
Re: Removing components from view? [message #122332 is a reply to message #122275] Wed, 03 September 2003 15:40 Go to previous message
Eclipse UserFriend
But, that's not fair. You said you wanted to *remove* the widget, not hide
it behind another :-)

Chris

"Adam Hoover" <adamh@us.ibm.com> wrote in message
news:bj57ke$e7$1@eclipse.org...
> That is what I needed. Thanks!
>
> Richard L. Kulp wrote:
>
> > StackLayout lets you switch which widget displays in the outer
> > Composite. You just set the top widget into the StackLayout instance and
> > then redo the layout() on the outer Composite. This will then hide the
> > current top widget and show the one you just set.
>
> > Rich
>
>
Previous Topic:Not responding message in XP computers.
Next Topic:Eclipse on Mac
Goto Forum:
  


Current Time: Wed May 07 17:59:57 EDT 2025

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

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

Back to the top