psdi.webclient.controls

Class Table

  • All Implemented Interfaces:
    java.lang.Cloneable, DataBeanListener


    public class Table
    extends DatasrcInstance
    implements DataBeanListener
    This is driving class behind the set of table controls. It uses databean and a set of flags to keep state of any table.
    • Field Detail

      • focusedCellId

        public java.lang.String focusedCellId
      • dataSize

        public double dataSize
    • Constructor Detail

      • Table

        public Table()
    • Method Detail

      • initialize

        public void initialize()
        Description copied from class: BaseInstance
        should be extended to do any setup required by the instance. for example, the DatasrcInstance will call initialize to create data sources found in the bind list.
        Overrides:
        initialize in class ControlInstance
      • getHideSelectRows

        public boolean getHideSelectRows()
      • setHideSelectRows

        public void setHideSelectRows(boolean hide)
      • getMultiple

        public boolean getMultiple()
      • addSelectAllRowControl

        public void addSelectAllRowControl(ControlInstance selectRow)
      • addSelectRowControl

        public void addSelectRowControl(ControlInstance selectRow)
      • setBody

        public void setBody(TableBody body)
      • setDetailsExpanded

        protected void setDetailsExpanded(boolean abool)
      • getFlagValue

        public boolean getFlagValue(int flag)
      • needsRefresh

        public java.lang.Object needsRefresh()
      • isExpanded

        public java.lang.Object isExpanded()
      • isFilterOpen

        public java.lang.Object isFilterOpen()
      • isFilterable

        public java.lang.Object isFilterable()
      • canDownload

        public java.lang.Object canDownload()
      • moreRowsBefore

        public java.lang.String moreRowsBefore()
      • moreRowsAfter

        public java.lang.String moreRowsAfter()
      • morePagesBefore

        public java.lang.String morePagesBefore()
      • morePagesAfter

        public java.lang.String morePagesAfter()
      • isFiltered

        public java.lang.String isFiltered()
      • isDetailsExpanded

        public java.lang.String isDetailsExpanded()
      • isTableStartEmpty

        public java.lang.String isTableStartEmpty()
      • isTableAllSelected

        public java.lang.String isTableAllSelected()
      • isTableSelectRowsOpen

        public java.lang.String isTableSelectRowsOpen()
      • getCurrentRow

        public int getCurrentRow()
      • setOldCurrentRow

        public void setOldCurrentRow(int row)
      • getOldCurrentRow

        public int getOldCurrentRow()
      • togglefilter

        public int togglefilter()
        Toggles the state of a table filter
      • defaultRowFocus

        public void defaultRowFocus(int row)
      • setDefaultFocus

        public void setDefaultFocus()
      • setDefaultFocus

        public void setDefaultFocus(int row)
      • defaultDetailFocus

        public void defaultDetailFocus()
      • toggledetails

        public int toggledetails(boolean expanded)
      • toggledetails

        public int toggledetails(boolean expanded,
                                 boolean setFocus)
        Toggles the state of a table details
      • getExpandedRow

        public int getExpandedRow()
      • setExpandedRow

        public int setExpandedRow(int row)
      • filtertable

        public int filtertable()
        Makes the table filterable
      • columnFocus

        public void columnFocus()
      • noRowFocus

        public void noRowFocus()
      • setFocusedCellId

        public void setFocusedCellId(java.lang.String id)
      • nextrow

        public int nextrow()
                    throws MXException,
                           java.rmi.RemoteException
        Move to the next row
        Throws:
        MXException
        java.rmi.RemoteException
      • previouspage

        public int previouspage()
                         throws MXException
        Changes databean offset to move the set to the previous page
        Throws:
        MXException
      • nextpage

        public int nextpage()
                     throws MXException
        Changes databean offset to move the set to the next page
        Throws:
        MXException
      • tablehelp

        public int tablehelp()
        Sets a state so that the tablebody component can check and create a help url
      • togglecollapse

        public int togglecollapse()
        Changes databean collapse flag
      • getRowSelectVis

        public boolean getRowSelectVis()
      • wasTableFilterStateChanged

        public boolean wasTableFilterStateChanged()
      • wasTableDetailStateChanged

        public boolean wasTableDetailStateChanged()
      • wasTableCollapseStateChanged

        public boolean wasTableCollapseStateChanged()
      • wasTableFilterCleared

        public boolean wasTableFilterCleared()
      • wasTableRowChanged

        public boolean wasTableRowChanged()
      • rowChanged

        public boolean rowChanged()
      • wasTablePageChanged

        public boolean wasTablePageChanged()
      • shouldTableShowHelp

        public boolean shouldTableShowHelp()
      • wasTableSelectRowStateChanged

        public boolean wasTableSelectRowStateChanged()
      • setHasDetails

        public void setHasDetails(boolean hasDetails)
      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Description copied from class: ControlInstance
        Render this control's components
        Overrides:
        render in class DatasrcInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • preRender

        public boolean preRender()
        This is needed to allow the sigoption property changes on tablecols to affect the refresh of the table and force it to rerender when necessary
        Overrides:
        preRender in class ControlInstance
      • resetPreRender

        public void resetPreRender()
        This block removes the skipPreRender setting from all columns when we prerender a table, we setup state during prerender of the table by preRendering from the table down to all of it's cells when they get prerendered, they are marked to not preRender again. When each one renders, it removes the marker telling it to skip unfortunately, only certain rows are rendered during each table render and the markers are not removed from cells that are not rendered
      • isLastColumn

        public boolean isLastColumn(java.lang.String colId)
      • getColumnId

        public java.lang.String getColumnId(int colNum)
      • getColumnCount

        public int getColumnCount()
      • getSortLevel

        public java.lang.String getSortLevel(java.lang.String sortAttribute)
      • getSortOrder

        public java.lang.String getSortOrder(java.lang.String sortAttribute)
      • increaseFilters

        public void increaseFilters()
      • getFilterCount

        public int getFilterCount()
      • getTableDownloadSheetName

        public java.lang.String getTableDownloadSheetName()
        Returns the string which is used to name the worksheet tab in the tabledownload functionality.
        Returns:
        name as String
      • showMXException

        public void showMXException(MXException mxe)
      • showRemoteException

        public void showRemoteException(java.rmi.RemoteException rme)
      • forceFocusRow

        public void forceFocusRow(java.lang.String row)
      • forceFocusRow

        public void forceFocusRow(int row)
      • setFilterRow

        public void setFilterRow(TableFilterRow tableFilterRow)
      • useNPMbo

        public boolean useNPMbo()
      • isListTabRetain

        public boolean isListTabRetain()
        Check if it is resultsbean in a list and the Retain List Table functionality is enabled via system configuration.
      • getErrorLevelForRow

        public int getErrorLevelForRow(int row)
        Returns the error level for the passed in row.
        Parameters:
        row -
        Returns:
      • getErrorLevel

        public int getErrorLevel()
        Returns the current error level for the table
        Overrides:
        getErrorLevel in class ControlInstance
        Returns:
      • resetNewRowNum

        public void resetNewRowNum()
      • getNewRowNum

        public int getNewRowNum()
      • reset

        public int reset()
        This is called when a table is refreshed.
      • selectmockedrecord

        public void selectmockedrecord()
                                throws java.rmi.RemoteException,
                                       MXException
        Allows selection of record when in select records mode to allow user to edit set.
        Throws:
        java.rmi.RemoteException
        MXException