Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Package jac.aspects.gui.web

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

See:
          Description

Interface Summary
AttachmentListener This interface defines a callbacks used when events occur on an Attachment.
ChoiceListener  
CollectionItemViewListener This interface defines a callbacks used when events occur on a collection.
CollectionListener This interface defines a callbacks used when events occur on a collection.
DialogListener This interface defines events for a dialog window
HTMLEditor This interface defines an editor used by the WebDisplay.
HTMLViewer This interface defines an object viewer used by the WebGUI.
JacRequest This interface represents an HttpRequest.
MenuListener This interface defines a callbacks used when events occur on a menu.
MethodListener This interface defines event for the method component.
SelectionListener This interface defines event for object selection.
TableListener This interface defines a callbacks used when events occur on a table.
TabsListener This interface defines event for the tabs component.
TreeListener This interface defines events callbacks for a tree view.
WindowListener This interface defines event for Windows view.
 

Class Summary
AbstractCollection  
AbstractCompositeView  
AbstractFieldEditor  
AbstractFieldView  
AbstractJacRequest This class represents a multi-part HttpRequest.
AbstractMenu  
AbstractPage An HTML page containing a View
AbstractView  
AttachmentEditor  
AttachmentViewer  
BooleanEditor Boolean editor component
ClasspathResource  
CollectionItemView Component used to display elements of a collection, with "prev" and "next" buttons to go to the previous or next element of the collection easily.
CompactList  
Container  
Customized  
DateEditor HTML editor and viewer for dates.
DateHourEditor HTML editor for dates.
DateHourViewer  
DateViewer  
Dialog An HTML page containing a View, and an OK and a close Button
EditorContainer  
EmbeddedMethod  
Empty  
EnumViewer  
FloatViewer  
ImageURLViewer  
IndexSelector A reference editor that uses the value of an index field to select objects.
IndicesSelector A collection editor that uses the value of an index field to select objects.
JacLocalServlet This servlet does the same thing as the JacServlet, but it does not use RMI.
Label  
List  
Menu  
MenuBar  
MenuItem  
Method  
MultiMapJacRequest This class represents a multi-part HttpRequest.
MultiPartJacRequest This class represents a multi-part HttpRequest.
ObjectChooser This is a special value editor that allows the user to choose a value within a set of object of a given type.
ObjectView  
Page An HTML page containing a View and a close button.
Panel  
PasswordFieldEditor HTML editor for password types (int, long, float, double, short) and String
PrimitiveField  
PrimitiveFieldEditor HTML editor for primitive types (int, long, float, double, short) and String
ReferenceView This class defines a Swing component view for references in objects.
Request This class defines requests that come from web clients.
RequestPart This class represents a file part of multi-part HttpRequest.
Session This class defines a session for thin client servers.
SingleSlotContainer This composite viewonly show the last view that was added to it.
StatusBar  
Table  
Tabs A tabs component.
TextEditor HTML editor for multiline texts.
TextViewer  
ToolBar  
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.
WebDisplay This class provides a server for web clients using a thin client protocol and implements the Display interface to assume data inputs and outputs between JAC objects and web clients.
 

Package jac.aspects.gui.web Description

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

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 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: