Java Doc for TKFieldOption.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.TKFieldOption

TKFieldOption
public class TKFieldOption extends TKBaseField (Code)
The field option control. Die Klasse TKFieldoption stellt Methoden zur Verfuegung, optional auszuwaehlen, ob ein uebergebens Field generiert werden soll oder nicht, die ausgewaehlte Option zu modifizieren, und um die Daten und Struktur in der Datenbank abzulegen. Sie definiert sich ueber einen Namen, einer Beschreibung und einer Auswahlliste aller verfuegbaren Fields. Im Content-Edit Modus wird dann das Template field_option.tmpl generiert, welches einen Switch mit der Auswahl Ja bzw. Nein enthaelt. Wird Ja ausgewaehlt, so wird der Default des Feldes generiert, das zuvor ausgewaehlt wurde. Bsp.: Eine Liste, enthaelt Textfelder. Zu jedem Textfeld kann optional die Moeglichkeit zur Verfuegung gestellt werden, ein Bild am Ende des Textes hinzuzufuegen oder nicht.
author:
   $Author: uli $
version:
   $Revision: 1.26 $


Field Summary
final public static  StringCLASS_ID
     The class identifier.
final public static  StringDEFAULT_NO_NAME
    
final public static  StringDEFAULT_YES_NAME
    
final public static  StringNO_NAME_KEY
    
final public static  StringOPTION_ENTRY_KEY
    
final public static  StringYES_NAME_KEY
    
protected  StringnoName
     The name for the unselected state.
 TKBaseFieldoptionEntry
    
protected  StringyesName
     The name for the selected state.

Constructor Summary
public  TKFieldOption()
     Creates an empty field option control.
public  TKFieldOption(String name, TKBaseField optionEntry)
    
public  TKFieldOption(String name, TKBaseField optionEntry, String showName)
    
public  TKFieldOption(String name, TKBaseField optionEntry, String showName, String yesName, String noName)
    

Method Summary
public  voidclearId()
     Erster Aufruf => sich selbst und das Subelemente auf -1 setzen.
public  ObjectcompileData(String prefix, TKHashtable data, TKHashtable context)
     Ja oder Nein wurde ausgewaehlt und der Event Switch abgesetzt.
public  ObjectcompileData(String prefix, TKMarkupNode data, TKHashtable context)
    
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  ObjectgetDataFromDB(TKContentDBData db)
    
public  TKFieldGroupgetDefGroup(TKFieldSwitch allSwitch, TKFieldSwitchList allSwitchList)
     Methode zur Definition einer Feldoption Eine TKFieldOption definiert sich durch ein Inputfeld fuer den internen Namen, ein Inputfeld fuer die Beschreibung und einer Auswahlliste, die alle Fields enthaelt.
public  ObjectgetDefault()
     Die Klasse, die die Daten (interne Raepresentation) haelt, wird initial erzeugt.
public  TKBaseFieldgetTarget(String fieldPath, String prefix)
     Diese Methode wird fuer die Bearbeitung des Events "EXT_MODIFY" fuer ein Upload benoetigt. Diese Methode ermoeglicht es die Field-Hierachie zu durchlaufen. Komplexe Fields enthalten Sub-Fields, die entweder Atomfields sind oder wiederum Sub-Fields enthalten.
public  inthashCode()
     Returns the hash code for this object.
public  voidinit(String fieldClass, Object data)
    
final public  voidinitFieldOption(String name, TKBaseField optionEntry, String showName, String yesName, String noName)
    
public  voidinitFromDB(String classId, TKFormDBData db, TKVector otherFields)
    
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  Objectmodify(String action, String fieldPath, Object data, String prefix, StringBuffer destination)
     1.
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.

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



DEFAULT_NO_NAME
final public static String DEFAULT_NO_NAME(Code)
Default fuer Nein



DEFAULT_YES_NAME
final public static String DEFAULT_YES_NAME(Code)
Default fuer Ja



NO_NAME_KEY
final public static String NO_NAME_KEY(Code)



OPTION_ENTRY_KEY
final public static String OPTION_ENTRY_KEY(Code)



YES_NAME_KEY
final public static String YES_NAME_KEY(Code)



noName
protected String noName(Code)
The name for the unselected state.



optionEntry
TKBaseField optionEntry(Code)
die eigentliche Option



yesName
protected String yesName(Code)
The name for the selected state.




Constructor Detail
TKFieldOption
public TKFieldOption()(Code)
Creates an empty field option control.



TKFieldOption
public TKFieldOption(String name, TKBaseField optionEntry)(Code)
Konstruktor 2
Parameters:
  String - name, ein beliebiger Name
Parameters:
  TKBaseField - optionEntry, das ausgewaehlte Field



TKFieldOption
public TKFieldOption(String name, TKBaseField optionEntry, String showName)(Code)
Konstruktor 3
Parameters:
  String - Name, ein beliebiger Name
Parameters:
  TKBaseField - optionEntry, das ausgewaehlte Field
Parameters:
  String - showName, Name, den der Benuzer fuer das Feld gewaehlt hat



TKFieldOption
public TKFieldOption(String name, TKBaseField optionEntry, String showName, String yesName, String noName)(Code)




Method Detail
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)
Ja oder Nein wurde ausgewaehlt und der Event Switch abgesetzt. Nun werden die Daten der Klasse TKFieldOption gesetzt und in der Klasse TKOptionData abgelegt, welche die interne Praesentaion des Fields darstellt. Die Information, ob ja oder nein ausgewaehlt wurde, ist im Hash data abgelegt.
Parameters:
  String - prefix, Fieldstruktur
Parameters:
  TKHashtable - data, Hash mit den Daten ein Objekt der Klasse, die die Daten fuer TKFieldOption enthaelt



compileData
public Object compileData(String prefix, TKMarkupNode data, TKHashtable context)(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)
Der Scope wird in das Template eingesetzt
Parameters:
  TKHTMLTemplate - t, das Template
Parameters:
  Object - data, Hash mit den Daten
Parameters:
  String - scope



fillIntoTemplate
public void fillIntoTemplate(TKHTMLTemplate t, Object data, String prefix)(Code)
Die Daten werden in das Template eingesetzt
Parameters:
  TKHTMLTemplate - t, das Template field_optiom.tmpl
Parameters:
  Object - data, Hash mit den Daten
Parameters:
  String - prefix, Fieldstruktur



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 Feldoption Eine TKFieldOption definiert sich durch ein Inputfeld fuer den internen Namen, ein Inputfeld fuer die Beschreibung und einer Auswahlliste, die alle Fields enthaelt.
Parameters:
  TKFieldSwitch - allSwich, eine Optionsgruppe
Parameters:
  TKFieldSwitchList - allSwitchList, eine Optionsliste eine Gruppe, die die Definitionen enthaelt



getDefault
public Object getDefault()(Code)
Die Klasse, die die Daten (interne Raepresentation) haelt, wird initial erzeugt. die interne Repraesentation der Daten



getTarget
public TKBaseField getTarget(String fieldPath, String prefix)(Code)
Diese Methode wird fuer die Bearbeitung des Events "EXT_MODIFY" fuer ein Upload benoetigt. Diese Methode ermoeglicht es die Field-Hierachie zu durchlaufen. Komplexe Fields enthalten Sub-Fields, die entweder Atomfields sind oder wiederum Sub-Fields enthalten. Ist die Hierachie durchlaufen, wird das letzte Basefield zurueckgegeben. Siehe auch: doCTExtModify() in CTGenerator.java
Parameters:
  String - fieldPath
Parameters:
  String - prefix das Objekt selbst



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)
Das Subfield-Objekt wird aus der Registry geholt
Parameters:
  String - fieldClass, die CLASS_ID
Parameters:
  Object - data, der Datahash



initFieldOption
final public void initFieldOption(String name, TKBaseField optionEntry, String showName, String yesName, String noName)(Code)
Initialisierung des Fields
Parameters:
  String - Name, ein beliebiger Name
Parameters:
  TKBaseField - optionEntry, das ausgewaehlte Field
Parameters:
  String - showName, Name, den der Benuzer fuer das Feld gewaehlt hat



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
Parameters:
  String - classId, Name des Fields (CLASS_ID)
Parameters:
  TKFormDBData - db
Parameters:
  TKVector - otherFields



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. action, das Event das ausgeloest wurde
Parameters:
  TKContentDBData - db, liefert den Knoten
Parameters:
  Object - data, Hash mit den Daten int contentID, aktuelle ID int leftNr, letzter linker Knoten ein den Hash mit den Daten



modify
public Object modify(String action, String fieldPath, Object data, String prefix, StringBuffer destination)(Code)
1. Die Aktion btrifft das Field selbst Eine FieldOption ist ein Switch, mit dem ein Ja oder Nein ausgewaehlt werden kann. Wird nach der Auswahl der Event Switch ausgeloest, wird die Methode modify angestossen und die Default-Praesentation des Subfields wird eingebunden und im Template dargestellt. 2. Die Aktion berifft das Subfield Ist das Subfield ein komplexes Field, so kann dieses wiederum eine Methode modify besitzen, welche ausgefuerhrt werden muss. Bsp: Ja wurde ausgewaehlt und eine Liste soll erstellt werden. Diese erscheint auf der Seite als leere Liste (Default) und besitzt einen Button "add". Wird dieses Event abgesetzt, so wird die Methode modify der Liste aufgerufen, die wiederum ein Komplexes Field mit einer Methode modify enthalten kann, usw.
Parameters:
  String - action, das Event das ausgeloest wurde
Parameters:
  Object - data, Hash mit den Daten
Parameters:
  String - prefix, Fieldstruktur
Parameters:
  StringBuffer - destination, fuer die Anzeige des Templates ein den Hash mit den Daten



realInsertIntoDB
public int realInsertIntoDB(TKFormDBData db, int formId)(Code)
Die Struktur des Objekts und seiner Subelemente werden in einer Uebergangsstruktur fuer die DB abgelegt.
Parameters:
  TKFormDBData - db int formId, Id der Form die Id des Fields



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



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.