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

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
Direct Known Subclasses:
OncePanel

public class Panel
extends Container

Description:

Author:
Felix Jost

Constructor Summary
Panel(java.lang.String name)
           
 
Method Summary
 Component getContent()
           
 DragAndDrop getDragAndDrop()
           
 java.lang.String getExtendedDebugInfo()
           
 ComponentRenderer getHTMLRendererSingleton()
           
 void popContent()
           
 void pushContent(Component newContent)
           
 void put(Component component)
          puts a component into this container
 void setContent(Component newContent)
          clears the stack and sets the base content anew.
 
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, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Panel

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

getContent

public Component getContent()
Returns:

put

public void put(Component component)
Description copied from class: Container
puts a component into this container

Overrides:
put in class Container
See Also:
Container.put(org.olat.core.gui.components.Component)

setContent

public void setContent(Component newContent)
clears the stack and sets the base content anew.

Parameters:
newContent - the newContent. if null, then the panel will be empty

pushContent

public void pushContent(Component newContent)
Parameters:
newContent - may not be null

popContent

public void popContent()

getExtendedDebugInfo

public java.lang.String getExtendedDebugInfo()
Overrides:
getExtendedDebugInfo in class Container
Returns:
the extended debuginfo
See Also:
Container.getExtendedDebugInfo()

getHTMLRendererSingleton

public ComponentRenderer getHTMLRendererSingleton()
Specified by:
getHTMLRendererSingleton in class Component

getDragAndDrop

public DragAndDrop getDragAndDrop()
Returns:
Returns the dragAndDrop (it is created if it was null) as usual, all methods here are not threadsafe