org.pentaho.platform.dataaccess.datasource.wizard.models
Class GuiStateModel

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.platform.dataaccess.datasource.wizard.models.GuiStateModel
All Implemented Interfaces:
org.pentaho.ui.xul.XulEventSource

public class GuiStateModel
extends org.pentaho.ui.xul.XulEventSourceAdapter

Author:
wseyler

Nested Class Summary
static class GuiStateModel.ConnectionEditType
           
 
Constructor Summary
GuiStateModel()
           
 
Method Summary
 void addConnection(IConnection connection)
           
 void addDataStagingCompleteListener(IDataStagingCompleteListener listener)
           
 void addRelationalModelValidationListener(IRelationalModelValidationListener listener)
           
 void clearModel()
           
 void deleteConnection(IConnection connection)
           
 void deleteConnection(String name)
           
 void fireDataStagingComplete()
           
 IConnection getConnectionByName(String name)
           
 Integer getConnectionIndex(IConnection conn)
           
 List<IConnection> getConnections()
           
 IXulAsyncConnectionService getConnectionService()
           
 List<ModelDataRow> getDataRows()
           
 GuiStateModel.ConnectionEditType getEditType()
           
 String getLocaleCode()
           
 List<org.pentaho.metadata.model.LogicalModel> getLogicalModels()
           
 String getPreviewLimit()
           
 List<List<String>> getRelationalData()
           
 FileInfo getSelectedCsvFile()
           
 void invalidateRelational()
           
 boolean isDataStagingComplete()
           
 boolean isDirty()
           
 boolean isEditing()
           
 boolean isRelationalApplyValidated()
           
 boolean isRelationalPreviewValidated()
           
 boolean isRelationalValidated()
           
 void removeRelationalListener(IRelationalModelValidationListener listener)
           
 void setConnections(List<IConnection> value)
           
 void setConnectionService(IXulAsyncConnectionService connectionService)
           
 void setDataRows(List<ModelDataRow> value)
           
 void setDataStagingComplete(boolean status)
           
 void setDirty(boolean dirty)
           
 void setEditing(boolean editing)
           
 void setEditType(GuiStateModel.ConnectionEditType value)
           
 void setLocaleCode(String localeCode)
           
 void setLogicalModels(List<org.pentaho.metadata.model.LogicalModel> logicalModels)
           
 void setPreviewLimit(String value)
           
 void setRelationalApplyValidated(boolean value)
           
 void setRelationalData(List<List<String>> value)
           
 void setRelationalPreviewValidated(boolean value)
           
 void setSelectedCsvFile(FileInfo selectedCsvFile)
           
 void updateConnection(IConnection connection)
           
 void validateRelational()
           
 
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiStateModel

public GuiStateModel()
Method Detail

getEditType

public GuiStateModel.ConnectionEditType getEditType()

setEditType

public void setEditType(GuiStateModel.ConnectionEditType value)

getConnections

public List<IConnection> getConnections()

addConnection

public void addConnection(IConnection connection)

updateConnection

public void updateConnection(IConnection connection)

deleteConnection

public void deleteConnection(IConnection connection)

deleteConnection

public void deleteConnection(String name)

setConnections

public void setConnections(List<IConnection> value)

getPreviewLimit

public String getPreviewLimit()

setPreviewLimit

public void setPreviewLimit(String value)

getConnectionByName

public IConnection getConnectionByName(String name)

getConnectionIndex

public Integer getConnectionIndex(IConnection conn)

isRelationalValidated

public boolean isRelationalValidated()

validateRelational

public void validateRelational()

invalidateRelational

public void invalidateRelational()

getRelationalData

public List<List<String>> getRelationalData()

setRelationalData

public void setRelationalData(List<List<String>> value)

getDataRows

public List<ModelDataRow> getDataRows()

setDataRows

public void setDataRows(List<ModelDataRow> value)

clearModel

public void clearModel()

addRelationalModelValidationListener

public void addRelationalModelValidationListener(IRelationalModelValidationListener listener)

removeRelationalListener

public void removeRelationalListener(IRelationalModelValidationListener listener)

setRelationalPreviewValidated

public void setRelationalPreviewValidated(boolean value)

isRelationalPreviewValidated

public boolean isRelationalPreviewValidated()

isRelationalApplyValidated

public boolean isRelationalApplyValidated()

setRelationalApplyValidated

public void setRelationalApplyValidated(boolean value)

getLogicalModels

public List<org.pentaho.metadata.model.LogicalModel> getLogicalModels()

setLogicalModels

public void setLogicalModels(List<org.pentaho.metadata.model.LogicalModel> logicalModels)

getLocaleCode

public String getLocaleCode()

setLocaleCode

public void setLocaleCode(String localeCode)

getConnectionService

public IXulAsyncConnectionService getConnectionService()

setConnectionService

public void setConnectionService(IXulAsyncConnectionService connectionService)

setDataStagingComplete

public void setDataStagingComplete(boolean status)

isDataStagingComplete

public boolean isDataStagingComplete()

addDataStagingCompleteListener

public void addDataStagingCompleteListener(IDataStagingCompleteListener listener)

fireDataStagingComplete

public void fireDataStagingComplete()

getSelectedCsvFile

public FileInfo getSelectedCsvFile()

setSelectedCsvFile

public void setSelectedCsvFile(FileInfo selectedCsvFile)

isEditing

public boolean isEditing()

setEditing

public void setEditing(boolean editing)

isDirty

public boolean isDirty()

setDirty

public void setDirty(boolean dirty)