Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libjava / gnu / gcj / xlib / XID.java
blobf7bb9cfc994648f71366d92a65d90fd7f8c318db
1 /* Copyright (C) 2000 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7 details. */
9 package gnu.gcj.xlib;
11 /**
12 * Common base class for all resources that are stored on the server
13 * and refered to on the client side using XIDs.
15 * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
17 public class XID
19 public XID(Display display, int xid)
21 this.display = display;
22 this.xid = xid;
25 public final int getXID()
27 return xid;
30 public final Display getDisplay()
32 return display;
35 protected Display display;
36 protected int xid;
38 private Object clientData;
39 public final Object getClientData()
41 return clientData;
43 public final void setClientData(Object clientData)
45 this.clientData = clientData;
48 protected String params()
50 return "display=" + display + ",xid=" + Integer.toHexString(xid);
53 public String toString()
55 return getClass().getName() +
56 "[" + params() + "]";