wheel.components
Class RenderableComponentConfiguration

java.lang.Object
  extended by wheel.components.RenderableComponentConfiguration
Direct Known Subclasses:
StandaloneComponentConfiguration

public class RenderableComponentConfiguration
extends java.lang.Object


Constructor Summary
RenderableComponentConfiguration(RenderableComponent forComponent)
           
 
Method Summary
 boolean isRenderId()
          Returns true if this component should render its componentId as id-attribute in the xhtml-code.
 boolean isRenderSelf()
          Returns true if this component should render its opening and closing tags.
 boolean isUseXhtml()
          Returns true if the component is using xhtml-mode.
 boolean isVisible()
           
 RenderableComponentConfiguration setRenderId(boolean renderId)
          Calling this method with false is useful when you want to suppress id-attribute for a single component.
 RenderableComponentConfiguration setRenderSelf(boolean renderSelf)
           
 RenderableComponentConfiguration setUseXhtml(boolean useXhtml)
          Sets the xhtml-mode.
 RenderableComponentConfiguration setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderableComponentConfiguration

public RenderableComponentConfiguration(RenderableComponent forComponent)
Method Detail

isRenderId

public boolean isRenderId()
Returns true if this component should render its componentId as id-attribute in the xhtml-code.

Returns:

setRenderId

public RenderableComponentConfiguration setRenderId(boolean renderId)
Calling this method with false is useful when you want to suppress id-attribute for a single component.

Parameters:
renderId -

isRenderSelf

public boolean isRenderSelf()
Returns true if this component should render its opening and closing tags. Setting renderSelf to false doesn't stop it from rendering its content.

Returns:

setRenderSelf

public RenderableComponentConfiguration setRenderSelf(boolean renderSelf)
Parameters:
renderSelf -
See Also:
this#isRenderSelf()

isUseXhtml

public boolean isUseXhtml()
Returns true if the component is using xhtml-mode. Xhtml-mode means that all rendering hints that match any xhtml-tags, will be interpreted as the desired tagname and all others as values for the class-attribute. In non-xhtml mode only the first rendering hint will be used and it will determine the tagname.

Returns:

setUseXhtml

public RenderableComponentConfiguration setUseXhtml(boolean useXhtml)
Sets the xhtml-mode. By default xhtml-mode is always on, but if you want to disable it to output xml instead of xhtml, call setUseXhtml(false). This setting is inheritable. It means that all components you add to this component, will also be in non-xhtml mode.

Parameters:
useXhtml -

isVisible

public boolean isVisible()

setVisible

public RenderableComponentConfiguration setVisible(boolean visible)


Copyright © 2007-2008. All Rights Reserved.