public class LayerSizingRuleImpl extends LayerSizingRule
LayerSizingRule, used for sizing layers on the row edge and column edge of the Pivot Table.
It is recommended that a Serializable subclass be used instead of this class, such as SerializableLayerSizingRuleImpl.
If an instance of this class is used in conjunction with session change management, it is subject to being replaced by an equivalent instance
of SerializableLayerSizingRuleImpl.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_LAYER_SIZING_RULE_TYPE |
static org.apache.myfaces.trinidad.bean.PropertyKey |
LAYER_KEY |
static org.apache.myfaces.trinidad.bean.FacesBean.Type |
TYPE |
SIZE_KEYID_KEY, m_parent, TRANSIENT_KEY| Constructor and Description |
|---|
LayerSizingRuleImpl()
Constructs an empty rule.
|
LayerSizingRuleImpl(java.lang.String layer,
int size)
Constructs a rule for the specified layer with the specified size.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType()
Gets the bean type.
|
java.lang.String |
getLayer()
Gets the layer of this rule.
|
java.lang.String |
getRuleType()
Returns the rule type.
|
void |
initBeforeRun()
Called after configuring rules, but before running rules.
|
boolean |
overridesRule(LayerSizingRuleImpl rule)
Indicates whether the specified rule's layer equals the layer of this rule.
|
boolean |
runRule(java.lang.String layer)
Indicates whether the specified layer equals the layer of this rule.
|
void |
setLayer(java.lang.String layer)
Sets the layer of this rule.
|
getSize, setSizeapplyProperties, getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, registerAttachedObjectKey, restoreState, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdatedpublic static final java.lang.String DEFAULT_LAYER_SIZING_RULE_TYPE
public static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
public static final org.apache.myfaces.trinidad.bean.PropertyKey LAYER_KEY
public LayerSizingRuleImpl()
public LayerSizingRuleImpl(java.lang.String layer,
int size)
layer - the layer referenced by this rulesize - size for that layer, in pixelspublic java.lang.String getLayer()
public void setLayer(java.lang.String layer)
layer - the layer referenced by this rulepublic boolean runRule(java.lang.String layer)
LayerSizingRulerunRule in class LayerSizingRulelayer - the layer to compare to the layer referenced by this ruletrue if this rule applies to the specified layer, false otherwiseprotected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
SizingRulegetBeanType in class SizingRulepublic void initBeforeRun()
SizingRuleinitBeforeRun in class SizingRulepublic boolean overridesRule(LayerSizingRuleImpl rule)
rule - the rule to compare to this ruletrue if the specified rule's layer equals the layer of
this rule, false otherwisepublic java.lang.String getRuleType()
SizingRulegetRuleType in class SizingRule