org.olat.core.gui.components.panel
Class OncePanel

java.lang.Object
  extended by org.olat.core.gui.components.Component
      extended by org.olat.core.gui.components.Container
          extended by org.olat.core.gui.components.panel.Panel
              extended by org.olat.core.gui.components.panel.OncePanel

public class OncePanel
extends Panel

Description:
A Panel which shows a certain content only one render time, and then is hidden until a new content is set. useful for e.g. a message on the screen which should automatically disappear after having been rendered once until a new message appears.

Initial Date: 19.01.2007

Author:
Felix Jost, http://www.goodsolutions.ch

Constructor Summary
OncePanel(java.lang.String name)
           
 
Method Summary
 void validate(UserRequest ureq, ValidationResult vr)
          called just before the rendering of the -whole tree- takes place, so e.g.
 
Methods inherited from class org.olat.core.gui.components.panel.Panel
getContent, getDragAndDrop, getExtendedDebugInfo, getHTMLRendererSingleton, popContent, pushContent, put, setContent
 
Methods inherited from class org.olat.core.gui.components.Container
getComponent, getComponents, put, remove
 
Methods inherited from class org.olat.core.gui.components.Component
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OncePanel

public OncePanel(java.lang.String name)
Parameters:
name -
Method Detail

validate

public void validate(UserRequest ureq,
                     ValidationResult vr)
Description copied from class: Component
called just before the rendering of the -whole tree- takes place, so e.g. lazy fetching can be implemented, or issueing a request for a new moduleUri (e.g. for CPComponent, so that the browser loads images correctly). only called when the component is visible

Overrides:
validate in class Component