01: /*
02: * Stingray Software Objective Blend
03: * Copyright (C) 1997 Stingray Software, Inc.
04: * All Rights Reserved
05: *
06: * This source code is only intended as a supplement to
07: * the Stingray Objective Blend product. See the Objective
08: * Blend html help documentation for detailed information regarding
09: * using OB classes.
10: *
11: * Author : Kerry Smith
12: * Description : ListSubItem.java - used in list box
13: *
14: * CHANGELOG:
15: * 7/09/96 LFW Created
16: * 3/12/97 JDK1.1
17: *
18: */
19:
20: /**
21: * The ListSubItem class is a class structure used internally by
22: * the ListBox class. Under most circumstances a typical development
23: * effort will not need to know the internal workings of ListSubItem or
24: * the values it stores. </br>
25: * The hierarchy of a ListBox is as follows: A ListBox is a collection
26: * of ListItem references. A ListItem describes the properties for an
27: * overall row, and is broken down to contain a Vector array of ListSubItems
28: * which describe individual columns in the row.
29: * @see ob.listbox.ListBox
30: * @see ob.listbox.ListItem
31: *
32: */package ob.listbox;
33:
34: import java.awt.*;
35: import com.sun.portal.log.common.PortalLogger;
36: import java.awt.event.*;
37: import java.io.Serializable;
38: import java.util.*;
39: import ob.obbase.*;
40: import ob.text.*;
41:
42: // Class used internally for listbox subitems
43: public class ListSubItem implements Serializable {
44: String pszText;
45: int cchTextMax;
46: Rectangle rcText;
47:
48: /**
49: * retrieves the text for the subitem
50: * @return text as type String
51: */
52: public String getText() {
53: return pszText;
54: }
55:
56: /**
57: * sets the text for the subitem
58: * @param s text as type String
59: */
60: public void setText(String s) {
61: pszText = s;
62: }
63:
64: /**
65: * constructor for the subitem
66: */
67: public ListSubItem() {
68: pszText = " ";
69: cchTextMax = 0;
70: rcText = new Rectangle();
71: }
72:
73: /**
74: * constructor for the subitem
75: * @param s text used in the subitem
76: */
77: public ListSubItem(String s) {
78: pszText = s;
79: cchTextMax = 0;
80: rcText = new Rectangle();
81: }
82: }
|