org.umber.crucible.old.templates.generic
Class TableOp

java.lang.Object
  extended byorg.umber.crucible.old.templates.generic.GenericOp
      extended byorg.umber.crucible.old.templates.generic.ContentOp
          extended byorg.umber.crucible.old.templates.generic.TableOp

public class TableOp
extends ContentOp

A template op wrapper for <table>.

Author:
jsheets

Constructor Summary
TableOp(Datum op, StyleMap styleMap)
          Creates a new instance of TableOp.
TableOp(Datum op, StyleMap styleMap, StyleChain chain)
          Creates a new instance of TableOp with an optional StyleChain fallback.
 
Method Summary
 java.lang.String getColumnFlowSelect()
          Returns the 'select' property for the <column-flow> op, or an empty string if 'select' is not specified.
 java.lang.String getColumnHeaderSelect()
          Returns the 'select' property for the <column-headers> op, or an empty string if 'select' is not specified.
 java.lang.String getRowFlowSelect()
          Returns the 'select' property for the <row-flow> op, or an empty string if 'select' is not specified.
 java.lang.String getRowHeaderSelect()
          Returns the 'select' property for the <row-headers> op, or an empty string if 'select' is not specified.
 java.util.List resolve(Datum xmlNode)
          Runs a Datum XML node through the op and returns a List of LayoutArea objects.
 
Methods inherited from class org.umber.crucible.old.templates.generic.GenericOp
createOp, createOp, getChain, getDatum, getDatumProperty, getOp, getOpType, getParameter, getStyleMap, resolveParameter, resolvePath, runQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableOp

public TableOp(Datum op,
               StyleMap styleMap)
Creates a new instance of TableOp.

Parameters:
op - the XML template op to wrap
styleMap - the StyleMap to lookup named styles in

TableOp

public TableOp(Datum op,
               StyleMap styleMap,
               StyleChain chain)
Creates a new instance of TableOp with an optional StyleChain fallback. The StyleChain can be null.

Parameters:
op - the XML template op to wrap
styleMap - the StyleMap to lookup named styles in
chain - optional fallback StyleChain
Method Detail

getRowHeaderSelect

public java.lang.String getRowHeaderSelect()
Returns the 'select' property for the <row-headers> op, or an empty string if 'select' is not specified. The path is an XPath-style query for data lookup. This query should return all row labels.

Returns:
the query path for the <row-headers> op

getColumnHeaderSelect

public java.lang.String getColumnHeaderSelect()
Returns the 'select' property for the <column-headers> op, or an empty string if 'select' is not specified. The path is an XPath-style query for data lookup. This query should return all column labels.

Returns:
the query path for the <column-headers> op

getRowFlowSelect

public java.lang.String getRowFlowSelect()
Returns the 'select' property for the <row-flow> op, or an empty string if 'select' is not specified. The path is an XPath-style query for data lookup. This query should return all table data content, grouped by row.

Returns:
the query path for the <row-flow> op

getColumnFlowSelect

public java.lang.String getColumnFlowSelect()
Returns the 'select' property for the <column-flow> op, or an empty string if 'select' is not specified. The path is an XPath-style query for data lookup. This query should return all table data content, grouped by column.

Returns:
the query path for the <column-flow> op

resolve

public java.util.List resolve(Datum xmlNode)
Runs a Datum XML node through the op and returns a List of LayoutArea objects.

Specified by:
resolve in class GenericOp
Parameters:
xmlNode - the input data node to run through the op
Returns:
a List of LayoutArea objects.