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

Quick Search    Search Deep

ledestin.swing.* (20)ledestin.swing.example.* (1)ledestin.swing.jdom.* (2)

Package Samples:

ledestin.swing
ledestin.swing.example
ledestin.swing.jdom

Classes:

JEditableTable: This class binds some keyboard events to the list of actions (add, edit and remove). Mutable Table framework is comprised of a CollectionTableModel , EditableDialog and JEditableTable . CollectionTableModel is a wrapper for a Collection of objects that you might want to operate on (i.e. add/edit/remove). By default CollectioinTableModel's CollectionTableModel.getValueAt(int, int) 55 returns corresponding object's Object.toString() > Object.toString() 55 , so the model has only one column. In a regular TableModel to allow editing of data you implement TableModel.setValueAt(Object, int, int) > TableModel.setValueAt(Object, ...
ExampleFileFilter: A convenience implementation of FileFilter that filters out all files except for those type extensions that it knows about. Extensions are of the type ".foo", which is typically found on Windows and Unix boxes, but not on Macinthosh. Case is ignored. Example - create a new filter that filerts out all files but gif and jpg image files: JFileChooser chooser = new JFileChooser(); ExampleFileFilter filter = new ExampleFileFilter( new String{"gif", "jpg"}, "JPEG & GIF Images") chooser.addChoosableFileFilter(filter); chooser.showOpenDialog(this);
CollectionTableModel: Allows to show a Collection in a JEditableTable . It wraps your data source Collection that allows it to be shown in a table. There is always one column and getValueAt() always returns appropriate Collection item (should have toString() implemented). If you'd like to change this behavior you'll have to implement the following methods: public int getColumnCount(); public Object getValueAt(int row, int column);
EditableListener: This listener type is for Editable Swing components, i.e. for those that support such actions as add, edit, remove. There are currently JEditableTable and JEditableTree. All functions have boolean return type, and Editable components will check for it before performing actual action to the component's data model. If any of the listeners will return false, action will not be performed, i.e. actual delete will only be performed if all registered listeners will return true at elementIsRemoved.
EditableDialog: JDOMTable uses custom dialogs to provide UI for adding, editing and removing table elements. When a dialog is being set up it will be passed an org.jdom.Element to edit (or null if an element is to be added), and after its editing the getElement method is used to retrieve the results from a dialog. Consider extending JEditableDialog.
EditableTreeNode: Implement the interface only for nodes that can have children. EditableTreeNode s are supposed to have child nodes of one particular type. In an empty JEditableTree its nodes must be able to create their children.
YearsComboBoxModel: The class provides a model for JComboBox allowing to select from a range of years. firstYear and lastYear properties can be set, confining the range of years.
JListDataExchangePanel: A panel containing two JLists and buttons to exchange elements between the lists. The source list is on the left and destination list in on the right.
JDOM2SwingMap: The class implements a map of data from XML (JDOM) source to a number of JTextFields.
JDOMTableModel: This class implements a table model for a List of
SetTreeNode: A tree node storing its children as a TreeSet.
ChildNodeCreationException
Dialogs
EditableEvent
JEditableDialog
JEditableTree
ListComboBoxModel
MutableListModel

Home | Contact Us | Privacy Policy | Terms of Service