webtabs - thanks

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

webtabs - thanks

ching
Hi Herbert,

I followed your example and it's great. I am learning more and seeing how great Aida is.

Ching de la Serna

On Thu, Jan 27, 2011 at 7:00 PM, <[hidden email]> wrote:
Send Aida mailing list submissions to
       [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.aidaweb.si/mailman/listinfo/aida
or, via email, send a message with subject or body 'help' to
       [hidden email]

You can reach the person managing the list at
       [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Aida digest..."


Today's Topics:

  1. webtabs (Ching de la Serna)
  2. Re: webtabs (Herbert K?nig)


----------------------------------------------------------------------

Message: 1
Date: Wed, 26 Jan 2011 23:08:25 +0800
From: Ching de la Serna <[hidden email]>
Subject: [aida] webtabs
To: [hidden email]
Message-ID:
       <AANLkTi=BboxTQOqznJzMgbwMLtkSTX1prNzUpsyuR=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I've been trying out WebTabs and it's truly great. I have this method:

viewMain
       | e |
       e := WebElement new.
       e addTextH1: 'Web Tabs'.
 e add: (WebTabs new
           selected: 2;
           addLinkTo: self observee
             text: 'Tab 1';
           addLinkTo: self observee
               text: 'Tab 2';
         yourself).

It displays very nicely. I would like to display the text, "Hi, I am tab 1"
and "Hi, I am tab 2" when the tabs are clicked. How do I accomplish this? I
tried a few things which didn't work.

Thanks in advance.

Ching de la Serna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.aidaweb.si/pipermail/aida/attachments/20110126/acbee0fb/attachment.html

------------------------------

Message: 2
Date: Wed, 26 Jan 2011 16:37:24 +0100
From: Herbert K?nig <[hidden email]>
Subject: Re: [aida] webtabs
To: AIDA/Web general discussion list <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1

Hi Ching,

CdlS> It displays very nicely. I would like to display the text, "Hi, I am tab 1"
CdlS> and "Hi, I am tab 2" when the tabs are clicked. How do I accomplish this? I
CdlS> tried a few things which didn't work.

I use them this way:

displayTabComponent
       "I display the tabs"

       | e |
       e := WebElement new.
       e := ViewTabs new.
       e addView: #main description: 'Abrechnung'.
       e addView: #kontrollwerte description: 'Kontrollwerte'.
       e addView: #kurvenband description: 'Kurvenband'.
       "and so on"
       ^e

For every addView: description: you need a view method which is named
after the naming convention viewMain which gets called by
addView: #viewMain

so you capitalize (is this English??) the first letter of your symbol
and prepend a view.

For example my viewKontrollwerte looks like:

viewKontrollwerte
       | e |
       e := WebElement new.
       e
               add: self displayTabComponent; "Here I reuse my Tabs"
               addBreak;
               addTextH1: 'Kontrollwerte (DA51) ?ndern';
               addBreak;
               addText: 'This is your view one';
               addBreak;
               addBreak;
       self pageFrameWideNoNavigationWith: e title: 'REB Elling'

So in general:
every view needs its own Webtabs, so i put it in a method
(#displayTabComponent).


This can be found out in http://www.aidaweb.si/documentation.html
There you go to 'programmers guide' then 'tables'. Actually the whole
docs are worth wile :-))


Cheers,

Herbert                            mailto:[hidden email]



------------------------------

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida


End of Aida Digest, Vol 44, Issue 17
************************************


_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida