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

Quick Search    Search Deep

Source code: ledestin/swing/EditableDialog.java


1   /*
2   * Copyright (C) 2000-2001 Dmitry Macsema.  All Rights Reserved.  
3   * 
4   * Redistribution and use in source and binary forms, with or without
5   * modification, are permitted under the terms of the following
6   * Open Source license:
7   *
8   * The GNU General Public License, version 2, or any later version, as
9   * published by the Free Software Foundation
10  * (http://www.fsf.org/copyleft/gpl.html);
11  */
12  
13  package ledestin.swing;
14  
15  /**
16  JDOMTable uses custom dialogs to provide UI for adding, editing and
17  removing table elements. When a dialog is being set up it will be
18  passed an org.jdom.Element to edit (or null if an element is to be
19  added), and after its editing the getElement method is used to 
20  retrieve the results from a dialog.<br>
21  Consider extending JEditableDialog.
22  */
23  public interface EditableDialog {
24    public Object getData();
25    public void setData(Object data);
26    public int getReturnValue();
27  }