Implementing Type Conversion
It is important for a visual framework to support type conversion. For example, controls have graphical properties, but it is often difficult or impossible to show an image in the small space provided in the Properties window. For the Properties window the path to the image might be fine, but the GUI needs to display the actual image. This duality constitutes a type conversion of an image between a file path and the actual image. Other kinds of data need other kinds of conversion; for instance, a color may be rendered as text when serialized to a resource file, but the actual color is rendered in the GUI. Because various kinds of data conversions are needed to support the IDE and runtime applications, a general conversion ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access