Opentextbooks
The Spec UI framework
Johan Fabry and Stéphane Ducasse
Computers & Technology
The Spec UI framework
Free
The publisher has enabled DRM protection, which means that you need to use the BookFusion iOS, Android or Web app to read this eBook. This eBook cannot be used outside of the BookFusion platform.
Description
Contents
Reviews
Language
Unknown
ISBN
978-1-326-92746-2
Illustrations
Introduction
First Contact With Examples
A customer satisfaction UI
Create the class of the UI and variable accessors
Instantiate and configure subwidgets
Define a title and window size, open and close the UI
Fun with Lists
Registered colors as item background
List of icons
Conclusion
Reusing and composing elements
First requirements
Creating a basic UI to be reused as a widget
Combining two basic widgets into a reusable UI
Managing three widgets and their interactions
Changing the layout of a reused widget
Considerations about a public configuration API
Conclusion
The fundamentals of Spec
User interface building: a composition
The initializeWidgets method
Widget instantiation
Defining UI Layouts
Having multiple layouts for a widget
Specifying a layout when reusing a widget
The initializePresenter method
Conclusion
Layout Construction
About layouts
A working example
Row and column layouts
Combining rows and columns
Setting row and column size
Adding UI splitters so the user can resize
Size in pixels
Proportional layout
Layouts without rows or columns
Absolute widget positions
Relative widget positions
Relative with offsets
Relative widget positions for rows and columns
Conclusion
Managing windows
A working example
Opening a window or a dialog box
Opening a window
Opening a dialog box and its configuration options
Taking over the entire screen
Modal windows and the closing of windows
Modal windows
Preventing window close
Acting on window close
Window size and decoration
Setting initial size and changing size
Fixed size
Removing window decoration
The final details: title, icon and about text
Setting and changing the title
Setting the icon
Setting the about text
Conclusion
Advanced Widgets
TextModel
Non-editable text field
Remove the yellow triangle, perform an action at each edit
Keyboard shortcuts
Single-line input field extras
RadioButtonModel
TabModel
Toolbars and Pop-up Menus
Conclusion
Dynamic Spec
Dynamically changing an already opened UI
A running example
Changing the UI layout
Replacing a widget with another one
Dynamically populating a UI with widgets
Adapting the multi-data viewer
Implementing the widget for showing array contents
An alternative implementation of initializeWidgets
Hacking together a UI in the Playground
Conclusion
Tips and Tricks
Integrating the different UI frameworks
Include a Morph in a Spec UI
Include a Glamour UI in a Spec UI
Make a Spec presentation for the GT Inspector
Lists, trees and tables
A scrollable list of widgets
List items do not update automatically
Setting the selection in a tree
Show a table-like view
Using the underlying widget library
Customizing the appearance of a widget
Get called at periodic intervals
Testing the functionality of a Spec UI
The book hasn't received reviews yet.