Java Doc for TKFieldTable.java in  » Content-Management-System » webman » com » teamkonzept » field » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » webman » com.teamkonzept.field 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.teamkonzept.field.TKBaseField
      com.teamkonzept.field.TKFieldTable

TKFieldTable
public class TKFieldTable extends TKBaseField (Code)
The field table control.
 Die Zellen einer Tabelle beinhalten jeweils das gleiche BaseField.
 Dies gilt auch fuer die Zusatz-Zeile/Spalte.
 Folgende Moeglichkeiten bestehen:
 1. 	Anlegen von Tabellen variabler Groesse
 2. 	Anlegen von einer Zeile/Spalte, die Zusatzinformationen enthalten
 3. 	Auswahl der Inhalte (Fields) der Zellen
 4. 	Auswahl der Inhalte (Fields) der Zusatzz-Zeilen/Spalten
 5. 	Anzeigen der Tabelle
 6. 	Das modifizieren der Tabelle selbst
 - Loeschen von Zeilen/Spalten
 - Einfuegen von Zeilen/Spalten
 - Vertauschen von Zeilen/Spalten
 7. Speichern aller Daten in die Datenbank
 8. Speichern aller Strukturinformationen in die Datenbank
 Um Verwechselungen zu vermeiden:
 --------------------------------
 |	Col-Zusatz-Vektor					|
 --------------------------------
 ------
 | Row- |
 | zu-  |
 | satz |      TABELLE
 | vek- |
 | tor  |
 |      |
 ------
 

author:
   $Author: uli $
version:
   $Revision: 1.27 $


Field Summary
final public static  StringBOOL_ZUSATZ_COL
    
final public static  StringBOOL_ZUSATZ_ROW
    
final public static  StringCELLINFO_KEY
    
final public static  StringCLASS_ID
     The class identifier.
final public static  StringCOL_ENTRY_KEY
    
final public static  StringCOL_JANEIN_KEY
    
final public static  StringIS_COLENTRY_KEY
    
final public static  StringIS_ROWENTRY_KEY
    
final public static  StringMODIFY_ROW
    
final public static  StringNOCELLINFO_KEY
    
final public static  StringPRE_COLS
    
final public static  StringPRE_ROWS
    
final public static  StringROW_ENTRY_KEY
    
final public static  StringROW_JANEIN_KEY
    
final public static  StringTABLE_ENTRY_KEY
    
final public static  StringZUSATZ_KEY
    
 TKBaseFieldcolEntry
    
public  booleanisColCell
    
public  booleanisRowCell
    
 TKBaseFieldrowEntry
    
 TKBaseFieldtableEntry
    

Constructor Summary
public  TKFieldTable()
     Creates an empty field table control.
public  TKFieldTable(String name, TKBaseField tableEntry)
    
public  TKFieldTable(String name, TKBaseField tableEntry, TKBaseField rowEntry, TKBaseField colEntry)
    
public  TKFieldTable(String name, TKBaseField tableEntry, TKBaseField rowEntry, TKBaseField colEntry, String showName)
    

Method Summary
public  ObjectbackRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)
     Move Row Or Col um eine Position nach oben bzw.
public  voidclearId()
     Erster Aufruf => sich selbst und das Subelemente auf -1 setzen.
public  ObjectcompileData(String prefix, TKHashtable data, TKHashtable context)
    
public  ObjectcompileData(String prefix, TKMarkupNode data, TKHashtable context)
    
public  ObjectdeleteRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)
    
public  booleanequals(Object object)
     Checks wether this object and the specified object may be treated as equal.
Parameters:
  object - the object to checked for equality.
public  voidfillIntoDOM(Document doc, Element node, Object data)
    
public  voidfillIntoPresentation(TKHTMLTemplate t, Object data, String scope)
    
public  voidfillIntoTemplate(TKHTMLTemplate t, Object data, String prefix)
    
public  ObjectfirstRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)
    
public  ObjectforwardRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)
     Move Row Or Col um eine Position nach unten bzw.
public  ObjectgetDataFromDB(TKContentDBData db)
    
public  TKFieldGroupgetDefGroup(TKFieldSwitch allSwitch, TKFieldSwitchList allSwitchList)
    
public  ObjectgetDefault()
    
public  TKBaseFieldgetTarget(String fieldPath, String prefix)
    
public  inthashCode()
     Returns the hash code for this object.
public  voidinit(String fieldClass, Object data)
     Die Daten der globalen Struktur werden uebergeben.
final public  voidinitFieldTable(String name, TKBaseField tableEntry, TKBaseField rowEntry, TKBaseField colEntry, String showName)
    
public  voidinitFromDB(String classId, TKFormDBData db, TKVector otherFields)
    
public  voidinitSubFields(TKFieldOptionData optionData, boolean initRow)
    
public  intinsertDataIntoDB(TKContentDBData db, Object data, int contentId, int leftNr)
     Die Daten des Objekts werden in einer Uebergangsstruktur angelegt, damit diese in die DB eingetragen werden kann.
public  ObjectinsertRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)
    
public  ObjectlastRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)
    
public  Objectmodify(String action, String fieldPath, Object data, String prefix, StringBuffer destination)
    
public  intrealInsertIntoDB(TKFormDBData db, int formId)
     Die Struktur des Objekts und seiner Subelemente werden in einer Uebergangsstruktur fuer die DB abgelegt.
public  ObjecttoData()
     Returns the internal representation of this field.
public  TKHashtabletoDataSubFields(TKFieldOptionData entryOption, TKBaseField rowOrColEntry, TKHashtable result, String rowOrCol)
    

Field Detail
BOOL_ZUSATZ_COL
final public static String BOOL_ZUSATZ_COL(Code)



BOOL_ZUSATZ_ROW
final public static String BOOL_ZUSATZ_ROW(Code)



CELLINFO_KEY
final public static String CELLINFO_KEY(Code)



CLASS_ID
final public static String CLASS_ID(Code)
The class identifier.



COL_ENTRY_KEY
final public static String COL_ENTRY_KEY(Code)



COL_JANEIN_KEY
final public static String COL_JANEIN_KEY(Code)



IS_COLENTRY_KEY
final public static String IS_COLENTRY_KEY(Code)



IS_ROWENTRY_KEY
final public static String IS_ROWENTRY_KEY(Code)



MODIFY_ROW
final public static String MODIFY_ROW(Code)



NOCELLINFO_KEY
final public static String NOCELLINFO_KEY(Code)



PRE_COLS
final public static String PRE_COLS(Code)



PRE_ROWS
final public static String PRE_ROWS(Code)



ROW_ENTRY_KEY
final public static String ROW_ENTRY_KEY(Code)



ROW_JANEIN_KEY
final public static String ROW_JANEIN_KEY(Code)



TABLE_ENTRY_KEY
final public static String TABLE_ENTRY_KEY(Code)



ZUSATZ_KEY
final public static String ZUSATZ_KEY(Code)



colEntry
TKBaseField colEntry(Code)



isColCell
public boolean isColCell(Code)



isRowCell
public boolean isRowCell(Code)



rowEntry
TKBaseField rowEntry(Code)



tableEntry
TKBaseField tableEntry(Code)




Constructor Detail
TKFieldTable
public TKFieldTable()(Code)
Creates an empty field table control.



TKFieldTable
public TKFieldTable(String name, TKBaseField tableEntry)(Code)



TKFieldTable
public TKFieldTable(String name, TKBaseField tableEntry, TKBaseField rowEntry, TKBaseField colEntry)(Code)



TKFieldTable
public TKFieldTable(String name, TKBaseField tableEntry, TKBaseField rowEntry, TKBaseField colEntry, String showName)(Code)




Method Detail
backRowOrCol
public Object backRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)(Code)
Move Row Or Col um eine Position nach oben bzw. nach links



clearId
public void clearId()(Code)
Erster Aufruf => sich selbst und das Subelemente auf -1 setzen. Damit kann im weiteren Verlauf sichergestellt werden, dass, wenn ein Opbjekt schon eingetragen ist, dies nicht noch einmal eingetragen wird.



compileData
public Object compileData(String prefix, TKHashtable data, TKHashtable context)(Code)
parameter TKHashtable data , enthaelt die Parameter



compileData
public Object compileData(String prefix, TKMarkupNode data, TKHashtable context)(Code)



deleteRowOrCol
public Object deleteRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)(Code)



equals
public boolean equals(Object object)(Code)
Checks wether this object and the specified object may be treated as equal.
Parameters:
  object - the object to checked for equality. true if this object and thespecified object may be treated as equal, otherwisefalse.



fillIntoDOM
public void fillIntoDOM(Document doc, Element node, Object data) throws DOMException(Code)



fillIntoPresentation
public void fillIntoPresentation(TKHTMLTemplate t, Object data, String scope)(Code)



fillIntoTemplate
public void fillIntoTemplate(TKHTMLTemplate t, Object data, String prefix)(Code)
Alle Informationen werden der Methode uebergeben, damit das Template substituiert werden kann



firstRowOrCol
public Object firstRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)(Code)
Move Row Or Col to first Position



forwardRowOrCol
public Object forwardRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)(Code)
Move Row Or Col um eine Position nach unten bzw. nachr echts



getDataFromDB
public Object getDataFromDB(TKContentDBData db)(Code)
Die Daten werden aus der DB ausgelesen und wieder wie vorher aufgebaut
Parameters:
  TKContentDBData - db, enthaelt die Struktur die Klasse, die die Daten enthaelt



getDefGroup
public TKFieldGroup getDefGroup(TKFieldSwitch allSwitch, TKFieldSwitchList allSwitchList)(Code)
Methode zur Definition einer Tabelle



getDefault
public Object getDefault()(Code)
Die Klasse, die die Daten der Tabelle haelt wird initial auf die defaultwerte gesetzt



getTarget
public TKBaseField getTarget(String fieldPath, String prefix)(Code)



hashCode
public int hashCode()(Code)
Returns the hash code for this object. the hash code for this object.



init
public void init(String fieldClass, Object data) throws TKUnregisteredClassException, ClassNotFoundException, InstantiationException, IllegalAccessException(Code)
Die Daten der globalen Struktur werden uebergeben. Aus diesen Daten wird die Fieldstruktur fuer die Tabelle aufgebaut Das Field-Objekt fuer die Table wird aus der Registry geholt
Parameters:
  String - fieldClass, die CLASS_ID
Parameters:
  Object - data, der Datahash



initFieldTable
final public void initFieldTable(String name, TKBaseField tableEntry, TKBaseField rowEntry, TKBaseField colEntry, String showName)(Code)
Die BaseFields werden uebergeben und den entsprechenden Objekten der Klasse zugewiesen (aehnlich einem Konstruktor)
Parameters:
  TKBaseField - tableEntry, Field-Object fuer die Zellen
Parameters:
  TKBaseField - rowEntry, Field-Object fuer den Zusatzvektor (Row)
Parameters:
  TKBaseField - tableEntry, Field-Object fuer den Zusatzvektor (Col)



initFromDB
public void initFromDB(String classId, TKFormDBData db, TKVector otherFields) throws TKUnregisteredClassException, ClassNotFoundException, InstantiationException, IllegalAccessException(Code)
Aufgabe wie ein Konstruktor, die Struktur des Objektes und seiner Subelemente wird wieder aufgebaut ACHTUNG: Aufbau in umgekehrter Reihenfolge als in realInsertIntoDB



initSubFields
public void initSubFields(TKFieldOptionData optionData, boolean initRow) throws TKUnregisteredClassException, ClassNotFoundException, InstantiationException, IllegalAccessException(Code)
Hilfsmethode fuer init() Die Field-Objekte fuer die Zusatz-Row/Col werden aus der Registry geholt
Parameters:
  String - fieldClass, die CLASS_ID
Parameters:
  Object - data, der Datahash



insertDataIntoDB
public int insertDataIntoDB(TKContentDBData db, Object data, int contentId, int leftNr)(Code)
Die Daten des Objekts werden in einer Uebergangsstruktur angelegt, damit diese in die DB eingetragen werden kann. Die Daten des Subelementes (optionData.data) in der entsprechenden Methode insertDataIntoDB in die Uebergangsstruktur gelegt.



insertRowOrCol
public Object insertRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)(Code)



lastRowOrCol
public Object lastRowOrCol(String action, TKFieldTableRealData dataClass, int rowIdx, int colIdx)(Code)
Move Row Or Col to last Position



modify
public Object modify(String action, String fieldPath, Object data, String prefix, StringBuffer destination)(Code)
Eine bestehende Tabelle wird veraendert



realInsertIntoDB
public int realInsertIntoDB(TKFormDBData db, int formId)(Code)
Die Struktur des Objekts und seiner Subelemente werden in einer Uebergangsstruktur fuer die DB abgelegt.



toData
public Object toData()(Code)
Returns the internal representation of this field. the internal representation of this field.



toDataSubFields
public TKHashtable toDataSubFields(TKFieldOptionData entryOption, TKBaseField rowOrColEntry, TKHashtable result, String rowOrCol)(Code)
Hilfsmethode fuer toData()



Fields inherited from com.teamkonzept.field.TKBaseField
final public static String BASEPATH_PAR(Code)(Java Doc)
final public static String DIAGS_KEY(Code)(Java Doc)
final public static String LANGUAGE_CONTEXT(Code)(Java Doc)
final public static String NAME_KEY(Code)(Java Doc)
final public static String NEWFILENAME(Code)(Java Doc)
final public static String OLDFILENAME(Code)(Java Doc)
final public static String SHOW_NAME_KEY(Code)(Java Doc)
final public static String SUB_LIST_KEY(Code)(Java Doc)
final public static String SUB_TYPE_KEY(Code)(Java Doc)
protected int fieldId(Code)(Java Doc)
public String fieldName(Code)(Java Doc)
public String fieldType(Code)(Java Doc)
public String showName(Code)(Java Doc)

Methods inherited from com.teamkonzept.field.TKBaseField
public void addToContext(Object value, String key, TKHashtable context)(Code)(Java Doc)
public void clearId()(Code)(Java Doc)
abstract public Object compileData(String prefix, TKHashtable data, TKHashtable context)(Code)(Java Doc)
abstract public Object compileData(String prefix, TKMarkupNode data, TKHashtable context)(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
public void fillAttributesIntoNode(Element node, Object data) throws DOMException(Code)(Java Doc)
abstract public void fillIntoDOM(Document doc, Element node, Object value) throws DOMException(Code)(Java Doc)
abstract public void fillIntoPresentation(TKHTMLTemplate t, Object value, String prefix)(Code)(Java Doc)
public void fillIntoTemplate(TKHTMLTemplate t, Object value, String prefix)(Code)(Java Doc)
public TKHashtable finishExtModify(String action, TKHashtable params)(Code)(Java Doc)
public TKContentNodeTableData getContentNodeFromDB(TKContentDBData db)(Code)(Java Doc)
public TKContentValueTableData getContentNodeValueFromDB(TKContentDBData db, TKContentNodeTableData node)(Code)(Java Doc)
abstract public Object getDataFromDB(TKContentDBData db)(Code)(Java Doc)
final public static TKFieldSwitchData getDataOfAlternative(TKBaseField field)(Code)(Java Doc)
final public static TKFieldSwitchListData getDataOfAlternatives(TKVector fieldList)(Code)(Java Doc)
abstract public TKFieldGroup getDefGroup(TKFieldSwitch allSwitch, TKFieldSwitchList allSwitchList)(Code)(Java Doc)
public Object getDefault()(Code)(Java Doc)
public TKBaseField getField(String fieldPath, String prefix)(Code)(Java Doc)
public String getFieldAttribute(TKFormDBData db, String name, int idx)(Code)(Java Doc)
final public static TKHashtable getFieldHashFromList(TKVector fieldList)(Code)(Java Doc)
public Object getFromContext(String key, TKHashtable context)(Code)(Java Doc)
public String getInternationalName()(Code)(Java Doc)
final public static TKVector getListOfFields(TKFieldSwitchListData switchListData) throws TKUnregisteredClassException, ClassNotFoundException, InstantiationException, IllegalAccessException(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
final public String getShowName()(Code)(Java Doc)
public TKBaseField getSubField(TKFormDBData db, String name, int idx, TKVector otherFields) throws TKUnregisteredClassException, ClassNotFoundException, InstantiationException, IllegalAccessException(Code)(Java Doc)
public TKVector getSubFieldList(TKFormDBData db, String name, TKVector otherFields) throws TKUnregisteredClassException, ClassNotFoundException, InstantiationException, IllegalAccessException(Code)(Java Doc)
public TKBaseField getTarget(String fieldPath, String prefix)(Code)(Java Doc)
final public String getType()(Code)(Java Doc)
public boolean hasFieldAttribute(TKFormDBData db, String name, int idx)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void init(String fieldType, Object initData) throws TKUnregisteredClassException, ClassNotFoundException, InstantiationException, IllegalAccessException(Code)(Java Doc)
final public void initBaseField(String fieldType, String fieldName, String showName)(Code)(Java Doc)
public void initFromDB(String classId, TKFormDBData db, TKVector otherFields) throws TKUnregisteredClassException, ClassNotFoundException, InstantiationException, IllegalAccessException(Code)(Java Doc)
abstract public int insertDataIntoDB(TKContentDBData db, Object data, int contentId, int leftNr)(Code)(Java Doc)
final public void insertDataIntoDB(TKContentDBData db, Object data)(Code)(Java Doc)
public void insertIntoDB(TKFormDBData db)(Code)(Java Doc)
public TKContentNodeTableData insertNewContentNode(TKContentDBData db, int contentId, int leftNr)(Code)(Java Doc)
public void insertNewContentValue(TKContentDBData db, int contentId, int contentNodeId, int idx, String value)(Code)(Java Doc)
public void insertNewContentValue(TKContentDBData db, int contentId, int contentNodeId, int idx, String value, Integer mediaID)(Code)(Java Doc)
public void insertNewFieldAttribute(TKFormDBData db, int formId, String name, int idx, String value)(Code)(Java Doc)
public TKSubFieldTableData insertNewSubField(TKFormDBData db, int formId, String name, int idx)(Code)(Java Doc)
public void insertNewSubFieldList(TKFormDBData db, int formId, String name, TKVector fieldList)(Code)(Java Doc)
public Object modify(String action, String fieldPath, Object data, String prefix, StringBuffer destination)(Code)(Java Doc)
public String modify(String action, String fieldPath, Object data)(Code)(Java Doc)
final public static TKContentNodeTableData peekNextContentNode(TKContentDBData db)(Code)(Java Doc)
public int realInsertIntoDB(TKFormDBData db, int formId)(Code)(Java Doc)
final public static void removeNextContentNode(TKContentDBData db)(Code)(Java Doc)
public void setName(String newShowName, String newFieldName)(Code)(Java Doc)
public Object toData()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.