Package org.objectweb.jac.aspects.gui.swing

Provides a simple and generic GUI (Graphical User Interface) aspect using SWING.

See:
          Description

Class Summary
AbstractCodeEditor A base class for source code editors
AbstractCollection Base class to implement ListView and TableView
AbstractCompositeView  
AbstractFieldEditor  
AbstractFieldView  
AbstractFileEditor Base class for file related types.
AbstractView  
ArrayEditor A Swing editor component for array values.
AttachmentEditor This is a special value editor that allows the user to nicely edit an File.
AttachmentViewer A Swing viewer component for date values.
BooleanEditor A Swing editor component for boolean values.
BooleanViewer  
CollaborationInitializer  
CollectionItemView  
CompactList Base class to implement ListView and TableView
CompletionEngine This class must be subclassed to implement specific completion engines for code editors.
CurrencyEditor A Swing editor component for fields values (primitive types).
CurrencyViewer A Swing viewer for the currency abstract type.
DateEditor A Swing editor component for date values.
DateHourEditor A Swing editor component for date values.
DateHourViewer A Swing viewer component for date values.
DateViewer A Swing viewer component for date values.
DefaultCompletionEngine This class implements a default completion engines for editors.
DesktopView This class defines a Swing component tree view for objects that are related to a root object through relations or collections.
Dialog This dialog is used to ask the parameters values when a method is called on a viewed JAC object.
DirectoryEditor This is a special value editor that allows the user to nicely choose a directory on the local file system
DirectoryURLEditor This is a special value editor that allows the user to nicely edit an URL.
EditorScrollPane  
EnumViewer  
FileEditor This is a special value editor that allows the user to nicely edit a File.
FilePathEditor This is a special value editor that allows the user to nicely edit a file path.
FloatEditor HTML editor and viewer for percentage values.
FloatViewer A Swing viewer component for float values.
FormatEditor  
FormatViewer A Swing viewer component for date values.
ImageURLEditor This is a special value editor that allows the user to nicely edit an URL.
ImageURLViewer A Swing viewer component for imageURL values.
ImageViewer A Swing viewer component for image values.
IntViewer  
JavaCodeEditor A Java source code editor
JTable A table with variable height rows.
JTextField This text field has a max height which i its preferred height.
List  
Menu  
MenuBar  
NumberPanel  
ObjectChooser This is a special value editor that allows the user to choose a value within a set of object of a given type.
ObjectPopup  
ObjectView  
ObjectViewDialog  
PasswordFieldEditor A Swing editor component for fields values (password types).
PercentEditor Swing editor and viewer for percentage values.
PercentViewer A Swing viewer component for percentage values.
PointEditor A Swing editor component for point values.
PrimitiveFieldEditor A Swing editor component for fields values (primitive types).
ReferenceView This class defines a Swing component view for references in objects.
SearchTool A search tool for the SHEditor.
SHEditor  
SHEditorConfig Holds the configuration of the Java source code editor
SingleSlotContainer This composite viewonly show the last view that was added to it.
StatusBar  
SwingContainerView  
SwingCustomized  
SwingDisplay  
SwingEditorContainer  
SwingEmptyView  
SwingEvents Gather common swing events code
SwingFieldView  
SwingLabel  
SwingMethodView  
SwingPanelView  
SwingTabbedView  
SwingTableView  
SwingUtils  
TextEditor A Swing editor component for multi-lines text values.
TextFieldEditor A Swing editor component for fields values (primitive types).
TextViewer A Swing viewer for texts.
TimestampViewer A Swing viewer component for date values.
ToolBar  
ToStringTableCellRenderer  
Tree This class defines a Swing component tree view for objects that are related to a root object through relations or collections.
URLEditor This is a special value editor that allows the user to nicely edit an URL.
 

Package org.objectweb.jac.aspects.gui.swing Description

Provides a simple and generic GUI (Graphical User Interface) aspect using SWING.

This aspect is based on a MVC (Model-View-Controller) pattern. The GUI aspect component wrapps all the objects of the application that need to be displayed with a view wrapper that plays the controller role. The view is generic and is implemented by the View class. It simply displays the objects fields values and add some buttons for the commands that correspond to the class methods.

It supports arrays, collections, and maps displaying.

The configuration file lets you specify how objects should be displayed. You can control which fields are shown and in which order for instance. You can also specify the name of methods parameters.

Two guis are available : a swing gui, based on Java's swing components, and a web gui which generates HTML pages. They both use the configuration of the gui aspect, which means that you do not have to write two configuration files, however due to constraint of each implementation, some gui may not use all settings of the gui aspect. For instance, the setRender configuration method only has an effect in the swing gui.

If you want to create a customized GUI for a given application, you must implement the org.objectweb.jac.core.Display interface and use the setDisplay configuration method to launch it.

Configuration methods for the GUI aspect

Related Documentation

For overviews, sources, tutorials, examples, guides, and tool documentation, please see: