com.logicaldoc.web.setup
Class SetupWizard

java.lang.Object
  extended by com.logicaldoc.web.setup.SetupWizard
All Implemented Interfaces:
com.icesoft.faces.component.paneltabset.TabChangeListener, java.util.EventListener, javax.faces.event.FacesListener

public class SetupWizard
extends java.lang.Object
implements com.icesoft.faces.component.paneltabset.TabChangeListener

Since:
3.0
Author:
Alessandro Gasparini - Logical Objects

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
SetupWizard()
           
 
Method Summary
 void createDB()
           
 void dbmsChanged(javax.faces.event.ValueChangeEvent event)
          Value change listener for the country change event.
 ConnectionData getCdata()
           
 java.lang.String getDbms()
           
 java.lang.String getDefaultLanguage()
           
 java.lang.String getInternDBPath()
           
 java.lang.String getSelectedDBMS()
           
 SmtpData getSmtpData()
           
 com.icesoft.faces.component.paneltabset.PanelTabSet getTabSet()
          Gets the tabbed pane object bound to this bean.
 java.lang.String getWorkingDir()
           
 boolean isSetupSuccess()
           
 void loadDBPath()
           
 java.lang.String makeWorkingDir()
           
 void next()
           
 void prev()
           
 void processTabChange(com.icesoft.faces.component.paneltabset.TabChangeEvent tabChangeEvent)
          Called when the table binding's tab focus changes.
 void setDbms(java.lang.String dbms)
           
 void setDefaultLanguage(java.lang.String defaultLanguage)
           
 void setInternDBPath(java.lang.String internDBPath)
           
 void setSelectedDBMS(java.lang.String selectedDBMS)
           
 void setSmtpData(SmtpData smtpData)
           
 void setTabSet(com.icesoft.faces.component.paneltabset.PanelTabSet tabSet)
          Set a tabbed pane object which will be bound to this object
 void setWorkingDir(java.lang.String workingDir)
           
 void writeSmtpSettings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

SetupWizard

public SetupWizard()
Method Detail

makeWorkingDir

public java.lang.String makeWorkingDir()

loadDBPath

public void loadDBPath()

getSmtpData

public SmtpData getSmtpData()

setSmtpData

public void setSmtpData(SmtpData smtpData)

createDB

public void createDB()

next

public void next()

writeSmtpSettings

public void writeSmtpSettings()
                       throws java.lang.Exception
Throws:
java.lang.Exception

prev

public void prev()

processTabChange

public void processTabChange(com.icesoft.faces.component.paneltabset.TabChangeEvent tabChangeEvent)
                      throws javax.faces.event.AbortProcessingException
Called when the table binding's tab focus changes.

Specified by:
processTabChange in interface com.icesoft.faces.component.paneltabset.TabChangeListener
Parameters:
tabChangeEvent - used to set the tab focus.
Throws:
javax.faces.event.AbortProcessingException - An exception that may be thrown by event listeners to terminate the processing of the current event.

getTabSet

public com.icesoft.faces.component.paneltabset.PanelTabSet getTabSet()
Gets the tabbed pane object bound to this bean.

Returns:
bound tabbed pane.

setTabSet

public void setTabSet(com.icesoft.faces.component.paneltabset.PanelTabSet tabSet)
Set a tabbed pane object which will be bound to this object

Parameters:
tabSet - new PanelTabSet object.

getWorkingDir

public java.lang.String getWorkingDir()

setWorkingDir

public void setWorkingDir(java.lang.String workingDir)

getInternDBPath

public java.lang.String getInternDBPath()

setInternDBPath

public void setInternDBPath(java.lang.String internDBPath)

getDbms

public java.lang.String getDbms()

setDbms

public void setDbms(java.lang.String dbms)

getSelectedDBMS

public java.lang.String getSelectedDBMS()

dbmsChanged

public void dbmsChanged(javax.faces.event.ValueChangeEvent event)
Value change listener for the country change event. Sets up the cities listbox according to the country.

Parameters:
event - value change event

setSelectedDBMS

public void setSelectedDBMS(java.lang.String selectedDBMS)

getCdata

public ConnectionData getCdata()

isSetupSuccess

public boolean isSetupSuccess()

getDefaultLanguage

public java.lang.String getDefaultLanguage()

setDefaultLanguage

public void setDefaultLanguage(java.lang.String defaultLanguage)


Copyright © 2008-2010 Logical Objects. All Rights Reserved.