com.wewebu.ow.server.field
Class OwStandardFieldColumnInfo

java.lang.Object
  extended by com.wewebu.ow.server.field.OwStandardFieldColumnInfo
All Implemented Interfaces:
OwFieldColumnInfo

public class OwStandardFieldColumnInfo
extends Object
implements OwFieldColumnInfo

Standard implementation of the OwFieldColumnInfo Interface.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Field Summary
protected  OwFieldDefinition m_fielddefinition
          field info for the column
protected  int m_iAlignment
          the alignment to use for the column, as defined with OwFieldColumnInfo.ALIGNMENT_...
protected  int m_iWidth
          column width in % or 0 if undefined
 
Fields inherited from interface com.wewebu.ow.server.field.OwFieldColumnInfo
ALIGNMENT_CENTER, ALIGNMENT_CENTER_NOWRAP, ALIGNMENT_DEFAULT, ALIGNMENT_LEFT, ALIGNMENT_LEFT_NOWRAP, ALIGNMENT_MAX, ALIGNMENT_RIGHT, ALIGNMENT_RIGHT_NOWRAP
 
Constructor Summary
OwStandardFieldColumnInfo(OwFieldDefinition field_p)
          construct and initialize Column info tuple
OwStandardFieldColumnInfo(OwFieldDefinition field_p, int iAlignment_p)
          construct and initialize Column info tuple
OwStandardFieldColumnInfo(OwFieldDefinition field_p, int iAlignment_p, int iWidth_p)
          construct and initialize Column info tuple
 
Method Summary
 int getAlignment()
          get the object property name this column is referring to
 String getDisplayName(Locale locale_p)
          get the string to display in the header
 String getPropertyName()
          get the object property name this column is referring to
 int getWidth()
          get column width in % or 0 if undefined
 boolean isSortable()
          Returns true if the column can be sorted.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_fielddefinition

protected OwFieldDefinition m_fielddefinition
field info for the column


m_iAlignment

protected int m_iAlignment
the alignment to use for the column, as defined with OwFieldColumnInfo.ALIGNMENT_...


m_iWidth

protected int m_iWidth
column width in % or 0 if undefined

Constructor Detail

OwStandardFieldColumnInfo

public OwStandardFieldColumnInfo(OwFieldDefinition field_p,
                                 int iAlignment_p,
                                 int iWidth_p)
construct and initialize Column info tuple

Parameters:
field_p - OwFieldDefinition
iAlignment_p - int alignment to use for the column, as defined with OwFieldColumnInfo.ALIGNMENT_...
iWidth_p - int width [%]

OwStandardFieldColumnInfo

public OwStandardFieldColumnInfo(OwFieldDefinition field_p,
                                 int iAlignment_p)
construct and initialize Column info tuple

Parameters:
field_p - OwFieldDefinition
iAlignment_p - int alignment to use for the column, as defined with OwFieldColumnInfo.ALIGNMENT_...

OwStandardFieldColumnInfo

public OwStandardFieldColumnInfo(OwFieldDefinition field_p)
construct and initialize Column info tuple

Parameters:
field_p - OwFieldDefinition
Method Detail

getDisplayName

public String getDisplayName(Locale locale_p)
get the string to display in the header

Specified by:
getDisplayName in interface OwFieldColumnInfo
Parameters:
locale_p - Locale to use
Returns:
String display name

getPropertyName

public String getPropertyName()
get the object property name this column is referring to

Specified by:
getPropertyName in interface OwFieldColumnInfo
Returns:
String property name

getAlignment

public int getAlignment()
get the object property name this column is referring to

Specified by:
getAlignment in interface OwFieldColumnInfo
Returns:
int alignment as defined with OwFieldColumnInfo.ALIGNMENT_...

getWidth

public int getWidth()
get column width in % or 0 if undefined

Specified by:
getWidth in interface OwFieldColumnInfo
Returns:
int width [%]

toString

public String toString()
Overrides:
toString in class Object

isSortable

public boolean isSortable()
Description copied from interface: OwFieldColumnInfo
Returns true if the column can be sorted.

Specified by:
isSortable in interface OwFieldColumnInfo
Returns:
true if the column can be sorted.
See Also:
OwFieldColumnInfo.isSortable()


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.