com.vaadin.client.ui.

Class VScrollTable.TableFooter

  • java.lang.Object
    • com.google.gwt.user.client.ui.UIObject
      • com.google.gwt.user.client.ui.Widget
        • com.google.gwt.user.client.ui.Panel
          • com.vaadin.client.ui.VScrollTable.TableFooter
  • All Implemented Interfaces:

    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>

    Enclosing class:

    VScrollTable


    public class VScrollTable.TableFooter
    extends com.google.gwt.user.client.ui.Panel

    The footer of the table which can be seen in the bottom of the Table.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors
      Constructor and Description
      TableFooter() 
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      void clear() 
      void disableBrowserIntelligence()

      Disable browser measurement of the table width

      void enableBrowserIntelligence()

      Enable browser measurement of the table width

      void enableColumn(String cid, int index)

      Enable a column (Sets the footer cell)

      VScrollTable.FooterCell getFooterCell(int index)

      Gets a footer cell by using a column index

      VScrollTable.FooterCell getFooterCell(String cid)

      Gets a footer cell which represents the given columnId

      Iterator<com.google.gwt.user.client.ui.Widget> iterator() 
      void moveCell(int oldIndex, int newIndex)

      Swap cells when the column are dragged

      boolean remove(com.google.gwt.user.client.ui.Widget w) 
      void removeCell(String colKey)

      Remove a cell by using the columnId

      void setFooterCell(int index, VScrollTable.FooterCell cell)

      Set a footer cell for a specified column index

      void setHorizontalScrollPosition(int scrollLeft)

      Set the horizontal position in the cell in the footer.

      void updateCellsFromUIDL(UIDL uidl)

      Updates the cells contents when updateUIDL request is received

      protected void updateStyleNames(String primaryStyleName) 
      • Methods inherited from class com.google.gwt.user.client.ui.Panel

        add, add, adopt, doAttachChildren, doDetachChildren, orphan, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
    • Constructor Detail

      • TableFooter

        public TableFooter()
    • Method Detail

      • updateStyleNames

        protected void updateStyleNames(String primaryStyleName)
      • clear

        public void clear()

        Specified by:

        clear in interface com.google.gwt.user.client.ui.HasWidgets

        Overrides:

        clear in class com.google.gwt.user.client.ui.Panel

      • remove

        public boolean remove(com.google.gwt.user.client.ui.Widget w)

        Specified by:

        remove in interface com.google.gwt.user.client.ui.HasWidgets

        Specified by:

        remove in class com.google.gwt.user.client.ui.Panel

      • iterator

        public Iterator<com.google.gwt.user.client.ui.Widget> iterator()
      • getFooterCell

        public VScrollTable.FooterCell getFooterCell(String cid)

        Gets a footer cell which represents the given columnId

        Parameters:

        cid - The columnId

        Returns:

        The cell

      • getFooterCell

        public VScrollTable.FooterCell getFooterCell(int index)

        Gets a footer cell by using a column index

        Parameters:

        index - The index of the column

        Returns:

        The Cell

      • updateCellsFromUIDL

        public void updateCellsFromUIDL(UIDL uidl)

        Updates the cells contents when updateUIDL request is received

        Parameters:

        uidl - The UIDL

      • setFooterCell

        public void setFooterCell(int index,
                                  VScrollTable.FooterCell cell)

        Set a footer cell for a specified column index

        Parameters:

        index - The index

        cell - The footer cell

      • removeCell

        public void removeCell(String colKey)

        Remove a cell by using the columnId

        Parameters:

        colKey - The columnId to remove

      • enableColumn

        public void enableColumn(String cid,
                                 int index)

        Enable a column (Sets the footer cell)

        Parameters:

        cid - The columnId

        index - The index of the column

      • disableBrowserIntelligence

        public void disableBrowserIntelligence()

        Disable browser measurement of the table width

      • enableBrowserIntelligence

        public void enableBrowserIntelligence()

        Enable browser measurement of the table width

      • setHorizontalScrollPosition

        public void setHorizontalScrollPosition(int scrollLeft)

        Set the horizontal position in the cell in the footer. This is done when a horizontal scrollbar is present.

        Parameters:

        scrollLeft - The value of the leftScroll

      • moveCell

        public void moveCell(int oldIndex,
                             int newIndex)

        Swap cells when the column are dragged

        Parameters:

        oldIndex - The old index of the cell

        newIndex - The new index of the cell