|
||||||||||
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 java.util.Map |
fields
|
protected TableInsertPanel |
insertPanel
|
protected QuickViewPanel |
quickView
|
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,
boolean topModule,
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()
|
DcField |
getField(int index)
|
int |
getFieldCount()
|
abstract java.lang.String |
getFieldDefinitionsSettingsKey()
|
int[] |
getFieldIndices()
|
java.util.Collection |
getFields()
|
abstract javax.swing.ImageIcon |
getIcon()
|
javax.swing.ImageIcon |
getIconSmall()
|
int |
getIndex()
Returns the index for this module as defined in DCModules |
TableInsertPanel |
getInsertPanel()
Initializes the insert panel (lazy) |
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 QuickViewPanel |
getQuickView()
|
abstract ReportFieldDefinitions |
getReportFieldDefinitions()
|
SearchForm |
getSearchForm()
|
TableSearchPanel |
getSearchPanel()
Initializes the search panel (lazy) |
DcField |
getSystemField(int index)
|
java.lang.String |
getTableJoin()
|
java.lang.String |
getTableName()
|
java.lang.String |
getTableShortName()
|
abstract javax.swing.JMenu |
getToolsMenu()
Returns module specific menu items |
protected 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 |
boolean |
isTopModule()
|
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 java.util.Map fields
protected QuickViewPanel quickView
protected java.lang.String tableName
protected java.lang.String tableShortName
protected java.lang.String tableJoin
Constructor Detail |
public DCModule(int index, boolean topModule, 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 DcField getField(int index)
public DcField getSystemField(int index)
public void setChildModule(DCModule childModule)
childModule
- child modulepublic DcMenuBar getMenuBar()
public DCModule getChildModule()
public SearchForm getSearchForm()
public java.util.Collection getFields()
public int[] getFieldIndices()
protected void initializeFields()
public boolean isTopModule()
public int getFieldCount()
public javax.swing.ImageIcon getIconSmall()
public abstract javax.swing.ImageIcon getIcon()
public abstract ReportFieldDefinitions getReportFieldDefinitions()
public abstract java.lang.String getFieldDefinitionsSettingsKey()
public abstract java.lang.String getObjectName()
public abstract QuickViewPanel getQuickView()
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 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 |