Widget Properties and PropertyViews

Widget Properties

Widgets have properties, which tells Fluency (and the Fluency User) the state of the widget. Properties include location, size, visibility, text, color, etc. Properties each have their own class, and some share common superclasses (ForegroundColorProperty and BackgroundColorProperty are both ColorProperties). All properties descend from WidgetProperty. Using this layout avoids a huge amount of duplicate code, since every widget has a location, many have color and text, etc.

PropertyViews

 Widget properties also have views. A PropertyView is an object that contains a JPanel and a method AddViewTo(JComponent parent), which add the JPanel to the parent. An example would be the ColorPropertyView. Its JPanel has a JLabel that tells the type of property, and a button that brings up a color chooser. Every propertyview is similiar to that. When a widget is selected, the Widget Properties Frame is populated with all appropriate PropertyViews.

 

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