[aida] ComboBox and CheckButton element?

Janko Mivšek janko.mivsek at eranova.si
Sun Aug 17 23:04:16 CEST 2008


Giuseppe Luigi Punzi Ruiz wrote:

> e addMenuCollection: (self parent companies) selectedToAspect: #company 
> of: anObject.
> 
> I think this is the use but, I don't know what is the meaning of "of: 
> anObject"

Selection will be stored into anObject with calling an aspect method. 
For instance selectedToAspect: #name of: aPerson will call aPerson name: 
'selected name'. It will also preselect a menu choice by calling aPerson 
name, when this menu is built.

Best regards
Janko


> 
> El 16/08/2008, a las 14:18, Rob Rothwell escribió:
> 
>> Giuseppe,
>>
>> Do you need just a drop-down, or a real combo box?  For a drop down, 
>> you can use WebMenu:
>>
>>       e addMenuCollection: aMenuCollection selectedToAspect: anAspect 
>> aspect of: anObject.
>>
>> For a "combo" box, I'd have to think about that...
>>
>> To mark thinks in a Grid to delete, I am doing this:
>>
>> abstractorListComponent
>> | e |
>> e := WebDataGrid new.
>> e columnNames: #('abstractor' '' '' '' ).
>> e columnAspects: #(#label nil nil nil ).
>> e collection: self observee loadAbstractors.
>> e 
>> column: e columns size - 1
>> addBlock: 
>> [ :rowObject | 
>> WebElement new 
>> addLinkTo: rowObject currentDesignPage
>> text: 'edit' ].
>> e 
>> column: e columns size - 2
>> addBlock: 
>> [ :rowObject | 
>> WebElement new 
>> addLinkTo: rowObject currentDesignPage
>> text: 'design'
>> view: #design ].
>>
>> e 
>> checkboxesColumn: e columns size
>> collection: self observee selected.
>> ^ e
>>
>>
>> where you can see the checkboxesColumn:collection: method in use, as 
>> well as the idea of using a block to navigate to specific views based 
>> on a hyperlink in a grid as well.
>>
>> To delete the items, you can reference the collection in self observee 
>> selected.  If the objects you are deleting are other web elements 
>> rendered as pages, you are about to go down the road of Aida garbage 
>> collection, and I might be able to point you in the right direction 
>> there when you get to it!
>>
>> Take care,
>>
>> Rob
>>
>>
>> On Sat, Aug 16, 2008 at 5:44 AM, Giuseppe Luigi Punzi Ruiz 
>> <glpunzi na lordzealon.com <mailto:glpunzi na lordzealon.com>> wrote:
>>
>>     Hi all,
>>
>>     I need a ComboBox component to fill with a collection, and retrieve
>>     the option selected, and CheckButtons to put on every row of a Grid,
>>     to mark things to delete, but I don't find something like this on
>>     Aida-
>>     Elements and/or Documentation. Somebody can help?
>>
>>     Cheers.
>>     _______________________________________________
>>     Aida mailing list
>>     Aida na aidaweb.si <mailto:Aida na aidaweb.si>
>>     http://lists.aidaweb.si/mailman/listinfo/aida
>>
>>
>> _______________________________________________
>> Aida mailing list
>> Aida na aidaweb.si <mailto:Aida na aidaweb.si>
>> http://lists.aidaweb.si/mailman/listinfo/aida
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Aida mailing list
> Aida na aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida

-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list