Common Interface Format (CIF)The Common Interface Format (CIF) is a serialization format for storing General Interface component definitions. In the future, this format will replace the current serialization file format, which has the following namespace — xmlns="urn:tibco.com/v3.0". The CIF format provides improved readability and smaller file size. The CIF format uses several new namespaces, the root of which is http://xsd.tns.tibco.com/gi/cif/2006. The new format is 100% compatible with the v3.0 serialization format. An XSLT is used for the conversion between CIF and v3.0 formats. Currently, General Interface Builder can read but not save CIF files. Any edits made to a CIF file are saved in the old serialization format. CIF Document ExampleHere is an example of a CIF document that represents a dialog component. The dialog contains a window bar with buttons, a splitter with a grid layout, and so on. Some of the key aspects of the CIF are indicated in bold. For definitions, see CIF Definitions. <component xmlns="http://xsd.tns.tibco.com/gi/cif/2006" *classpath*="jsx3.gui" xmlns:e="http://xsd.tns.tibco.com/gi/cif/2006/events" xmlns:\d="http://xsd.tns.tibco.com/gi/cif/2006/v3.2/dynamics" xmlns:\p="http://xsd.tns.tibco.com/gi/cif/2006/property" xmlns:\pe="http://xsd.tns.tibco.com/gi/cif/2006/property.eval" xmlns:x="http://xsd.tns.tibco.com/gi/cif/2006/xslparameters" xmlns:v="http://xsd.tns.tibco.com/gi/cif/2006/view" xmlns:id="http://xsd.tns.tibco.com/gi/cif/2006/inlinedata" xmlns:u="http://xsd.tns.tibco.com/gi/cif/2006/userdefined" xmlns:ue="http://xsd.tns.tibco.com/gi/cif/2006/userdefined.eval" > <meta name="onAfterDeserialize"><![CDATA[ jsx3.log("Here is an unescaped entity: >"); ]]></meta> <Dialog d:bgcolor="@Solid Medium" pe:width="400" pe:height="200" p:name="dlg1"> <WindowBar p:name="cbar1" p:text="My Dialog" u:custom="this is custom"> <ToolbarButton d:image="@Min Icon" p:name="tbbMin" e:execute="x();"/> <ToolbarButton d:image="@Close Icon" p:name="tbbClose" e:execute="y();"/> </WindowBar> <Splitter d:bgcolor="@Solid Shadow" p:name="splt1"> <LayoutGrid d:bgcolor="@Solid Light" p:name="lg1" id:sizearray="AX1"> <DatePicker pe:width="100" p:name="dp1" /> <Button p:name="btn1" p:text="Click Me" e:execute="alert('hello');" /> <Slider pe:length="100" p:value="100" p:name="sld1" /> <id:\data href="AX1" handler-for="jsx3.lang.Serializeable.Array"> <object> <item>38</item> <item>*</item> <item>26</item> </object> </id:\data> </LayoutGrid> <Block d:bgcolor="@Solid Light" p:name="pane2" p:\padding="8"> <Select p:name="sel1" id:xml="HRTL129Q"> <id:\data href="HRTL129Q"> <![CDATA[ <data jsxid="jsxroot"> <record jsxid="TIBX" jsxtext="TIBCO"/> <record jsxid="MSFT" jsxtext="Microsoft"/> <record jsxid="YHOO" jsxtext="Yahoo!"/> <record jsxid="EBAY" jsxtext="Ebay"/> <record jsxid="GOOG" jsxtext="Google"/> <record jsxid="IBM" jsxtext="IBM"/> </data> ]]> </id:\data> </Select> </Block> </Splitter> </Dialog> </component> CIF Definitions
|
Contents
|
