public CColumnLayoutData getLayoutData(NewsColumn column) {
boolean useLargeColumns = Application.IS_LINUX || Application.IS_MAC;
switch (column) {
case TITLE:
return new CColumnLayoutData(CColumnLayoutData.Size.FILL, 60);
case AUTHOR:
return new CColumnLayoutData(CColumnLayoutData.Size.FILL, 15);
case CATEGORY:
return new CColumnLayoutData(CColumnLayoutData.Size.FILL, 15);
case LABELS:
return new CColumnLayoutData(CColumnLayoutData.Size.FILL, 10);
case DATE:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, OwlUI.getDateWidth());
case PUBLISHED:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, OwlUI.getDateWidth());
case MODIFIED:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, OwlUI.getDateWidth());
case RECEIVED:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, OwlUI.getDateWidth());
case ATTACHMENTS:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, useLargeColumns ? 20 : 18);
case FEED:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, useLargeColumns ? 20 : 18);
case RELEVANCE:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, 24);
case STICKY:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, useLargeColumns ? 20 : 18);
case STATUS:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, OwlUI.getStateWidth());
case LOCATION:
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, 150);
case LINK:
return new CColumnLayoutData(CColumnLayoutData.Size.FILL, 25);
default: //Never Reached
return new CColumnLayoutData(CColumnLayoutData.Size.FIXED, 100);
}
}