public class IntegrationAdapter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ActionBean |
bean |
Modifier | Constructor and Description |
---|---|
protected |
IntegrationAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
activateGUI()
Inicialize stuff to handle GUI stuff, adjust GUI for the current envirnonment
|
java.io.File |
getConfigDir(java.io.File defaultConfigDir)
Get the location of system config directory (not program config directory)
|
java.io.File |
getDataDir(java.io.File defaultDataDir)
Get the location of system data directory (not program data directory)
|
static IntegrationAdapter |
getInstance()
Return instance of singleton.
|
java.io.File |
getLogFile(java.io.File defaultLogFile)
Get the location of a program log file
|
java.lang.String |
getProgramDirName(java.lang.String defaultProgramDirName)
Returns how the program directory in system directories should be named
|
protected void |
initialize()
Initializes adapter.
|
boolean |
isModalSheetVisible()
Is some modal sheet of main window visible?
|
void |
registerModalSheet(javax.swing.JDialog dialog)
Register modal sheet for proper handling.
|
void |
setActionBean(ActionBean bean)
Set action bean.
|
void |
setSMSCount(java.lang.Integer count)
Set SMS count.
|
protected ActionBean bean
public static IntegrationAdapter getInstance()
protected void initialize()
public void setActionBean(ActionBean bean)
bean
- action beanpublic void setSMSCount(java.lang.Integer count)
count
- new sms count. Use null to clear text.public java.lang.String getProgramDirName(java.lang.String defaultProgramDirName)
public java.io.File getConfigDir(java.io.File defaultConfigDir)
public java.io.File getDataDir(java.io.File defaultDataDir)
public java.io.File getLogFile(java.io.File defaultLogFile)
public void activateGUI()
public void registerModalSheet(javax.swing.JDialog dialog)
Register modal sheet for proper handling. Probably usable only on Mac, other OS doesnt have concept of sheet window.
Default implementation does nothing.
dialog
- registered dialogpublic boolean isModalSheetVisible()
false