public abstract class SizingManager extends BIComplexAttributeBase implements java.io.Serializable
SizingManager is used to specify pivot table column widths, row heights,
row header column widths, and column header row heights.| Modifier and Type | Field and Description |
|---|---|
static int |
AUTOSIZE
Value used to specify that a column width / row height should be ignored and that row/column autosizing should
occur for the specified row/column.
|
static org.apache.myfaces.trinidad.bean.PropertyKey |
COLUMN_HEADER_ROW_HEIGHT_RULES_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
COLUMN_WIDTH_RULES_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
DEFAULT_COLUMN_HEADER_ROW_HEIGHT_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
DEFAULT_COLUMN_WIDTH_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
DEFAULT_ROW_HEADER_COLUMN_WIDTH_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
DEFAULT_ROW_HEIGHT_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
ROW_HEADER_COLUMN_WIDTH_RULES_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
ROW_HEIGHT_RULES_KEY |
static int |
SCROLL_SIZE
Value used to specify that a row height should be determined by the maximum scroll height of all elements within the
cells of the specified row.
|
static org.apache.myfaces.trinidad.bean.FacesBean.Type |
TYPE |
ID_KEY, m_parent, TRANSIENT_KEY| Constructor and Description |
|---|
SizingManager()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
computeColumnHeaderRowHeight(java.lang.String layer)
Returns the height in pixels of a layer on the pivot table's column header.
|
abstract int |
computeColumnWidth(QDR sliceQDR)
Returns the width in pixels of the specified pivot table column.
|
abstract int |
computeRowHeaderColumnWidth(java.lang.String layer)
Returns the width in pixels of a layer on the pivot table's row header.
|
abstract int |
computeRowHeight(QDR sliceQDR)
Returns the height in pixels of the specified pivot table row.
|
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType() |
java.util.List<SizingRule> |
getColumnHeaderRowHeightRules()
Retrieves a
List of SizingRules that are used to specify column header row heights. |
java.util.List<SizingRule> |
getColumnWidthRules()
Retrieves a
List of SizingRules that are used to specify column widths. |
int |
getDefaultColumnHeaderRowHeight()
Retrieves the default column header row height.
|
int |
getDefaultColumnWidth()
Retrieves the default column width.
|
int |
getDefaultRowHeaderColumnWidth()
Retrieves the default row header column width.
|
int |
getDefaultRowHeight()
Retrieves the default row height.
|
abstract java.util.List<SizingRule> |
getOverriddenRules(java.util.List<SizingRule> rules,
SizingRule rule)
Retrieves a
List of SizingRules that are overridden by the specified rule. |
java.util.List<SizingRule> |
getRowHeaderColumnWidthRules()
Retrieves a
List of SizingRules that are used to specify row header column widths. |
java.util.List<SizingRule> |
getRowHeightRules()
Retrieves a
List of SizingRules that are used to specify row heights. |
abstract void |
initRules()
This method is called by the Pivot Table, before asking the
SizingManager to compute sizes. |
abstract void |
removeOverriddenRules(java.util.List<SizingRule> rules,
SizingRule rule)
Removes
SizingRules, from a List of SizingRules,
that are overridden by the specified rule. |
void |
removeRules(java.util.List<SizingRule> rules)
The Pivot Table calls this method whenever a layout change / pivot is performed by the
end user.
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object stateObj) |
void |
setColumnHeaderRowHeightRules(java.util.List<SizingRule> rules)
Specifies a
List of SizingRules that are used to specify column header row heights. |
void |
setColumnWidthRules(java.util.List<SizingRule> rules)
Specifies a
List of SizingRules that are used to specify column widths. |
void |
setDefaultColumnHeaderRowHeight(int height)
Specifies the default column header row height.
|
void |
setDefaultColumnWidth(int width)
Specifies the default column width.
|
void |
setDefaultRowHeaderColumnWidth(int width)
Specifies the default row header column width.
|
void |
setDefaultRowHeight(int height)
Specifies the default row height.
|
void |
setRowHeaderColumnWidthRules(java.util.List<SizingRule> rules)
Specifies a
List of SizingRules that are used to specify row header column widths. |
void |
setRowHeightRules(java.util.List<SizingRule> rules)
Specifies a
List of SizingRules that are used to specify row heights. |
applyProperties, getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, registerAttachedObjectKey, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdatedpublic static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
public static final org.apache.myfaces.trinidad.bean.PropertyKey DEFAULT_COLUMN_WIDTH_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey DEFAULT_ROW_HEIGHT_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey DEFAULT_COLUMN_HEADER_ROW_HEIGHT_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey DEFAULT_ROW_HEADER_COLUMN_WIDTH_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey ROW_HEIGHT_RULES_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey COLUMN_WIDTH_RULES_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey COLUMN_HEADER_ROW_HEIGHT_RULES_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey ROW_HEADER_COLUMN_WIDTH_RULES_KEY
public static final int AUTOSIZE
public static final int SCROLL_SIZE
IllegalStateException
if it is returned in computeColumnWidth, computeRowHeaderColumnWidth,
computeColumnHeaderRowHeightpublic abstract int computeColumnWidth(QDR sliceQDR)
sliceQDR - the QDR of the desired column, containing a key/value pair for each header cell in the columnpublic abstract int computeRowHeight(QDR sliceQDR)
sliceQDR - the QDR of the desired row, containing a key/value pair for each header cell in the rowpublic abstract int computeRowHeaderColumnWidth(java.lang.String layer)
layer - the layer on the row headerpublic abstract int computeColumnHeaderRowHeight(java.lang.String layer)
layer - the layer on the column headerpublic void removeRules(java.util.List<SizingRule> rules)
SliceSizingRulesImpls
that have their removedAfterLayoutChange property set to true, which is the
default for SliceSizingRulesImpls.
Since the Pivot Table is not notified of query changes made by an application, applications should call this method:
- using the column width sizing rule list, if the application explicitly changes the layout of column edge
- using the row height sizing rule list, if the application explicitly changes the layout of row edgerules - a List of SizingRulespublic abstract void initRules()
SizingManager to compute sizes.public int getDefaultColumnWidth()
public void setDefaultColumnWidth(int width)
IllegalStateException when Pivot Table calls computeColumnWidth.width - the default column width in pixelspublic int getDefaultRowHeight()
public void setDefaultRowHeight(int height)
IllegalStateException when Pivot Table calls computeRowHeight.height - the default row height in pixelspublic int getDefaultRowHeaderColumnWidth()
public void setDefaultRowHeaderColumnWidth(int width)
IllegalStateException when Pivot Table calls computeRowHeaderColumnWidth.width - the default column width in pixelspublic int getDefaultColumnHeaderRowHeight()
public void setDefaultColumnHeaderRowHeight(int height)
IllegalStateException when Pivot Table calls computeColumnHeaderRowHeight.height - the default column header row height in pixelspublic java.util.List<SizingRule> getColumnWidthRules()
List of SizingRules that are used to specify column widths.
This list should only contain SliceSizingRules or custom SizingRules.List of SizingRulespublic void setColumnWidthRules(java.util.List<SizingRule> rules)
List of SizingRules that are used to specify column widths.
This list should only contain SliceSizingRules or custom SizingRules.rules - a List of SizingRulespublic java.util.List<SizingRule> getRowHeightRules()
List of SizingRules that are used to specify row heights.
This list should only contain SliceSizingRules or custom SizingRules.List of SizingRulespublic void setRowHeightRules(java.util.List<SizingRule> rules)
List of SizingRules that are used to specify row heights.
This list should only contain SliceSizingRules or custom SizingRules.rules - a List of SizingRulespublic java.util.List<SizingRule> getRowHeaderColumnWidthRules()
List of SizingRules that are used to specify row header column widths.
This list should only contain LayerSizingRules or custom SizingRules.List of SizingRulespublic void setRowHeaderColumnWidthRules(java.util.List<SizingRule> rules)
List of SizingRules that are used to specify row header column widths.
This list should only contain LayerSizingRules or custom SizingRules.rules - a List of SizingRulespublic java.util.List<SizingRule> getColumnHeaderRowHeightRules()
List of SizingRules that are used to specify column header row heights.
This list should only contain LayerSizingRuless or custom SizingRules.List of SizingRulespublic void setColumnHeaderRowHeightRules(java.util.List<SizingRule> rules)
List of SizingRules that are used to specify column header row heights.
This list should only contain LayerSizingRuless or custom SizingRules.rules - a List of SizingRulespublic abstract java.util.List<SizingRule> getOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule)
List of SizingRules that are overridden by the specified rule.rules - a List of SizingRulesrule - a SizingRule instance that is used to determine the overridden rulesList of overridden SizingRulespublic abstract void removeOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule)
SizingRules, from a List of SizingRules,
that are overridden by the specified rule.rules - a List of SizingRulesrule - a SizingRule instance that is used to determine the overridden rulespublic void restoreState(javax.faces.context.FacesContext context,
java.lang.Object stateObj)
restoreState in interface javax.faces.component.StateHolderrestoreState in class BIComplexAttributeBaseprotected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
getBeanType in class BIComplexAttributeBase