public class Disposition
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Disposition.DefaultFinder |
static interface |
Disposition.Finder |
Modifier and Type | Field and Description |
---|---|
static Disposition |
ALL_RIGHT
A special disposition that returns all cells/columns, but marks them as
being rendered in the right side.
|
static Disposition |
LEFT
Refers to the left side of the table.
|
static Disposition |
LEFT_AND_RIGHT
Refers to the left and the right side of the table.
|
static Disposition |
NONE
Disposition that refers to nothing.
|
static Disposition |
NONE_LEFT
This disposition is used to force the disposition to act on the left
side, but will NOT return any cells/columns.
|
static Disposition |
PRINTER_FRIENDLY
Disposition used for printerfriendly pages.
|
static Disposition |
RIGHT
Refers to the right side of the table.
|
static Disposition |
SIDEPANEL
Disposition used for sidepanel rendering
|
static Disposition |
SIDEPANEL_LEFT_AND_RIGHT |
Constructor and Description |
---|
Disposition(java.lang.String s,
Disposition.Finder f,
boolean l,
boolean r) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Cell> |
getCells(TableData data,
int tableMode)
Returns the cells in the table that belongs in the current disposition.
|
java.util.Iterator<Column> |
getColumns(TableBean<?> table,
int tableMode)
Returns the columns in the table that belongs in the current disposition.
|
boolean |
isLeft() |
boolean |
isLeftAndRight() |
boolean |
isRight() |
java.lang.String |
toString() |
public static final Disposition LEFT
public static final Disposition RIGHT
public static final Disposition LEFT_AND_RIGHT
public static final Disposition ALL_RIGHT
public static final Disposition SIDEPANEL
public static final Disposition SIDEPANEL_LEFT_AND_RIGHT
public static final Disposition PRINTER_FRIENDLY
public static final Disposition NONE
public static final Disposition NONE_LEFT
public Disposition(java.lang.String s, Disposition.Finder f, boolean l, boolean r)
public java.util.Iterator<Cell> getCells(TableData data, int tableMode)
data
- The table data. I.e., the row.tableMode
- The mode of the table.ModeUtils.getMode(TableBean)
public java.util.Iterator<Column> getColumns(TableBean<?> table, int tableMode)
table
- The table.tableMode
- The mode of the table.ModeUtils.getMode(TableBean)
public boolean isLeft()
LEFT
and
LEFT_AND_RIGHT
.public boolean isLeftAndRight()
LEFT_AND_RIGHT
.public boolean isRight()
RIGHT
and
LEFT_AND_RIGHT
.public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? Technia AB. All Rights Reserved.