|
||||||||||
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
Field Summary | |
protected DCFieldDefinition[] |
fields
|
protected TableInsertPanel |
insertPanel
|
protected TableSearchPanel |
searchPanel
|
protected java.lang.String |
tableName
|
Constructor Summary | |
DCModule(int index,
java.lang.String name,
boolean allowImdbUpdate,
boolean allowAmazonUpdate,
boolean standalone)
Initializes this module |
Method Summary | |
abstract ImportCDProcess |
getCDImportProcess(java.lang.String sourceDir,
boolean confirmEachDir,
java.lang.String nameOfCD)
Returns the module specific CD import process |
abstract DCObject |
getDataCrowObject()
Returns an empty Data Crow object, managed by this module |
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 javax.swing.JButton[] |
getMenuItems()
Returns module specific menu items |
java.lang.String |
getName()
Returns the display name of this module |
abstract java.lang.String |
getRequiredFieldsSettingsKey()
|
TableSearchPanel |
getSearchPanel()
Initializes the search panel (lazy) |
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 |
isImdbUpdateAllowed()
Indicates if this module has an IMDB update implementation |
boolean |
isStandalone()
|
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 DCFieldDefinition[] fields
protected java.lang.String tableName
Constructor Detail |
public DCModule(int index, java.lang.String name, boolean allowImdbUpdate, boolean allowAmazonUpdate, boolean standalone)
index
- static final module indexname
- name of this moduleallowImdbUpdate
- internet updates, thru imdb,
allowed y/nallowAmazonUpdate
- internet updates, thru amazon,
allowed y/nstandalone
- is this a standalone or a composite moduleMethod Detail |
public DCFieldDefinition getFieldDefinition(int index)
index
- field indexpublic DCFieldDefinition[] getFieldDefinitions()
protected abstract void initializeFields()
public abstract javax.swing.ImageIcon getIcon()
public abstract DCObject getDataCrowObject()
public abstract javax.swing.JButton[] getMenuItems()
public abstract java.lang.String getHiddenFieldsSettingsKey()
public abstract java.lang.String getRequiredFieldsSettingsKey()
protected abstract void initializeUI()
public abstract ImportCDProcess getCDImportProcess(java.lang.String sourceDir, boolean confirmEachDir, java.lang.String nameOfCD)
sourceDir
- directory which is used as source for the
importconfirmEachDir
- indicates whether for each directory
confirmation should be asked if the underlying data
of this directory should be read or not.nameOfCD
- cd name (used as the location name)
public int getFieldCount()
public TableInsertPanel getInsertPanel()
public boolean isStandalone()
public TableSearchPanel getSearchPanel()
public boolean isAmazonUpdateAllowed()
public boolean isImdbUpdateAllowed()
public java.lang.String getName()
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 |