I susspect you should add the attribute modifier to your LinkoutColumn
telling what css class you want to use.. I would have to see the html aswell
to help further..

2010/2/4 Ashika Umanga Umagiliya <auma...@biggjapan.com>

> Hi nino,
>
> To which component I should add an attribute-modifier. In IColumn ,i should
> add the 'width' to the headers ,i assume.
> any tips to do this?
>
>
> nino martinez wael wrote:
>
>> use a attribute modifier
>>
>>
>> 2010/2/4 Ashika Umanga Umagiliya <auma...@biggjapan.com>
>>
>>
>>
>>> Greetings,
>>>
>>> For my DataTable ,I create 'IColumn's using data from an XML file.
>>>
>>> In the code-snippet below, the 'vcol' instance has information about
>>> Column-title,bean property field,visible or not..etc.
>>> Now I want to set the column width using the same way.How can I change
>>> the
>>> CSS property from Java ?
>>> Any tips how I can do this?
>>>
>>>
>>>
>>> List<IColumn> columns;
>>> //For each Column in Table
>>> for (Column vcol : table.getColumns()) {
>>>          if (!vcol.isVisible()) {
>>>              continue;
>>>          }
>>>
>>>          if (vcol.getId().equals("id")) {
>>>                            AbstractColumn<E> linkcolumnModel=null;
>>>              if(vcol.isSort()){
>>>                  linkcolumnModel=new SortableIdColumn(new
>>> Model(vcol.getTitle()),vcol.getValue());
>>>              }else{
>>>                  linkcolumnModel=new SortableIdColumn(new
>>> Model(vcol.getTitle()));
>>>              }
>>>
>>>              columns.add(linkcolumnModel);
>>>
>>>          } else if (vcol.isLinkout()) {
>>>              LinkoutColumn linkoutCol = new LinkoutColumn(new Model(vcol
>>>                      .getTitle()), vcol.getValue());
>>>    columns.add(linkoutCol);
>>>          } else {
>>>              //Add normal datacolumn
>>>              if(vcol.isSort()){
>>>                  columns.add(new PropertyColumn<String>(new
>>> Model(vcol.getTitle()),
>>>                           vcol.getValue(),vcol.getValue()));
>>>            }else{
>>>                  columns.add(new PropertyColumn<String>(new
>>> Model(vcol.getTitle()),
>>>                           vcol.getValue()));
>>>        }
>>>                      }
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>
>

Reply via email to