KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ca > directory > jxplorer > DataSink


1 package com.ca.directory.jxplorer;
2
3 import com.ca.commons.naming.DXEntry;
4
5 /**
6  * DataSink defines the interface used by objects that
7  * are consumers of information from a tree, such as display
8  * panels that show information about a data node, or the off-line
9  * data store used to view ldif files off-line.
10  */

11
12 public interface DataSink
13 {
14     /**
15      * Displays information about a given tree node,
16      * expressed as a DXEntry (an attribute set and associated distinguished
17      * name of a node). The method also provides a data Source
18      * which may be used to update the node. This data Source
19      * may be null for non-editable data.
20      *
21      * @param entry the directory entry to display. If null, indicates that a
22      * blank or 'empty' entry should be displayed.
23      * @param ds the datasource used for data modification/schema access etc.
24      * May be null, in which case no schema checking/prompting will be done,
25      * and no editing will be possible.
26      */

27      
28     public void displayEntry(DXEntry entry, DataSource ds);
29
30     /**
31      * Indicates whether the editor can create a new entry, given a
32      * unique name.
33      */

34      
35     public boolean canCreateEntry();
36 }
Popular Tags