com.jaxfront.core.ui
Class RowHeaderLabellingStrategy

java.lang.Object
  extended by com.jaxfront.core.ui.RowHeaderLabellingStrategy
Direct Known Subclasses:
InteligentRowHeaderLabellingStrategy, PrimitiveRowHeaderLabellingStrategy

public abstract class RowHeaderLabellingStrategy
extends java.lang.Object

RowHeaderLabellingStrategy provides a standard way to define how rows from the RowHeadedTable should be displayed. With this strategy pattern it's possible to define very complex labeling mechanisems by simply subclassing this class.

Version:
1.60
See Also:
com.jaxfront.core.ui.model.XPathRowHeaderLabellingStrategy

Constructor Summary
RowHeaderLabellingStrategy()
           
 
Method Summary
static RowHeaderLabellingStrategy create(java.lang.String strategyName, ListType model)
          Factory method to create a labelling strategy via qualified class name
abstract  java.lang.String getRowHeader(Type type)
          Returns the header name for a type.
abstract  int getWidth()
          Returns the header name for a type.
 boolean isPrimitive()
          Returns true if the row header strategy is primitve.
 boolean shouldSwitchHeadersOnMove()
          Returns true if the column headers should be switched when columns are moved.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowHeaderLabellingStrategy

public RowHeaderLabellingStrategy()
Method Detail

create

public static RowHeaderLabellingStrategy create(java.lang.String strategyName,
                                                ListType model)
Factory method to create a labelling strategy via qualified class name

Parameters:
strategyName - full qualified name of the strategy class
model - holding table model

getRowHeader

public abstract java.lang.String getRowHeader(Type type)
Returns the header name for a type.


getWidth

public abstract int getWidth()
Returns the header name for a type.


isPrimitive

public boolean isPrimitive()
Returns true if the row header strategy is primitve.


shouldSwitchHeadersOnMove

public boolean shouldSwitchHeadersOnMove()
Returns true if the column headers should be switched when columns are moved.