org.kuali.rice.krad.uif.modifier
Class LabelSeparateModifier

java.lang.Object
  extended by org.kuali.rice.krad.uif.component.ConfigurableBase
      extended by org.kuali.rice.krad.uif.modifier.ComponentModifierBase
          extended by org.kuali.rice.krad.uif.modifier.LabelSeparateModifier
All Implemented Interfaces:
Serializable, Configurable, ComponentModifier, org.springframework.core.Ordered

public class LabelSeparateModifier
extends ComponentModifierBase

Pulls Label instances out of a contained field so they will be placed separately in the LayoutManager

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered
INITIAL_ORDER_VALUE
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
LabelSeparateModifier()
           
 
Method Summary
 Set<Class<? extends Component>> getSupportedComponents()
          Set of Component classes that may be sent to the modifier
 void performModification(View view, Object model, Component component)
          Iterates through the Group items and if the label field is not null and should be rendered, adds it to the new field list immediately before the Field item the label applies to.
 
Methods inherited from class org.kuali.rice.krad.uif.modifier.ComponentModifierBase
getComponentPrototypes, getOrder, getRunCondition, getRunPhase, performInitialization, setOrder, setRunCondition, setRunPhase
 
Methods inherited from class org.kuali.rice.krad.uif.component.ConfigurableBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.uif.component.Configurable
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph
 

Constructor Detail

LabelSeparateModifier

public LabelSeparateModifier()
Method Detail

performModification

public void performModification(View view,
                                Object model,
                                Component component)
Iterates through the Group items and if the label field is not null and should be rendered, adds it to the new field list immediately before the Field item the label applies to. Finally the new list of components is set on the group

Parameters:
view - - the view instance to which the component belongs
model - - top level object containing the view data
component - - the component instance to modify
See Also:
ComponentModifier.performModification(org.kuali.rice.krad.uif.view.View, java.lang.Object, org.kuali.rice.krad.uif.component.Component)

getSupportedComponents

public Set<Class<? extends Component>> getSupportedComponents()
Description copied from interface: ComponentModifier
Set of Component classes that may be sent to the modifier

If an empty or null list is returned, it is assumed the modifier supports all components. The returned set will be used by the dictionary validation

Returns:
Set component classes
See Also:
ComponentModifier.getSupportedComponents()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.