Application Properties

Application Properties

This document gives description of Application Properties in Fluency.

What is Application Properties?

 Application Properties are certain properties of a fluency application which are save as part of the application whenever a fluency application is saved.

It includes:

Application Name:

When you start Fluency, it will start up with a new fluency application. This Fluency Application is named as "Fluency Application 1". The name of the application appears on the title bar of the Fluency Application Window. Image 1 indicates that. 


Image 1. Application Name


Author: 

An author is the author of the fluency application. By default  fluency takes the current username as the author of the fluency application. The image 2 shows the Application Properties dialog box:


Image 2. Application Properites


Where do I find it?

Application Properties can be found in under the File Menu of Fluency Editor. Image 3 shows that:


Image 3. File -> Application Properties.
 



How does it  work?

When a fluency application is saved. Fluency actually saves all the widgets, their properties, pipes and application properties in a XML file. The XML file has .flu as the file extension. A .flu file encloses the entire fluency application into <FluencyApplication>  </FluencyApplication>. <FluencyApplication> has child element called "Properties", these are actually Application Properties.

An Example of a .flu file will make it more clear:

<FluencyApplication>
<Properties id="Basic Fluency Editor" version="0.1.6" size="400.400" title="Mintu" author="Saurabh Ajmera"/>
?

<Widget id="org.knownspace.fluency.shared.widget.categories.visual.SimpleButton">
<Property name="Transparency" type="java.lang.Double">
 2.0
</Property>
<Property name="Size" type="java.awt.Dimension">
63,23
</Property>
<Property name="Enabled" type="java.lang.Boolean">
1
</Property>
<Property name="Location" type="java.awt.Point">
84,198
</Property>
<Property name="Text" type="java.lang.String">
Empty
</Property>
<Property name="Z Level" type="java.lang.Integer">
0
</Property>
<Property name="Visibility" type="java.lang.Boolean">
1
</Property>
<Property name="Foreground Color" type="java.awt.Color">
0,0,0
</Property>
</Widget>
?

<Widget id="org.knownspace.fluency.shared.widget.categories.visual.SimpleCheckbox">
<Property name="Transparency" type="java.lang.Double">
2.0
</Property>
<Property name="Size" type="java.awt.Dimension">
55,23
</Property>
<Property name="Enabled" type="java.lang.Boolean">
1
</Property>
<Property name="Location" type="java.awt.Point">
222,218
</Property>
<Property name="Text" type="java.lang.String">
Empty
</Property>
<Property name="Z Level" type="java.lang.Integer">
0
</Property>
<Property name="Visibility" type="java.lang.Boolean">
1
</Property>
<Property name="Foreground Color" type="java.awt.Color">
0,0,0
</Property>
</Widget>
<Pipe out="1:Input:clicked:org.knownspace.fluency.shared.types.Empty" in="2:Input:click:org.knownspace.fluency.shared.types.Empty" path="0"/>
</FluencyApplication>

The code above shows a sample .flu file. In the above code, notice the following line:

<Properties id="Basic Fluency Editor" version="0.1.6" size="400.400" title="Mintu" author="Saurabh Ajmera"/>

 This line is where the Application Properties are saved. The "title" attribute is the title of the fluency application and "author" attribute saves the author of the fluency application.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.