Class CmsRenderer.TabSizeHandler

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.ResizeHandler, com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer>, com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.acacia.shared.CmsEntity>, com.google.gwt.event.shared.EventHandler
    Enclosing class:
    CmsRenderer

    protected class CmsRenderer.TabSizeHandler
    extends java.lang.Object
    implements com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer>, com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.acacia.shared.CmsEntity>, com.google.gwt.event.logical.shared.ResizeHandler
    Handles the size of a tabbed panel.

    • Constructor Summary

      Constructors 
      Constructor Description
      TabSizeHandler​(CmsTabbedPanel<com.google.gwt.user.client.ui.FlowPanel> tabbedPanel, com.google.gwt.user.client.ui.Panel context)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void adjustContextHeight()
      Adjusts the tabbed panel height to the height of the current tab content.
      void onResize​(com.google.gwt.event.logical.shared.ResizeEvent event)  
      void onSelection​(com.google.gwt.event.logical.shared.SelectionEvent<java.lang.Integer> event)  
      void onValueChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<org.opencms.acacia.shared.CmsEntity> event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TabSizeHandler

        public TabSizeHandler​(CmsTabbedPanel<com.google.gwt.user.client.ui.FlowPanel> tabbedPanel,
                              com.google.gwt.user.client.ui.Panel context)
        Constructor.

        Parameters:
        tabbedPanel - the tabbed panel
        context - the context panel
    • Method Detail

      • onResize

        public void onResize​(com.google.gwt.event.logical.shared.ResizeEvent event)
        Specified by:
        onResize in interface com.google.gwt.event.logical.shared.ResizeHandler
        See Also:
        ResizeHandler.onResize(com.google.gwt.event.logical.shared.ResizeEvent)
      • onSelection

        public void onSelection​(com.google.gwt.event.logical.shared.SelectionEvent<java.lang.Integer> event)
        Specified by:
        onSelection in interface com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer>
        See Also:
        SelectionHandler.onSelection(com.google.gwt.event.logical.shared.SelectionEvent)
      • onValueChange

        public void onValueChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<org.opencms.acacia.shared.CmsEntity> event)
        Specified by:
        onValueChange in interface com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.acacia.shared.CmsEntity>
        See Also:
        ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
      • adjustContextHeight

        protected void adjustContextHeight()
        Adjusts the tabbed panel height to the height of the current tab content.