com.wewebu.ow.server.field
Class OwStandardFieldColumnInfoString

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

public class OwStandardFieldColumnInfoString
extends Object
implements OwFieldColumnInfo

Implements the OwFieldColumnInfo interface using. As opposed to OwStandardFieldColumnInfo, OwStandardFieldColumnInfoString may be instantiated providing a String type property name parameter.

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  OwString m_displayname
          the string to display in the header
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
protected  String m_propertyname
          the object property name this column is referring to
 
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
OwStandardFieldColumnInfoString(OwString displayname_p, String strPropertyName_p, int iAlignment_p)
          construct and initialize Column info tuple
OwStandardFieldColumnInfoString(OwString displayname_p, String strPropertyName_p, int iAlignment_p, int iWidth_p)
          construct and initialize Column info tuple
OwStandardFieldColumnInfoString(String strPropertyName_p, int iAlignment_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_iAlignment

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


m_displayname

protected OwString m_displayname
the string to display in the header


m_propertyname

protected String m_propertyname
the object property name this column is referring to


m_iWidth

protected int m_iWidth
column width in % or 0 if undefined

Constructor Detail

OwStandardFieldColumnInfoString

public OwStandardFieldColumnInfoString(String strPropertyName_p,
                                       int iAlignment_p)
construct and initialize Column info tuple

Parameters:
strPropertyName_p - String property this column is referring to
iAlignment_p - int alignment to use for the column, as defined with OwFieldColumnInfo.ALIGNMENT_...

OwStandardFieldColumnInfoString

public OwStandardFieldColumnInfoString(OwString displayname_p,
                                       String strPropertyName_p,
                                       int iAlignment_p)
construct and initialize Column info tuple

Parameters:
displayname_p - OwString to display in the header
strPropertyName_p - String property this column is referring to
iAlignment_p - int alignment to use for the column, as defined with OwFieldColumnInfo.ALIGNMENT_...

OwStandardFieldColumnInfoString

public OwStandardFieldColumnInfoString(OwString displayname_p,
                                       String strPropertyName_p,
                                       int iAlignment_p,
                                       int iWidth_p)
construct and initialize Column info tuple

Parameters:
displayname_p - OwString to display in the header
strPropertyName_p - String property this column is referring to
iAlignment_p - int alignment to use for the column, as defined with OwFieldColumnInfo.ALIGNMENT_...
iWidth_p - int width [%]
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
See Also:
Object.toString()

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.