Contents - Cultural View

Contents - Cultural View Contents - Cultural View

culturalview.com
from culturalview.com More from this publisher
14.07.2013 Views

Plain Old Java Object 252 An open source framework that auto-creates an object-oriented user interface from POJOs using the naked objects pattern. Metawidget [15] A 'smart User Interface widget' that populates itself, at runtime, with UI components to match the properties of POJOs. fbDaoGenerator [16] Fbdaogenerator connects to a Firebird Database, reads the metadata of the Database by querying the system-tables, and generates POJOs and Data Access Objects. Pojo Testing Projects • OpenPojo [17] a pluggable testing framework See also • Data Transfer Object • Anemic Domain Model References [1] MF Bliki: POJO (http:/ / www. martinfowler. com/ bliki/ POJO. html) from MartinFowler.com [2] http:/ / prevayler. org [3] https:/ / sourceforge. net/ projects/ beanexaminer [4] http:/ / www. romaframework. org [5] http:/ / sourceforge. net/ projects/ openxava [6] http:/ / sourceforge. net/ projects/ plainxml [7] http:/ / sourceforge. net/ projects/ patsystem [8] http:/ / sourceforge. net/ projects/ jor [9] http:/ / sourceforge. net/ projects/ auto-persist-j [10] http:/ / sourceforge. net/ projects/ pojogen [11] http:/ / sourceforge. net/ projects/ pojodbc [12] http:/ / cwiki. apache. org/ FELIX/ ipojo. html [13] http:/ / labs. jboss. com/ jbossmc/ [14] http:/ / www. nakedobjects. org/ home/ index. shtml [15] http:/ / www. metawidget. org [16] http:/ / code. google. com/ p/ fbdaogenerator [17] http:/ / code. google. com/ p/ openpojo

Pluggable look and feel 253 Pluggable look and feel Pluggable look and feel is a mechanism used in the Java Swing widget toolkit allowing to change the look and feel of the graphical user interface at runtime. Swing allows an application to specialize the look and feel of widgets, by modifying the default (via runtime parameters), deriving from an existing one, by creating one from scratch, or, beginning with J2SE 5.0, by using the skinnable synth look and feel, which is configured with an XML property file. The look and feel can be changed at runtime. Architecture The corresponding API includes: • Hooks in Swing widgets to interact with their look and feel. Each widget defined in Swing can delegate its "painting" to its associated user interface classes called UI delegates. • An API to manage existing look and feel definitions. This API allow to set the look and feel or switch from look and feels at runtime. • Another API to define a specific look and feel, or derive a look and feel from an existing one. Examples of look and feels Platform look and feels The Java platform comes with several bundled look and feels [1] : • A default cross-platform look and feel, called Metal (see MetalLookAndFeel). This look and feel comes with several themes: • The DefaultMetalTheme, which was historically the first Swing default theme. • The smoother OceanTheme, which became the default theme for Java 5.0. • Other cross-platform look and feels: • A skinnable look and feel called synth (see synth), which is configured with an XML property file. • The Nimbus look and feel (based on synth), which is added for the Java SE 6 Update 10 [2] [3] . • Platform dependent look and feels [4] : Look and feels that aim to be the closest as possible to the platform native GUI. The fidelity to the native look and feel theming has been improved in recent Java versions by leveraging the [5] [6] platform native GUI theming library when possible • A Windows look and feel (this look and feel depends on the version of the Windows Operating System), • A Motif or GTK+ (for newer distributions) look and feel on Linux or Solaris, • A specific vendor look and feel for IBM AIX, HP-UX, and Mac OS X.

Pluggable look and feel 253<br />

Pluggable look and feel<br />

Pluggable look and feel is a mechanism used in the Java Swing widget toolkit allowing to change the look and feel<br />

of the graphical user interface at runtime.<br />

Swing allows an application to specialize the look and feel of widgets, by modifying the default (via runtime<br />

parameters), deriving from an existing one, by creating one from scratch, or, beginning with J2SE 5.0, by using the<br />

skinnable synth look and feel, which is configured with an XML property file. The look and feel can be changed at<br />

runtime.<br />

Architecture<br />

The corresponding API includes:<br />

• Hooks in Swing widgets to interact with their look and feel. Each widget defined in Swing can delegate its<br />

"painting" to its associated user interface classes called UI delegates.<br />

• An API to manage existing look and feel definitions. This API allow to set the look and feel or switch from look<br />

and feels at runtime.<br />

• Another API to define a specific look and feel, or derive a look and feel from an existing one.<br />

Examples of look and feels<br />

Platform look and feels<br />

The Java platform comes with several bundled look and feels [1] :<br />

• A default cross-platform look and feel, called Metal (see MetalLookAndFeel). This look and feel comes with<br />

several themes:<br />

• The DefaultMetalTheme, which was historically the first Swing default theme.<br />

• The smoother OceanTheme, which became the default theme for Java 5.0.<br />

• Other cross-platform look and feels:<br />

• A skinnable look and feel called synth (see synth), which is configured with an XML property file.<br />

• The Nimbus look and feel (based on synth), which is added for the Java SE 6 Update 10 [2] [3] .<br />

• Platform dependent look and feels [4] : Look and feels that aim to be the closest as possible to the platform native<br />

GUI. The fidelity to the native look and feel theming has been improved in recent Java versions by leveraging the<br />

[5] [6]<br />

platform native GUI theming library when possible<br />

• A Windows look and feel (this look and feel depends on the version of the Windows Operating System),<br />

• A Motif or GTK+ (for newer distributions) look and feel on Linux or Solaris,<br />

• A specific vendor look and feel for IBM AIX, HP-UX, and Mac OS X.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!