01: /*
02: * Stingray Software Objective Blend
03: * Copyright (C) 1996 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 : LingFeng Wang
12: * Description : Tree.java - implements the text class
13: *
14: * CHANGELOG:
15: * 5/15/96 KLS Created
16: */
17:
18: /**
19: Column class
20: Used with the ListBox class, the Column class stores information
21: on the "column" basis. The developer should not access the Column
22: data directly.
23: */package ob.listbox;
24:
25: import java.awt.*;
26: import com.sun.portal.log.common.PortalLogger;
27: import java.io.Serializable;
28:
29: public class Column implements Serializable {
30: protected int m_nCX = 0;
31: protected String m_strText = "";// header text
32: protected Font m_fonFont = new Font("Dialog", Font.PLAIN, 12);
33: protected int m_cchTextMax = 0;
34: protected int m_iSubItem = ListBox.LVXC_UNINITIALIZED;
35: protected int m_nFmt = ListBox.FMT_LEFT;
36:
37: public void setWidth(int newWidth) {
38: m_nCX = newWidth;
39: }
40:
41: public int getWidth() {
42: return m_nCX;
43: }
44:
45: public void setText(String strText) {
46: m_strText = strText;
47: }
48: }
|