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

Quick Search    Search Deep

com.jgoodies.animation.* (5)com.jgoodies.binding.* (72)com.jgoodies.forms.* (37)
com.jgoodies.looks.* (13)com.jgoodies.uif_lite.* (3)com.jgoodies.validation.* (32)

Package Samples:

com.jgoodies.binding.tests.beans: Contains test cases for the JGoodies Binding classes.  
com.jgoodies.validation.tutorial.formatted.format: Contains examples around the JFormattedTextFields.  
com.jgoodies.animation.tests
com.jgoodies.animation.examples.intro
com.jgoodies.animation.examples.basic
com.jgoodies.binding.tutorial.manager
com.jgoodies.binding.tutorial.basics
com.jgoodies.binding.tutorial
com.jgoodies.binding.tests.value
com.jgoodies.binding.tests.event
com.jgoodies.binding.tests
com.jgoodies.binding.extras
com.jgoodies.forms.tutorial.pitfalls
com.jgoodies.forms.tutorial.factories
com.jgoodies.forms.tutorial.building
com.jgoodies.forms.tutorial.basics
com.jgoodies.forms.tutorial
com.jgoodies.forms.layout
com.jgoodies.forms.extras
com.jgoodies.looks.tests

Classes:

ChangeTracker: Tracks changes in a set of bound bean properties. The tracker itself provides a read-only bound bean property changed that indicates whether one of the observed properties has changed. The changed state can be reset to false using #reset . The tracker can observe readable bound bean properties if and only if the bean provides the optional support for listening on named properties as described in section 7.4.5 of the Java Bean Secification . The bean class must provide the following pair of methods: public void addPropertyChangeListener(String name, PropertyChangeListener l); public void removePropertyChangeListener(String ...
AbstractVetoableValueModel: A ValueModel that allows to accept or reject proposed value changes. Useful to request information from the user or to perform operations before a value is changed. Wraps a given subject ValueModel and always returns the subject value as this model's value. Observes subject value changes and forwards them to listeners of this model. If a value is set to this model, the abstract method #proposedChange is invoked. In this method implementors define how to accept or reject value changes. Implementors may veto against a proposed change based on the application state or by asking the user, and may also ...
SpinnerAdapterFactory: A factory that vends javax.swing.SpinnerModel implementations that are bound to a ValueModel Can be used to bind a ValueModel to instances of javax.swing.JSpinner . To keep the ValueModel and SpinnerModel synchronized, this class listens to changes in both sides and updates the other silently, i.e. without firing a duplicate change event. Constraints: The ValueModel's type must be compatible with the type required by the referenced SpinnerModel. For example a javax.swing.SpinnerNumberModel requires Number values. Note: This class is not yet part of the binary Binding library; it comes with the ...
AlbumPresentationModel: In addition to its superclass this class provides a bound read-only property composerEnabled that is true if and only if the underlying Album is non- null and classical. This property is intended to be used by a variety of presentation properties, not just a component's enabled state. You can enable or disable a composer presentation, or switch a composer field's editable property, or to hide and show a larger composer editor section. I've added the composerEnabled property primarily for learning and demonstration purposes. And I wanted to closely follow the example used in Martin Fowler's description ...
IconFeedbackPanel: Can display validation feedback icons "over" a content panel. It observes a ValidationResultModel and creates icon labels in a feedback layer of a javax.swing.JLayeredPane on top of the content layer. To position the feedback labels, the content pane is traversed and searched for text components that match a validation message key in this panel's observed ValidationResultModel. This panel handles two event types: the ValidationResultModel changes, the content layout changes. TODO: Check how the wrapping mechanism shall work with JSplitPanes, JTabbedPanes and CardPanels. At least provide guidelines, ...
EmptyFormat: Wraps a given Format and adds behavior to convert to/from the empty string. Therefore it holds an empty value that is the counterpart of the empty string. The #format result of the empty value is the empty string, and the #parse result of the empty string is the empty value. In all other cases the formatting and parsing is forwarded to the wrapped Format. Often the empty value is null . For example you can wrap a DateFormat to format null to an empty string and parse the empty string to null . Another example is the mapping of the -1 to an empty string using a wrapped NumberFormat . Examples: new ...
ComponentOrientationExample: Demonstrates how to build panels that honor or ignore the current component orientation: left-to-right vs. right-to-left. This example uses a utility class that may be moved to the extras or to the Forms core in a future version. The tricky part is the abstract definition of column specifications and cell constraints. The example below utilizes the OrientationUtils to flip column specification defaul alignments and to reverse the order of column specifications. Cell constraints need to be adjusted too; this example avoids the problem by using a builder that creates all cell constraints. You can ...
RowCounterExample: Demonstrates the FormLayout with a PanelBuilder . Columns and rows are specified before the panel is filled with components. Unlike the PlainExample this class uses a local variable to keep track of the current row. The advantage over fixed numbers is, that it's easier to insert new rows later. This panel building style is simple and works quite well. However, you may consider using a more sophisticated form builder to fill the panel and/or add rows dynamically; see the DynamicRowsExample for this alternative.
SimpleInternalFrame: A JPanel subclass that has a drop shadow border and that provides a header with icon, title and tool bar. This class can be used to replace the JInternalFrame , for use outside of a JDesktopPane . The SimpleInternalFrame is less flexible but often more usable; it avoids overlapping windows and scales well up to IDE size. Several customers have reported that they and their clients feel much better with both the appearance and the UI feel. The SimpleInternalFrame provides the following bound properties: frameIcon, title, toolBar, content, selected. By default the SimpleInternalFrame is in selected ...
DefaultFormBuilderExample: Uses the FormLayout and the DefaultFormBuilder . Columns are specified before the panel is filled with components, rows are added dynamically. The builder is used to hold a cursor, to add rows dynamically, and to fill components. The builder's convenience methods are used to add labels and separators. This panel building style is recommended unless you have a more powerful builder or don't want to add rows dynamically. See the DynamicRowsExample for an implementation that specifies rows before the panel is filled with components.
AlbumManager: Holds a List of Albums and provides operations to add, delete and change a Album. Such a manager is often part of the domain layer. This manager holds the Albums in an ArrayListModel, so we can operate on a List and can expose it as a ListModel. As an alternative, a higher-level presentation model, such as the AlbumManagerModel could turn the List into a ListModel. In the latter case, you would then need to fire the required ListDataEvents. The AlbumManagerModel turns the List of Albums and the operations into a form that can be used in a user interface to display, select, and edit Albums. TODO: ...
PlainExample: Demonstrates a pure use of the FormLayout. Columns and rows are specified before the panel is filled with components. And the panel is filled without a builder. This panel building style is simple but not recommended. Other panel building styles use a builder to fill the panel and/or create form rows dynamically. See the PanelBuilderExample for a slightly better panel building style that can use the builder to create text labels and separators.
DynamicRowsExample: Combines the FormLayout with the PanelBuilder . Columns and rows are specified before the panel is filled with components. The builder's cursor is used to determine the location of the next component. And the builder's convenience methods are used to add labels and separators. This panel building style is intended for learning purposes only. The recommended style is demonstrated in the DefaultFormBuilderExample .
DelegatingTableModel: This implementation of the TableModel interface delegates all requests to an underlying TableModel delegate. It can be used to change a JTable 's model while the table is beeing displayed. Note: This class is not yet part of the binary Binding library; it comes with the Binding distributions as an extra. The API is work in progress and may change without notice; this class may even be completely removed from future distributions. If you want to use this class, you may consider copying it into your codebase.
DelayedValueModel: A ValueModel that deferres value changes for a specified delay. Useful to coalesce frequent changes. For example if a heavy computation shall be performed only for a "stable" selection after a series of quick selection changes. Wraps a given subject ValueModel and returns the subject value or the value to be set as this model's value. Observes subject value changes and forwards them to listeners of this model. If a value is set to this model, a Swing Timer is used to delay the value commit to the subject. A previously started timer - if any - will be stopped before.
ListModelHolder: A com.jgoodies.binding.value.ValueHolder implementation that holds instances of javax.swing.ListModel and that is a ListModel itself. Note: This class is not yet part of the binary Binding library; it comes with the Binding distributions as an extra. The API is work in progress and may change without notice; this class may even be completely removed from future distributions. If you want to use this class, you may consider copying it into your codebase.
LimitedValidationResultModel: An implementation of ValidationResultModel that wraps another ValidationResultModel to limit the number of reported com.jgoodies.validation.ValidationMessage s. Note: This class is not yet part of the binary Validation library; it comes with the Validation distributions as an extra. The API is work in progress and may change without notice; this class may even be completely removed from future distributions. If you want to use this class, you may consider copying it into your codebase.
NumberExample: Demonstrates different configurations of JFormattedTextField to display and edit numbers. Shows how to use a custom NumberFormat how to use a custom NumberFormatter how to use a custom FormatterFactory how to reset a number to null how to map the empty string to a special number how to commit values on valid texts how to set the class of the result To look under the hood of this component, this class exposes the bound properties text , value and editValid .
RelativeDateFormat: A Format that provides special handling for output shortcuts and relative input. If output shortcuts are enabled, Yesterday, Today and Tomorrow are formatted using their localized human-language print strings. If relative input is allowed, the parser accepts signed integers that encode a date relative to today; this input would otherwise be considered invalid. This class is intended for demonstration purposes only. It is superceded by the com.jgoodies.validation.formatter.RelativeDateFormatter .
EditorCopyingExample: Builds an editor that copies data from the domain back and forth. This approach is known as the "copying" approach or "push/pull". The event handling used to enable and disable the composer text field is invoked by a ChangeListener that hooks into the classical check box. Note that this lacks the domain logic, where the composer is set to null if the classical property is set to false. This logic is deferred until the component values are written to the edited Album via #updateModel when OK is pressed.
AlbumManagerModel: Provides the models and Actions for managing and editing Albums. Works with an underlying AlbumManager that provides a ListModel for the Albums and operations to add, remove, and change a Album. In other words, this class turns the raw data and operations form the AlbumManager into a form usable in a user interface. This model keeps the Albums in a SelectionInList, refers to another PresentationModel for editing the selected Album, and provides Actions for the Album operations: add, remove and edit the selected Album.
DemoFrame: Builds the main frame in the Simple Looks Demo. Demonstrates and tests different multi-platform issues by showing a variety of Swing widgets in different configurations. Also, this frame contains examples for Swing misuse, that can be automatically corrected by ClearLook. This class provides a couple of protected methods that create components or a builder. The full JGoodies Looks Demo overrides these methods to vend components or builders from the JGoodies UI framework that better handle different platforms.
CommitStylesExample: Demonstrates three different styles when to commit changes: on key typed, on focus lost, on OK/Apply pressed. Therefore we bind 3 JTextFields to 3 String typed ValueModels that honor the commit style. And we bind 3 JLabels directly to these ValueModels that display the current value. The ValueModels used in this example are requested from a PresentationModel that adapts text properties of a TextBean. This is just to demonstrate a consistent binding style. The same techniques work with any ValueModel.
DateExample: Demonstrates different configurations of JFormattedTextField to display and edit numbers. Shows how to use a custom DateFormat how to use a custom DateFormatter how to use a custom FormatterFactory how to reset a date to null how to map the empty string to a special date how to commit values on valid texts To look under the hood of this component, this class exposes the bound properties text , value and editValid .
PanelBuilderExample: Demonstrates a typical use of the FormLayout. Columns and rows are specified before the panel is filled with components, and the panel is filled with a PanelBuilder. Unlike the PlainExample, this implementation can delegate the component creation for text labels and titled separators to the builder. This panel building style is recommended for panels with a medium number of rows and components. If the panel has more rows, you may consider using a row variable to address the current row.

Home | Contact Us | Privacy Policy | Terms of Service