Component design


The main motif behind designing the SMAF UI components was to create low-level, highly re-purposable building blocks that can be structured to achieve higher level, more complex UI components or functionality. As you will see some of the higher level SMAF components even build on the lower level ones such as box, textblock or composer.




Available components


Here are the UI components available in SMAF by default.

ComponentDescriptionPackageFull Class Name
assetLoads image and swf assets.loadcom.samplemath.load.Asset
boxRectangle shape.shapecom.samplemath.shape.Box
buttonSkinable button.inputcom.samplemath.input.Button
composerContains all other UI components.compositioncom.samplemath.composition.Composer
dropdownDropdown selector.inputcom.samplemath.input.DropDown
inputfieldText input field.inputcom.samplemath.input.InputField
listboxList box selector.inputcom.samplemath.input.ListBox
textblockComponent for rendering text.textcom.samplemath.text.TextBlock
toggleSkinable checkbox.inputcom.samplemath.input.Toggle
videoboxComponent for rendering video.videocom.samplemath.video.VideoBox




Extending components


The framework offers the ability to extend any existing component as well as to create new ones. If these additional components are properly implemented with SMAF they can then be used via SMXML.

To create a custom component for SMAF start with extending the AComposable abstract class. You will also want to register your component class with ComponentReference.

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki