|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tinyjee.maven.dim.extensions.AbstractParameterTransformer org.tinyjee.maven.dim.extensions.TableLayoutParameterTransformer
public class TableLayoutParameterTransformer
This extension re-arranges selected document sections (hierarchical headlines in Doxia) using a table of columns and rows.
The actual layout is created using a specified number of columns and rows and does gracefully fallback to the standard layout if client side javascript is not available.
Field Summary | |
---|---|
static String |
PARAM_CELL_STYLE
Optional Parameter: Defines the CSS style of the TD elements. |
static String |
PARAM_COLUMN_CLASSES
Optional Parameter: Specifies a comma separates list of classes to apply with the columns. |
static String |
PARAM_COLUMN_WIDTHS
Optional Parameter: Specifies a comma separates list of width values (CSS format) to apply with the columns. |
static String |
PARAM_COLUMNS
Specifies the number of columns to render (defaults to ' * '). |
static String |
PARAM_DIRECTION
Defines the direction for placing the sections in the table layout (defaults to ' top-down '). |
static String |
PARAM_GAP
Defines the gab (margin) between the table cells (defaults to ' 10pt '). |
static String |
PARAM_ROW_CLASSES
Optional Parameter: Specifies a comma separates list of classes to apply with the rows. |
static String |
PARAM_ROW_HEIGHTS
Optional Parameter: Specifies a comma separates list of height values (CSS format) to apply with the rows. |
static String |
PARAM_ROWS
Specifies the number of rows to render (defaults to ' * '). |
static String |
PARAM_STYLE
Optional Parameter: Defines the CSS style of the container hosting the elements. |
static String |
PARAM_STYLE_CLASS
Optional Parameter: Defines the CSS style class of the container hosting the elements. |
static String |
PARAM_TABLE_LAYOUT
Enables this extension and sets a regular expression matching the section titles that should be transformed into a tabs. |
static String |
PARAM_WIDTH
Defines the width of the layout (defaults to ' 100% '). |
Fields inherited from interface org.tinyjee.maven.dim.spi.RequestParameterTransformer |
---|
TRANSFORMERS |
Constructor Summary | |
---|---|
TableLayoutParameterTransformer()
|
Method Summary | |
---|---|
protected boolean |
doTransformParameters(Map<String,Object> params)
|
Methods inherited from class org.tinyjee.maven.dim.extensions.AbstractParameterTransformer |
---|
isSourceSet, transformParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PARAM_TABLE_LAYOUT
source
" or "source-class
" were
specified with the macro call. This behaviour ensures that the parameter "tabbed-panel
" can still be used
with ordinary macro calls where a source or source-class was set.
This parameter expects a regular expression that is used to select what sections are placed inside the table layout by matching
the given section titles (headlines)..*
if all sub-sequent sections of the same nesting level should
be formatted with table layout.
Examples:%{include|table-layout=.*|columns=2}
" - Transforms all following sections (of the same level) to tabs.%{include|table-layout=.*(Example).*|columns=*}
" - Formats all sections containing the word "Example"
using a side by side view.
public static final String PARAM_COLUMNS
*
').
If this parameter is set to asterisk ("*
") the number of columns is unbounded and
calculates out of the number of sections divided by the defined rows. If both columns
and rows
is set to asterisk the number of columns equals the number of sections while the number of rows becomes "1".
public static final String PARAM_ROWS
*
').
If this parameter is set to asterisk ("*
") the number of rows is unbounded and
calculates out of the number of sections divided by the defined columns.
public static final String PARAM_DIRECTION
top-down
').
Possible values:top-down
- Places sections below each other and wraps when "rows
" number of sections were placed.left-right
or ltr
- Places sections next to each other starting from left and wraps when
"columns
" number of sections were placed.right-left
or rtl
- Places sections next to each other starting from right and wraps when
"columns
" number of sections were placed.
public static final String PARAM_GAP
10pt
').
Note: The gap can also be defined for the horizontal or vertical direction using horizontal-gap
and vertical-gap
.
public static final String PARAM_WIDTH
100%
').
public static final String PARAM_STYLE
%{include|table-layout=.*(Hint).*|columns=1|width=200|style=border: 1px solid gray; background-color:#eee; float: right;}
public static final String PARAM_STYLE_CLASS
public static final String PARAM_CELL_STYLE
public static final String PARAM_COLUMN_WIDTHS
public static final String PARAM_COLUMN_CLASSES
public static final String PARAM_ROW_HEIGHTS
public static final String PARAM_ROW_CLASSES
Constructor Detail |
---|
public TableLayoutParameterTransformer()
Method Detail |
---|
protected boolean doTransformParameters(Map<String,Object> params)
doTransformParameters
in class AbstractParameterTransformer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |