[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
DOF sizing columns  XML
Forum Index -> Development
Author Message
tdrasch

Power User
[Avatar]

Joined: 13/03/2009 19:09:45
Messages: 81
Location: Villingen-Schwenningen
Offline

Hi community,

We're using the DOF framework.
Well, the sizing of the column is not working and I don't know why. Maybe someone has some experience with it and can support.
Thanks in advance.

We're creating the columns like this one:

Code:
 ...
 addColumn(("personIdExternal"), literals.lit("lblEmployeeId"), DOFENUMDataClass.STRING.name(), 5, false);//personIdExternal
     			addColumn("personName", "Name", DOFENUMDataClass.STRING.name(), 100, false);
     			addColumn("startDate", "Start-Datum", DOFENUMDataClass.STRING.name(), 20, false);
 ....
 ...
 addColumn(String id, String name, String dataClass, int length, boolean key) {
 		DOFPropertyType pt = new DOFPropertyType();
 		pt.setId(id);
 		pt.setName(name);
 		pt.setDataClass(dataClass);
 		pt.setLength(length);
 		pt.setKey(key);
 		m_dofType.getProperties().add(pt);
 	}
 ...
 


The result is a DOF grid with same column lengths
[Thumb - dofgrid.png]
 Filename dofgrid.png [Disk] Download
 Description
 Filesize 19 Kbytes
 Downloaded:  2079 time(s)


--------------------------------
Good karma - for the moment...
why is the word abbreviation so long?
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5526
Offline

Hi,

use the property....:

Code:
     /**
      * Width of the column witihn the object list.
      */
     public String getGridWidth() { return m_gridWidth; }
     public void setGridWidth(String gridWidth) { m_gridWidth = gridWidth; }
 


Please note, the DOF addons is coming with all sources etc. - and there are many propeprties, e.g. on DOFPropertyType-level.

For the length the code is:
Code:
     /**
      * If the property value is a String value then this is the maximum length
      * of the string.
      */
     public Integer getLength() { return m_length; }
     public void setLength(Integer length) { m_length = length; }
 


Kind regard! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team