Coverage Report - org.kuali.rice.krad.uif.core.Component
 
Classes in this File Line Coverage Branch Coverage Complexity
Component
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation
 3  
  * 
 4  
  * Licensed under the Educational Community License, Version 1.0 (the
 5  
  * "License"); you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  * 
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  * 
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 12  
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 13  
  * License for the specific language governing permissions and limitations under
 14  
  * the License.
 15  
  */
 16  
 package org.kuali.rice.krad.uif.core;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.List;
 20  
 import java.util.Map;
 21  
 import java.util.Set;
 22  
 
 23  
 import org.kuali.rice.krad.uif.container.View;
 24  
 import org.kuali.rice.krad.uif.modifier.ComponentModifier;
 25  
 import org.kuali.rice.krad.uif.service.ViewHelperService;
 26  
 
 27  
 /**
 28  
  * All classes of the UIF that are used as a rendering element implement the
 29  
  * component interface. This interface defines basic properties and methods that
 30  
  * all such classes much implement. All components within the framework have the
 31  
  * following structure:
 32  
  * <ul>
 33  
  * <li>Dictionary Configuration/Composition</li>
 34  
  * <li>Java Class (the Component implementation</li>
 35  
  * <li>>JSP Template Renderer</li>
 36  
  * </ul>
 37  
  * 
 38  
  * There are three basic types of components:
 39  
  * <ul>
 40  
  * <li>Container Components: <code>View</code>, <code>Group</code></li>
 41  
  * <li>Field Components: <code>Field</code></li>
 42  
  * <li>Widget Components: <code>Widget</code></li>
 43  
  * </ul>
 44  
  * 
 45  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 46  
  * 
 47  
  * @see org.kuali.rice.krad.uif.container.Container
 48  
  * @see org.kuali.rice.krad.uif.field.Field
 49  
  * @see org.kuali.rice.krad.uif.widget.Widget
 50  
  */
 51  
 public interface Component extends Serializable, Ordered, ScriptEventSupport {
 52  
 
 53  
     /**
 54  
      * The unique id (within a given tree) for the component
 55  
      * 
 56  
      * <p>
 57  
      * The id will be used by renderers to set the HTML element id. This gives a
 58  
      * way to find various elements for scripting. If the id is not given, a
 59  
      * default will be generated by the framework
 60  
      * </p>
 61  
      * 
 62  
      * @return String id
 63  
      */
 64  
     public String getId();
 65  
 
 66  
     /**
 67  
      * Sets the unique id (within a given tree) for the component
 68  
      * 
 69  
      * @param id
 70  
      *            - string to set as the component id
 71  
      */
 72  
     public void setId(String id);
 73  
 
 74  
     /**
 75  
      * The name for the component type
 76  
      * 
 77  
      * <p>
 78  
      * This is used within the rendering layer to pass the component instance
 79  
      * into the template. The component instance is exported under the name
 80  
      * given by this method.
 81  
      * </p>
 82  
      * 
 83  
      * @return String type name
 84  
      */
 85  
     public String getComponentTypeName();
 86  
 
 87  
     /**
 88  
      * The path to the JSP file that should be called to render the component
 89  
      * 
 90  
      * <p>
 91  
      * The path should be relative to the web root. An attribute will be
 92  
      * available to the component to use under the name given by the method
 93  
      * <code>getComponentTypeName</code>. Based on the component type,
 94  
      * additional attributes could be available for use. See the component
 95  
      * documentation for more information on such attributes.
 96  
      * </p>
 97  
      * 
 98  
      * <p>
 99  
      * e.g. '/krad/WEB-INF/jsp/tiles/component.jsp'
 100  
      * </p>
 101  
      * 
 102  
      * @return String representing the template path
 103  
      */
 104  
     public String getTemplate();
 105  
 
 106  
     /**
 107  
      * Setter for the components template
 108  
      * 
 109  
      * @param template
 110  
      */
 111  
     public void setTemplate(String template);
 112  
 
 113  
     /**
 114  
      * A title for the component. Depending on the component can be used in
 115  
      * various ways. For example with a Container component the title is used to
 116  
      * set the header text. For components like controls other other components
 117  
      * that render an HTML element it is used to set the HTML title attribute
 118  
      * 
 119  
      * @return String title for component
 120  
      */
 121  
     public String getTitle();
 122  
 
 123  
     /**
 124  
      * Setter for the components title
 125  
      * 
 126  
      * @param title
 127  
      */
 128  
     public void setTitle(String title);
 129  
 
 130  
     /**
 131  
      * Should be called to initialize the component
 132  
      * 
 133  
      * <p>
 134  
      * Where components can set defaults and setup other necessary state. The
 135  
      * initialize method should only be called once per component lifecycle and
 136  
      * is invoked within the initialize phase of the view lifecylce.
 137  
      * </p>
 138  
      * 
 139  
      * @param view
 140  
      *            - view instance in which the component belongs
 141  
      * @see ViewHelperService#initializeComponent
 142  
      */
 143  
     public void performInitialization(View view);
 144  
 
 145  
     /**
 146  
      * Called after the initialize phase to perform conditional logic based on
 147  
      * the model data
 148  
      * 
 149  
      * <p>
 150  
      * Where components can perform conditional logic such as dynamically
 151  
      * generating new fields or setting field state based on the given data
 152  
      * </p>
 153  
      * 
 154  
      * @param view
 155  
      *            - view instance to which the component belongs
 156  
      * @param model
 157  
      *            - Top level object containing the data (could be the form or a
 158  
      *            top level business object, dto)
 159  
      */
 160  
     public void performApplyModel(View view, Object model);
 161  
 
 162  
     /**
 163  
      * The last phase before the view is rendered. Here final preparations can
 164  
      * be made based on the updated view state
 165  
      * 
 166  
      * 
 167  
      * @param view
 168  
      *            - view instance that should be finalized for rendering
 169  
      * @param model
 170  
      *            - top level object containing the data
 171  
      * @param parent
 172  
      *            - parent component
 173  
      */
 174  
     public void performFinalize(View view, Object model, Component parent);
 175  
 
 176  
     /**
 177  
      * List of components that are contained within the component
 178  
      * 
 179  
      * <p>
 180  
      * Used by <code>ViewHelperService</code> for the various lifecycle
 181  
      * callbacks
 182  
      * </p>
 183  
      * 
 184  
      * @return List<Component> child components
 185  
      */
 186  
     public List<Component> getNestedComponents();
 187  
 
 188  
     /**
 189  
      * <code>ComponentModifier</code> instances that should be invoked to
 190  
      * initialize the component
 191  
      * 
 192  
      * <p>
 193  
      * These provide dynamic initialization behavior for the component and are
 194  
      * configured through the components definition. Each initializer will get
 195  
      * invoked by the initialize method.
 196  
      * </p>
 197  
      * 
 198  
      * @return List of component modifiers
 199  
      * @see ViewHelperService#initializeComponent
 200  
      */
 201  
     public List<ComponentModifier> getComponentModifiers();
 202  
 
 203  
     /**
 204  
      * Setter for the components List of <code>ComponentModifier</code>
 205  
      * instances
 206  
      * 
 207  
      * @param componentModifiers
 208  
      */
 209  
     public void setComponentModifiers(List<ComponentModifier> componentModifiers);
 210  
 
 211  
     /**
 212  
      * Used by the copy process to determine for which properties only the value
 213  
      * reference should be copied (not a new copy instance). Subclasses can
 214  
      * define the properties for which only the reference should be copied
 215  
      * 
 216  
      * @return Set<String> property names for which only the value reference
 217  
      *         should be copied
 218  
      * @see org.kuali.rice.krad.uif.util.ComponentUtils.copy(T)
 219  
      */
 220  
     public Set<String> getPropertiesForReferenceCopy();
 221  
 
 222  
     /**
 223  
      * Indicates whether the component should be rendered in the UI
 224  
      * 
 225  
      * <p>
 226  
      * If set to false, the corresponding component template will not be invoked
 227  
      * (therefore nothing will be rendered to the UI).
 228  
      * </p>
 229  
      * 
 230  
      * @return boolean true if the component should be rendered, false if it
 231  
      *         should not be
 232  
      */
 233  
     public boolean isRender();
 234  
 
 235  
     /**
 236  
      * Setter for the components render indicator
 237  
      * 
 238  
      * @param render
 239  
      */
 240  
     public void setRender(boolean render);
 241  
 
 242  
     /**
 243  
      * Expression language string for conditionally setting the render property
 244  
      * 
 245  
      * @return String el that should evaluate to boolean
 246  
      */
 247  
     public String getConditionalRender();
 248  
 
 249  
     /**
 250  
      * Setter for the conditional render string
 251  
      * 
 252  
      * @param conditionalRender
 253  
      */
 254  
     public void setConditionalRender(String conditionalRender);
 255  
 
 256  
     /**
 257  
      * Indicates whether the component should be hidden in the UI
 258  
      * 
 259  
      * <p>
 260  
      * How the hidden data is maintained depends on the views persistence mode.
 261  
      * If the mode is request, the corresponding data will be rendered to the UI
 262  
      * but not visible. If the mode is session, the data will not be rendered to
 263  
      * the UI but maintained server side.
 264  
      * </p>
 265  
      * 
 266  
      * <p>
 267  
      * For a <code>Container</code> component, the hidden setting will apply to
 268  
      * all contained components (making a section hidden makes all fields within
 269  
      * the section hidden)
 270  
      * </p>
 271  
      * 
 272  
      * @return boolean true if the component should be hidden, false if it
 273  
      *         should be visible
 274  
      */
 275  
     public boolean isHidden();
 276  
 
 277  
     /**
 278  
      * Setter for the hidden indicator
 279  
      * 
 280  
      * @param hidden
 281  
      */
 282  
     public void setHidden(boolean hidden);
 283  
 
 284  
     /**
 285  
      * Indicates whether the component can be edited
 286  
      * 
 287  
      * <p>
 288  
      * When readOnly the controls and widgets of <code>Field</code> components
 289  
      * will not be rendered. If the Field has an underlying value it will be
 290  
      * displayed readOnly to the user.
 291  
      * </p>
 292  
      * 
 293  
      * <p>
 294  
      * For a <code>Container</code> component, the readOnly setting will apply
 295  
      * to all contained components (making a section readOnly makes all fields
 296  
      * within the section readOnly)
 297  
      * </p>
 298  
      * </p>
 299  
      * 
 300  
      * @return boolean true if the component should be readOnly, false if is
 301  
      *         allows editing
 302  
      */
 303  
     public boolean isReadOnly();
 304  
 
 305  
     /**
 306  
      * Setter for the read only indicator
 307  
      * 
 308  
      * @param readOnly
 309  
      */
 310  
     public void setReadOnly(boolean readOnly);
 311  
 
 312  
     /**
 313  
      * Expression language string for conditionally setting the readOnly
 314  
      * property
 315  
      * 
 316  
      * @return String el that should evaluate to boolean
 317  
      */
 318  
     public String getConditionalReadOnly();
 319  
 
 320  
     /**
 321  
      * Setter for the conditional readOnly string
 322  
      * 
 323  
      * @param conditionalReadOnly
 324  
      */
 325  
     public void setConditionalReadOnly(String conditionalReadOnly);
 326  
 
 327  
     /**
 328  
      * Indicates whether the component is required
 329  
      * 
 330  
      * <p>
 331  
      * At the general component level required means there is some action the
 332  
      * user needs to take within the component. For example, within a section it
 333  
      * might mean the fields within the section should be completed. At a field
 334  
      * level, it means the field should be completed. This provides the ability
 335  
      * for the renderers to indicate the required action.
 336  
      * </p>
 337  
      * 
 338  
      * @return boolean true if the component is required, false if it is not
 339  
      *         required
 340  
      */
 341  
     public Boolean getRequired();
 342  
 
 343  
     /**
 344  
      * Setter for the required indicator
 345  
      * 
 346  
      * @param required
 347  
      */
 348  
     public void setRequired(Boolean required);
 349  
 
 350  
     /**
 351  
      * CSS style string to be applied to the component
 352  
      * 
 353  
      * <p>
 354  
      * Any style override or additions can be specified with this attribute.
 355  
      * This is used by the renderer to set the style attribute on the
 356  
      * corresponding element.
 357  
      * </p>
 358  
      * 
 359  
      * <p>
 360  
      * e.g. 'color: #000000;text-decoration: underline;'
 361  
      * </p>
 362  
      * 
 363  
      * @return String css style string
 364  
      */
 365  
     public String getStyle();
 366  
 
 367  
     /**
 368  
      * Setter for the components style
 369  
      * 
 370  
      * @param style
 371  
      */
 372  
     public void setStyle(String style);
 373  
 
 374  
     /**
 375  
      * CSS style class(s) to be applied to the component
 376  
      * 
 377  
      * <p>
 378  
      * Declares style classes for the component. Multiple classes are specified
 379  
      * with a space delimiter. This is used by the renderer to set the class
 380  
      * attribute on the corresponding element. The class(s) declared must be
 381  
      * available in the common style sheets or the style sheets specified for
 382  
      * the view
 383  
      * </p>
 384  
      * 
 385  
      * <p>
 386  
      * e.g. 'header left'
 387  
      * </p>
 388  
      * 
 389  
      * @return List<String> css style classes to apply
 390  
      */
 391  
     public List<String> getStyleClasses();
 392  
 
 393  
     /**
 394  
      * Setter for the components style classes
 395  
      * 
 396  
      * @param styleClass
 397  
      */
 398  
     public void setStyleClasses(List<String> styleClasses);
 399  
 
 400  
     /**
 401  
      * Adds a single style to the list of styles on this component
 402  
      * 
 403  
      * @param style
 404  
      */
 405  
     public void addStyleClass(String styleClass);
 406  
 
 407  
     /**
 408  
      * TODO: javadoc
 409  
      * 
 410  
      * @param itemStyle
 411  
      */
 412  
     public void appendToStyle(String itemStyle);
 413  
 
 414  
     /**
 415  
      * Number of places the component should take up horizontally in the
 416  
      * container
 417  
      * 
 418  
      * <p>
 419  
      * All components belong to a <code>Container</code> and are placed using a
 420  
      * <code>LayoutManager</code>. This property specifies how many places
 421  
      * horizontally the component should take up within the container. This is
 422  
      * only applicable for table based layout managers. Default is 1
 423  
      * </p>
 424  
      * 
 425  
      * TODO: this should not be on component interface since it only applies if
 426  
      * the layout manager supports it, need some sort of layoutOptions map for
 427  
      * field level options that depend on the manager
 428  
      * 
 429  
      * @return int number of columns to span
 430  
      */
 431  
     public int getColSpan();
 432  
 
 433  
     /**
 434  
      * Setter for the components column span
 435  
      * 
 436  
      * @param colSpan
 437  
      */
 438  
     public void setColSpan(int colSpan);
 439  
 
 440  
     /**
 441  
      * Number of places the component should take up vertically in the container
 442  
      * 
 443  
      * <p>
 444  
      * All components belong to a <code>Container</code> and are placed using a
 445  
      * <code>LayoutManager</code>. This property specifies how many places
 446  
      * vertically the component should take up within the container. This is
 447  
      * only applicable for table based layout managers. Default is 1
 448  
      * </p>
 449  
      * 
 450  
      * TODO: this should not be on component interface since it only applies if
 451  
      * the layout manager supports it, need some sort of layoutOptions map for
 452  
      * field level options that depend on the manager
 453  
      * 
 454  
      * @return int number of rows to span
 455  
      */
 456  
     public int getRowSpan();
 457  
 
 458  
     /**
 459  
      * Setter for the component row span
 460  
      * 
 461  
      * @param rowSpan
 462  
      */
 463  
     public void setRowSpan(int rowSpan);
 464  
 
 465  
     /**
 466  
      * Context map for the component
 467  
      * 
 468  
      * <p>
 469  
      * Any el statements configured for the components properties (e.g.
 470  
      * title="@{foo.property}") are evaluated using the el context map. This map
 471  
      * will get populated with default objects like the model, view, and request
 472  
      * from the <code>ViewHelperService</code>. Other components can push
 473  
      * further objects into the context so that they are available for use with
 474  
      * that component. For example, <code>Field</code> instances that are part
 475  
      * of a collection line as receive the current line instance
 476  
      * </p>
 477  
      * 
 478  
      * <p>
 479  
      * Context map also provides objects to methods that are invoked for
 480  
      * <code>GeneratedField</code> instances
 481  
      * </p>
 482  
      * 
 483  
      * <p>
 484  
      * The Map key gives the name of the variable that can be used within
 485  
      * expressions, and the Map value gives the object instance for which
 486  
      * expressions containing the variable should evaluate against
 487  
      * </p>
 488  
      * 
 489  
      * @return Map<String, Object> context
 490  
      */
 491  
     public Map<String, Object> getContext();
 492  
 
 493  
     /**
 494  
      * Setter for the context Map
 495  
      * 
 496  
      * @param context
 497  
      */
 498  
     public void setContext(Map<String, Object> context);
 499  
 
 500  
     /**
 501  
      * Places the given object into the context Map for the component with the
 502  
      * given name
 503  
      * 
 504  
      * @param objectName
 505  
      *            - name the object should be exposed under in the context map
 506  
      * @param object
 507  
      *            - object instance to place into context
 508  
      */
 509  
     public void pushObjectToContext(String objectName, Object object);
 510  
 
 511  
     /**
 512  
      * List of <code>PropertyReplacer</code> instances that will be evaluated
 513  
      * during the view lifecycle to conditional set properties on the
 514  
      * <code>Component</code> based on expression evaluations
 515  
      * 
 516  
      * @return List<PropertyReplacer> replacers to evaluate
 517  
      */
 518  
     public List<PropertyReplacer> getPropertyReplacers();
 519  
 
 520  
     /**
 521  
      * Setter for the components property substitutions
 522  
      * 
 523  
      * @param propertyReplacers
 524  
      */
 525  
     public void setPropertyReplacers(List<PropertyReplacer> propertyReplacers);
 526  
 
 527  
     /**
 528  
      * Options that are passed through to the Component renderer. The Map key is
 529  
      * the option name, with the Map value as the option value. See
 530  
      * documentation on the particular widget render for available options.
 531  
      * 
 532  
      * @return Map<String, String> options
 533  
      */
 534  
     public Map<String, String> getComponentOptions();
 535  
 
 536  
     /**
 537  
      * Setter for the widget's options
 538  
      * 
 539  
      * @param widgetOptions
 540  
      */
 541  
     public void setComponentOptions(Map<String, String> componentOptions);
 542  
 
 543  
     /**
 544  
      * Can be used to order a component within a List of other components, lower
 545  
      * numbers are placed higher up in the list, while higher numbers are placed
 546  
      * lower in the list
 547  
      * 
 548  
      * @return int ordering number
 549  
      * @see org.springframework.core.Ordered#getOrder()
 550  
      */
 551  
     public int getOrder();
 552  
 
 553  
     /**
 554  
      * Setter for the component's order
 555  
      * 
 556  
      * @param order
 557  
      */
 558  
     public void setOrder(int order);
 559  
     
 560  
     /**
 561  
      * Name of the method that should be invoked for finalizing the component
 562  
      * configuration (full method name, without parameters or return type)
 563  
      * 
 564  
      * <p>
 565  
      * Note the method can also be set with the finalizeMethodInvoker
 566  
      * targetMethod property. If the method is on the configured
 567  
      * <code>ViewHelperService</code>, only this property needs to be configured
 568  
      * </p>
 569  
      * 
 570  
      * <p>
 571  
      * If the component is selfRendered, the finalize method can return a string which 
 572  
      * will be set as the component's renderOutput. The selfRendered indicator will also
 573  
      * be set to true on the component. 
 574  
      * </p>
 575  
      * 
 576  
      * @return String method name
 577  
      */
 578  
     public String getFinalizeMethodToCall();
 579  
 
 580  
     /**
 581  
      * <code>MethodInvokerConfig</code> instance for the method that should be invoked
 582  
      * for finalizing the component configuration
 583  
      * 
 584  
      * <p>
 585  
      * MethodInvoker can be configured to specify the class or object the method
 586  
      * should be called on. For static method invocations, the targetClass
 587  
      * property can be configured. For object invocations, that targetObject
 588  
      * property can be configured
 589  
      * </p>
 590  
      * 
 591  
      * <p>
 592  
      * If the component is selfRendered, the finalize method can return a string which 
 593  
      * will be set as the component's renderOutput. The selfRendered indicator will also
 594  
      * be set to true on the component. 
 595  
      * </p>
 596  
      * 
 597  
      * @return MethodInvokerConfig instance
 598  
      */
 599  
     public MethodInvokerConfig getFinalizeMethodInvoker();
 600  
     
 601  
     /**
 602  
      * Indicates whether the component contains its own render output (through
 603  
      * the renderOutput property)
 604  
      * 
 605  
      * <p>
 606  
      * If self rendered is true, the corresponding template for the component
 607  
      * will not be invoked and the renderOutput String will be written to the
 608  
      * response as is.
 609  
      * </p>
 610  
      * 
 611  
      * @return boolean true if component is self rendered, false if not (renders
 612  
      *         through template)
 613  
      */
 614  
     public boolean isSelfRendered();
 615  
 
 616  
     /**
 617  
      * Setter for the self render indicator
 618  
      * 
 619  
      * @param selfRendered
 620  
      */
 621  
     public void setSelfRendered(boolean selfRendered);
 622  
 
 623  
     /**
 624  
      * Rendering output for the component that will be sent as part of the
 625  
      * response (can contain static text and HTML)
 626  
      * 
 627  
      * @return String render output
 628  
      */
 629  
     public String getRenderOutput();
 630  
 
 631  
     /**
 632  
      * Setter for the component's render output
 633  
      * 
 634  
      * @param renderOutput
 635  
      */
 636  
     public void setRenderOutput(String renderOutput);
 637  
     
 638  
 
 639  
     /**
 640  
      * @return the progressiveRender
 641  
      */
 642  
     public String getProgressiveRender();
 643  
 
 644  
     /**
 645  
      * @param progressiveRender the progressiveRender to set
 646  
      */
 647  
     public void setProgressiveRender(String progressiveRender);
 648  
 
 649  
     /**
 650  
      * @return the conditionalRefresh
 651  
      */
 652  
     public String getConditionalRefresh();
 653  
 
 654  
     /**
 655  
      * @param conditionalRefresh the conditionalRefresh to set
 656  
      */
 657  
     public void setConditionalRefresh(String conditionalRefresh);
 658  
 
 659  
     /**
 660  
      * @return the progressiveDisclosureControlNames
 661  
      */
 662  
     public List<String> getProgressiveDisclosureControlNames();
 663  
 
 664  
     /**
 665  
      * @return the progressiveDisclosureConditionJs
 666  
      */
 667  
     public String getProgressiveDisclosureConditionJs();
 668  
 
 669  
     /**
 670  
      * @return the conditionalRefreshConditionJs
 671  
      */
 672  
     public String getConditionalRefreshConditionJs();
 673  
 
 674  
     /**
 675  
      * @return the conditionalRefreshControlNames
 676  
      */
 677  
     public List<String> getConditionalRefreshControlNames();
 678  
     
 679  
     /**
 680  
      * @return the progressiveRenderViaAJAX
 681  
      */
 682  
     public boolean isProgressiveRenderViaAJAX();
 683  
 
 684  
     /**
 685  
      * @param progressiveRenderViaAJAX the progressiveRenderViaAJAX to set
 686  
      */
 687  
     public void setProgressiveRenderViaAJAX(boolean progressiveRenderViaAJAX);
 688  
     
 689  
     /**
 690  
      * If true, when the progressiveRender condition is satisfied, the component
 691  
      * will always be retrieved from the server and shown(as opposed to being
 692  
      * stored on the client, but hidden, after the first retrieval as is the
 693  
      * case with the progressiveRenderViaAJAX option). <b>By default, this is
 694  
      * false, so components with progressive render capabilities will always be
 695  
      * already within the client html and toggled to be hidden or visible.</b>
 696  
      * 
 697  
      * @return the progressiveRenderAndRefresh
 698  
      */
 699  
     public boolean isProgressiveRenderAndRefresh();
 700  
 
 701  
     /**
 702  
      * @param progressiveRenderAndRefresh
 703  
      *            the progressiveRenderAndRefresh to set
 704  
      */
 705  
     public void setProgressiveRenderAndRefresh(boolean progressiveRenderAndRefresh);
 706  
 
 707  
     /**
 708  
      * Specifies a property by name that when it value changes will
 709  
      * automatically perform a refresh on this component. This can be a comma
 710  
      * separated list of multiple properties that require this component to be
 711  
      * refreshed when any of them change. <Br>DO NOT use with progressiveRender
 712  
      * unless it is know that progressiveRender condition will always be
 713  
      * satisfied before one of these fields can be changed.
 714  
      * 
 715  
      * @return the refreshWhenChanged
 716  
      */
 717  
     public String getRefreshWhenChanged();
 718  
 
 719  
     /**
 720  
      * @param refreshWhenChanged
 721  
      *            the refreshWhenChanged to set
 722  
      */
 723  
     public void setRefreshWhenChanged(String refreshWhenChanged);
 724  
     
 725  
     /**
 726  
      * Result of the conditionalRefresh expression, true if satisfied, otherwise false.
 727  
      * Note: not currently used for any processing, required by the expression evaluator.
 728  
      * @return the refresh
 729  
      */
 730  
     public boolean isRefresh();
 731  
 
 732  
     /**
 733  
      * @param refresh the refresh to set
 734  
      */
 735  
     public void setRefresh(boolean refresh);
 736  
     
 737  
     /**
 738  
      * Control names which will refresh this component when they are changed, added
 739  
      * internally
 740  
      * @return the refreshWhenChangedControlNames
 741  
      */
 742  
     public List<String> getRefreshWhenChangedControlNames();
 743  
 }