org.infolayer.templates.html
Class TE_properties

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.html.TE_properties
Direct Known Subclasses:
TE_default

public class TE_properties
extends TemplateElement

The <t:properties> element generates a table consisting of labels and properties of the current object. This element can be used in regular pages for displaying object properties. Inside <t:form> elements, the <t:properties> element can be used to edit objects or to search for objects.

Please note that the context must be an instance for the display and edit mode, but a class for the query mode.

names
A comma separated list of property names to be displayed.

See Also:
Serialized Form

Constructor Summary
TE_properties()
           
 
Method Summary
 void apply(XmlSerializer xw, IlRequest context, Bindings bindings)
          Applies the template mechanism.
 void init()
           
static void writeClassDetails(XmlSerializer xw, IlRequest context, UmlClass umlClass)
           
static void writeObjectDetails(XmlSerializer xw, IlRequest context, UmlClass type, UmlObject object, java.lang.String[] names, int onEmpty)
          If names array is null, the list is computed automatically
 
Methods inherited from class org.infolayer.templates.TemplateElement
applyChildren, assertNoChildren, assertNoChildren, getAttributeValue, getVarDefs, readTextContent, setVarDefs, writeAttributes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TE_properties

public TE_properties()
Method Detail

init

public void init()
Overrides:
init in class TemplateElement

writeClassDetails

public static void writeClassDetails(XmlSerializer xw,
                                     IlRequest context,
                                     UmlClass umlClass)
                              throws java.io.IOException
Throws:
java.io.IOException

writeObjectDetails

public static void writeObjectDetails(XmlSerializer xw,
                                      IlRequest context,
                                      UmlClass type,
                                      UmlObject object,
                                      java.lang.String[] names,
                                      int onEmpty)
                               throws java.io.IOException
If names array is null, the list is computed automatically

Throws:
java.io.IOException

apply

public void apply(XmlSerializer xw,
                  IlRequest context,
                  Bindings bindings)
           throws java.io.IOException
Description copied from class: TemplateElement
Applies the template mechanism. Must be overwritten in the

Overrides:
apply in class TemplateElement
Throws:
java.io.IOException