KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ca > directory > jxplorer > editor > abstractbinaryeditor


1 package com.ca.directory.jxplorer.editor;
2
3 import java.awt.*;
4 import java.awt.event.*;
5 import javax.swing.*;
6 import javax.swing.event.*;
7
8
9
10 /**
11  * <p>This interface defines the basis for BinaryEditors.
12  * BinaryEditors implementing this interface, that
13  * have the name [object class]editor.class, will be
14  * dynamically loaded, providing that it implements
15  * (in addition to this interface) a no-argument constructor.</p>
16  *
17  * <p><b>IMPORTANT</b></p>
18  *
19  * <p>Editors <b>MUST</b> have completely lower case class names, or they will not be able to be matched
20  * with the corresponding attribute name by JXplorer. (This is because attribute names are in arbitrary
21  * case, and there is no way to find or load a class in a case insensitive way using the standard java
22  * class loader.)</p>
23  */

24 public interface abstractbinaryeditor
25 {
26     /**
27      * the main function; takes an EditableBinary object that
28      * can then be, well, edited.
29      *
30      * @param editMe the array of bytes to be modified.
31      */

32      
33     public void setValue(editablebinary editMe);
34     
35     /**
36      * An optional utility ftn that returns the edited object...
37      * may not be used in normal operation since setValue(...)
38      * can update the EditableBinary object.
39      */

40      
41 // public EditableBinary getValue();
42
}
Popular Tags