com.mizar.trinidad.components
Class TrinidadTable

java.lang.Object
  extended by com.mizar.persistence.jpa.facade.JPAFacade
      extended by com.mizar.faces.jpa.facade.FacesCollection
          extended by com.mizar.trinidad.components.TrinidadCollection<RowInterface>
              extended by com.mizar.trinidad.components.TrinidadTable
Direct Known Subclasses:
AllTabColumnsTable, AllTablesTable, ApplicationLogTable, DcrawTable, DownloadRequestTable, GroupTable, LoginHistoryTable, MediaTable, PermissionTable, RaceByBlockTable, RoleTable, SessionLogTable, TrinidadSpatialTable, UserPropertiesNameTable, UserSdoCachedMapsTable, UserSdoGeomMetadataTable, UserSdoMapsTable, UserSdoThemesTable, UserSynonymsTable, UserTable

public class TrinidadTable
extends TrinidadCollection<RowInterface>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mizar.trinidad.components.TrinidadCollection
TrinidadCollection.UpdateListReasons
 
Field Summary
protected  boolean detach
           
protected  java.lang.Long displayedRows
           
protected  int endRow
           
protected  boolean filterVisible
           
protected  boolean freeze
           
protected  java.lang.String lastQueryDescription
           
protected  org.apache.myfaces.trinidad.model.SortableModel model
           
protected  java.lang.String panelCollectionFeaturesOff
           
protected  org.apache.myfaces.trinidad.model.SortableModel selectionModel
           
protected  int startRow
           
protected  java.lang.String whereClause
           
protected  boolean wrap
           
 
Fields inherited from class com.mizar.trinidad.components.TrinidadCollection
disclosedRowKeys, exceptionThrown, pkeyMask, selectedRowKeys
 
Fields inherited from class com.mizar.faces.jpa.facade.FacesCollection
currentRow, list, previousRow, selectionList
 
Fields inherited from class com.mizar.persistence.jpa.facade.JPAFacade
em, emf, persistenceUnitName, schemaName, sequencesValidated, silent, verbose
 
Constructor Summary
TrinidadTable()
           
 
Method Summary
 boolean addRow(RowInterface row)
          Calls addRowUniquely
 boolean addRowUniquely(GenericBean bean)
           
 boolean addRowUniquely(RowInterface row)
          This method differs from addRow(RowInterface) in that it will not add a second copy of the row
 void attributeChangeListener(org.apache.myfaces.trinidad.event.AttributeChangeEvent ace)
           
 java.lang.String buildEl(java.lang.String propertyName)
           
 void clearLastQueryDescription()
           
 void clearList(javax.faces.event.ActionEvent ignore)
          This is an ActionListener method that calls AbstractCollection.clearList() and redrawTable()
 boolean decrementPosition(int index)
           
 void finalize()
           
 java.lang.Long getDisplayedRows()
           
 int getEndRow()
           
 java.lang.String getLastQueryDescription()
           
 org.apache.myfaces.trinidad.model.SortableModel getModel()
           
 java.lang.String getPanelCollectionFeaturesOff()
           
 RowInterface getSelectedRow()
           
 org.apache.myfaces.trinidad.model.SortableModel getSelectionModel()
           
 int getStartRow()
           
 org.apache.myfaces.trinidad.component.UIXTable getTable()
           
 java.lang.String getWhereClause()
           
 boolean incrementPosition(int index)
           
 boolean isDetach()
           
 boolean isEnableAllDetails()
           
 boolean isFilterVisible()
           
 boolean isFreeze()
           
 boolean isInitialized()
           
 boolean isPanelCollectionWanted()
           
 boolean isShowOneOnly()
           
 boolean isWrap()
           
 void rangeChangeListener(org.apache.myfaces.trinidad.event.RangeChangeEvent rce)
           
 void redrawTable()
          Adds the redrawComponentId to the partial target list to force an update Closes any and all disclosed items Finds all children and does the same
 void redrawTable(org.apache.myfaces.trinidad.event.ReturnEvent re)
          A version of redraw table that can be associated with a returnListener
 RowInterface refreshBean(RowInterface row)
          Refreshs a row from the database
 void refreshList()
           
 RowInterface removeRow(int index)
           
 boolean removeRow(RowInterface row)
           
 void selectionListener(org.apache.myfaces.trinidad.event.SelectionEvent event)
           
 void setCurrentRow(RowInterface row)
           
 void setDetach(boolean detach)
           
 void setDisplayedRows(java.lang.Long displayedRows)
           
 void setEnableAllDetails(boolean enableAllDetails)
           
 void setEndRow(int endRow)
           
 void setFilterVisible(boolean filterVisible)
           
 void setFreeze(boolean freeze)
           
 void setLastQueryDescription(java.lang.String lastQueryDescription)
           
 void setLastQueryDescription(java.lang.StringBuffer criteriaDescription)
          The method should only be called after setList(List) as it uses the getListSize() method to construct a gramatically correct message.
 void setList(java.util.List<RowInterface> newList)
           
 void setList(RowInterface row)
           
 void setPanelCollectionFeaturesOff()
           
 void setPanelCollectionFeaturesOff(java.lang.String panelCollectionFeaturesOff)
           
 void setPanelCollectionWanted(boolean panelCollectionWanted)
           
 void setSelectedRow(javax.faces.event.ActionListener ae)
           
 void setSelectedRow(java.lang.Class aclass, RowInterface row)
           
 void setShowOneOnly(boolean showOneOnly)
           
 void setStartRow(int startRow)
           
 void setTable(org.apache.myfaces.trinidad.component.UIXTable table)
           
 void setWhereClause(java.lang.String newwhereClause)
           
 void setWrap(boolean wrap)
           
 void sortListener(org.apache.myfaces.trinidad.event.SortEvent event)
           
 void toggleCollectionTools(javax.faces.event.ActionEvent ae)
           
 void toggleFilterVisibility(javax.faces.event.ActionEvent ae)
           
 
Methods inherited from class com.mizar.trinidad.components.TrinidadCollection
accept, addTrinidadCollectionListener, cancel, cancelEditing, clearList, dirtyDependentTables, downloadCSV, downloadPDF, downloadXLS, downloadXML, exportToDbaseFile, fireCurrentRowValueChanged, getDependentTables, getDisclosedRowKeys, getPersistenceUnitName, getPkeyMask, getPostUpdateListMethod, getRedrawComponentId, getSelectedRowKeys, getTableName, getUpdateListReason, isEditable, isExceptionThrown, isNewRowEditing, mergeBean, persistBean, persistBean, redrawCollection, removeBean, removeRow, resetGoToDashboard, resetGoToDashboard, setDisclosedRowKeys, setExceptionThrown, setList, setNewRowEditing, setPkeyMask, setPostUpdateListMethod, setPostUpdateListMethod, setRedrawComponentId, setSelectedRowKeys, setUpdateListReason, startEditing, startEditingNew
 
Methods inherited from class com.mizar.faces.jpa.facade.FacesCollection
closeEm, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, decrementPosition, downloadFile, exportToExcel, find, getBean, getBeanClass, getBeanFromRow, getBeanList, getClassNameRoot, getCurrentMutableRow, getCurrentRow, getEm, getEmScope, getExportName, getGeom, getList, getListSize, getManagedBeanName, getMaxDownloadSize, getMaxResults, getReference, getResultList, getRowClass, getRowConstructor, getRowSQL, getSelectionList, getSingleResult, getTrackedQuery, getTruncatedList, getValue, incrementPosition, isDefaultRowConstructor, isFileDownloadable, isListDirty, isSelectionListDirty, maxResultsOff, maxResultsOff, maxResultsOn, newRow, newRow, refresh, resetCurrentRow, selectRows, selectRows, selectRowsExpression, selectRowsExpression, selectRowsJPQL, selectRowsJPQL, selectRowsJPQL, selectRowsJPQL, selectRowsSQL, selectRowsSQL, selectRowsSQL, selectRowsSQL, selectRowsSQL, selectRowsSQL, setBeanClass, setCurrentRow, setCurrentRow, setCurrentRow, setDefaultRowConstructor, setEmScope, setExportName, setListDirty, setManagedBeanName, setMaxDownloadSize, setMaxResults, setRowClass, setRowConstructor, setSelectionList, setSelectionListDirty, setTrackedQuery
 
Methods inherited from class com.mizar.persistence.jpa.facade.JPAFacade
closeEm, closeEmf, executeDDL, executeNativeUpdate, executeNativeUpdate, executeUpdate, getClosableConnectionAccessor, getConnection, getConnection, getEm, getEmf, getEmf, getLogger, getPassword, getPassword, getSchemaName, getSequencesValidated, getSid, getSilent, getTableName, getToleratedErrorCodes, getUrl, getUser, getVerbose, mergeBean, persist, persistBean, printAnyBean, queryTester, queryTester, refreshBean, remove, removeBean, removeBean, setEmf, setPersistenceUnitName, setSilent, setToleratedErrorCodes, setVerbose, validateSequences
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

displayedRows

protected java.lang.Long displayedRows

model

protected org.apache.myfaces.trinidad.model.SortableModel model

selectionModel

protected org.apache.myfaces.trinidad.model.SortableModel selectionModel

whereClause

protected java.lang.String whereClause

startRow

protected int startRow

endRow

protected int endRow

lastQueryDescription

protected java.lang.String lastQueryDescription

filterVisible

protected boolean filterVisible

panelCollectionFeaturesOff

protected java.lang.String panelCollectionFeaturesOff

freeze

protected boolean freeze

detach

protected boolean detach

wrap

protected boolean wrap
Constructor Detail

TrinidadTable

public TrinidadTable()
Method Detail

buildEl

public java.lang.String buildEl(java.lang.String propertyName)

clearList

public void clearList(javax.faces.event.ActionEvent ignore)
This is an ActionListener method that calls AbstractCollection.clearList() and redrawTable()

Parameters:
ignore -

redrawTable

public void redrawTable(org.apache.myfaces.trinidad.event.ReturnEvent re)
A version of redraw table that can be associated with a returnListener

Parameters:
re -

redrawTable

public void redrawTable()
Adds the redrawComponentId to the partial target list to force an update Closes any and all disclosed items Finds all children and does the same


attributeChangeListener

public void attributeChangeListener(org.apache.myfaces.trinidad.event.AttributeChangeEvent ace)

rangeChangeListener

public void rangeChangeListener(org.apache.myfaces.trinidad.event.RangeChangeEvent rce)

selectionListener

public void selectionListener(org.apache.myfaces.trinidad.event.SelectionEvent event)

sortListener

public void sortListener(org.apache.myfaces.trinidad.event.SortEvent event)

addRowUniquely

public boolean addRowUniquely(GenericBean bean)

addRowUniquely

public boolean addRowUniquely(RowInterface row)
This method differs from addRow(RowInterface) in that it will not add a second copy of the row

Parameters:
row -
See Also:
addRow(RowInterface)

addRow

public boolean addRow(RowInterface row)
Calls addRowUniquely

Overrides:
addRow in class TrinidadCollection<RowInterface>
Parameters:
row -
Returns:
true if row successfully added
See Also:
addRowUniquely(RowInterface)

removeRow

public boolean removeRow(RowInterface row)
Overrides:
removeRow in class TrinidadCollection<RowInterface>

removeRow

public RowInterface removeRow(int index)
Overrides:
removeRow in class TrinidadCollection<RowInterface>

refreshBean

public RowInterface refreshBean(RowInterface row)
Description copied from class: FacesCollection
Refreshs a row from the database

Overrides:
refreshBean in class FacesCollection

decrementPosition

public boolean decrementPosition(int index)
Overrides:
decrementPosition in class FacesCollection

incrementPosition

public boolean incrementPosition(int index)
Overrides:
incrementPosition in class FacesCollection

setCurrentRow

public void setCurrentRow(RowInterface row)
Overrides:
setCurrentRow in class TrinidadCollection<RowInterface>

setList

public void setList(RowInterface row)
Overrides:
setList in class TrinidadCollection<RowInterface>

setList

public void setList(java.util.List<RowInterface> newList)
Overrides:
setList in class TrinidadCollection<RowInterface>

refreshList

public final void refreshList()

setWhereClause

public void setWhereClause(java.lang.String newwhereClause)

getWhereClause

public java.lang.String getWhereClause()

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

setTable

public void setTable(org.apache.myfaces.trinidad.component.UIXTable table)

getTable

public org.apache.myfaces.trinidad.component.UIXTable getTable()

getSelectionModel

public org.apache.myfaces.trinidad.model.SortableModel getSelectionModel()

getModel

public org.apache.myfaces.trinidad.model.SortableModel getModel()

setStartRow

public void setStartRow(int startRow)

getStartRow

public int getStartRow()

setEndRow

public void setEndRow(int endRow)

getEndRow

public int getEndRow()

setDisplayedRows

public void setDisplayedRows(java.lang.Long displayedRows)

getDisplayedRows

public java.lang.Long getDisplayedRows()

setLastQueryDescription

public void setLastQueryDescription(java.lang.String lastQueryDescription)

setLastQueryDescription

public void setLastQueryDescription(java.lang.StringBuffer criteriaDescription)
The method should only be called after setList(List) as it uses the getListSize() method to construct a gramatically correct message.

Parameters:
criteriaDescription -

getLastQueryDescription

public java.lang.String getLastQueryDescription()

clearLastQueryDescription

public void clearLastQueryDescription()

setFilterVisible

public void setFilterVisible(boolean filterVisible)

isFilterVisible

public boolean isFilterVisible()

toggleFilterVisibility

public void toggleFilterVisibility(javax.faces.event.ActionEvent ae)

setShowOneOnly

public void setShowOneOnly(boolean showOneOnly)

isShowOneOnly

public boolean isShowOneOnly()

isInitialized

public boolean isInitialized()

setPanelCollectionFeaturesOff

public void setPanelCollectionFeaturesOff(java.lang.String panelCollectionFeaturesOff)

setPanelCollectionFeaturesOff

public void setPanelCollectionFeaturesOff()

getPanelCollectionFeaturesOff

public java.lang.String getPanelCollectionFeaturesOff()

setFreeze

public void setFreeze(boolean freeze)

isFreeze

public boolean isFreeze()

setDetach

public void setDetach(boolean detach)

isDetach

public boolean isDetach()

setWrap

public void setWrap(boolean wrap)

isWrap

public boolean isWrap()

setSelectedRow

public void setSelectedRow(javax.faces.event.ActionListener ae)

setSelectedRow

public void setSelectedRow(java.lang.Class aclass,
                           RowInterface row)

getSelectedRow

public RowInterface getSelectedRow()

setEnableAllDetails

public void setEnableAllDetails(boolean enableAllDetails)

isEnableAllDetails

public boolean isEnableAllDetails()

setPanelCollectionWanted

public void setPanelCollectionWanted(boolean panelCollectionWanted)

isPanelCollectionWanted

public boolean isPanelCollectionWanted()

toggleCollectionTools

public void toggleCollectionTools(javax.faces.event.ActionEvent ae)