|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.dc.core.modules.DCModule
Contains all generic information for this module. Only static data can be found in here, such as the column and table information. The UI representation can also be retrieved thru this class (insert and search panels) Hidden field information and such, which can be changed during a session is contained within the Data Crow Objects themselves. Main reason for this setup is to keep the Data Crow Objects as small as possible, they can be stored in memory by thousands at a time..
DCModules
,
DCModule
Field Summary | |
protected DCModule |
childModule
|
protected DCFieldDefinition[] |
fields
|
protected TableInsertPanel |
insertPanel
|
protected SearchForm |
searchForm
|
protected TableSearchPanel |
searchPanel
|
protected java.lang.String |
tableJoin
|
protected java.lang.String |
tableName
|
protected java.lang.String |
tableShortName
|
Constructor Summary | |
DCModule(int index,
java.lang.String name,
java.lang.String tableName,
java.lang.String tableShortName,
java.lang.String tableJoin,
boolean allowImdbUpdate,
boolean allowAmazonUpdate,
boolean allowFreeDbUpdate)
Initializes this module |
Method Summary | |
abstract ImportCDProcess |
getCDImportProcess(ImportCDDialog ui,
java.lang.String sourceDir,
boolean confirmDirs,
boolean recursiveDirs,
java.lang.String nameOfCD)
Returns the module specific CD import process |
DCModule |
getChildModule()
Returns the child module (or null) |
abstract DCObject |
getDCObject()
Returns an empty Data Crow object, managed by this module |
abstract DCObject[] |
getDefaultData()
|
int |
getFieldCount()
Returns the amount of fields |
DCFieldDefinition |
getFieldDefinition(int index)
Returns a specific field definition. |
DCFieldDefinition[] |
getFieldDefinitions()
Returns all field definitions. |
abstract java.lang.String |
getHiddenFieldsSettingsKey()
|
abstract javax.swing.ImageIcon |
getIcon()
|
int |
getIndex()
Returns the index for this module as defined in DCModules |
TableInsertPanel |
getInsertPanel()
Initializes the insert panel (lazy) |
abstract DCMenuBar |
getMenuBar()
|
java.lang.String |
getName()
Returns the display name of this module |
abstract java.lang.String |
getObjectName()
|
DCPanel[] |
getPanels()
Returns all insert and search panels belonging to this module |
abstract java.lang.String |
getRequiredFieldsSettingsKey()
|
SearchForm |
getSearchForm()
|
TableSearchPanel |
getSearchPanel()
Initializes the search panel (lazy) |
java.lang.String |
getTableJoin()
|
java.lang.String |
getTableName()
|
java.lang.String |
getTableShortName()
|
abstract javax.swing.JMenu |
getToolsMenu()
Returns module specific menu items |
protected abstract void |
initializeFields()
|
protected abstract void |
initializeUI()
Creates the panels for this module |
boolean |
isAmazonUpdateAllowed()
Indicates if this module has an Amazon update implementation |
boolean |
isFreedBUpdateAllowed()
Indicates if this module has an Amazon update implementation |
boolean |
isImdbUpdateAllowed()
Indicates if this module has an IMDB update implementation |
void |
setChildModule(DCModule childModule)
Sets a child module for this module |
abstract void |
startImport()
|
java.lang.String |
toString()
Creates a string representation for this module |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected TableInsertPanel insertPanel
protected TableSearchPanel searchPanel
protected SearchForm searchForm
protected DCModule childModule
protected DCFieldDefinition[] fields
protected java.lang.String tableName
protected java.lang.String tableShortName
protected java.lang.String tableJoin
Constructor Detail |
public DCModule(int index, java.lang.String name, java.lang.String tableName, java.lang.String tableShortName, java.lang.String tableJoin, boolean allowImdbUpdate, boolean allowAmazonUpdate, boolean allowFreeDbUpdate)
index
- static final module indexname
- name of this moduleallowImdbUpdate
- internet updates, thru imdb,
allowed y/nallowAmazonUpdate
- internet updates, thru amazon,
allowed y/nMethod Detail |
public DCPanel[] getPanels()
public DCFieldDefinition getFieldDefinition(int index)
index
- field indexpublic void setChildModule(DCModule childModule)
childModule
- child modulepublic DCModule getChildModule()
public DCFieldDefinition[] getFieldDefinitions()
public SearchForm getSearchForm()
protected abstract void initializeFields()
public abstract javax.swing.ImageIcon getIcon()
public abstract java.lang.String getHiddenFieldsSettingsKey()
public abstract java.lang.String getRequiredFieldsSettingsKey()
public abstract java.lang.String getObjectName()
public abstract DCMenuBar getMenuBar()
public abstract DCObject[] getDefaultData() throws java.lang.Exception
java.lang.Exception
public abstract void startImport()
public abstract DCObject getDCObject()
public abstract javax.swing.JMenu getToolsMenu()
protected abstract void initializeUI()
public abstract ImportCDProcess getCDImportProcess(ImportCDDialog ui, java.lang.String sourceDir, boolean confirmDirs, boolean recursiveDirs, java.lang.String nameOfCD)
sourceDir
- directory which is used as source for the
importnameOfCD
- cd name (used as the location name)public int getFieldCount()
public TableInsertPanel getInsertPanel()
public TableSearchPanel getSearchPanel()
public boolean isFreedBUpdateAllowed()
public boolean isAmazonUpdateAllowed()
public boolean isImdbUpdateAllowed()
public java.lang.String getName()
public java.lang.String getTableName()
public java.lang.String getTableShortName()
public java.lang.String getTableJoin()
public int getIndex()
DCModules
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |