Class sunsoft.jws.visual.rt.shadow.ColumnListShadow
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.shadow.ColumnListShadow

java.lang.Object
   |
   +----sunsoft.jws.visual.rt.base.AttributeManager
           |
           +----sunsoft.jws.visual.rt.base.Shadow
                   |
                   +----sunsoft.jws.visual.rt.shadow.java.awt.ComponentShadow
                           |
                           +----sunsoft.jws.visual.rt.shadow.java.awt.CanvasShadow
                                   |
                                   +----sunsoft.jws.visual.rt.shadow.ColumnListShadow

public class ColumnListShadow
extends CanvasShadow
Wraps an AWT widget. The attributes available for this class are listed below. In the type column, type names beginning with "sunsoft.jws.visual.rt" have been abbreviated to begin with "rt".
    name            type                      default value
    -----------------------------------------------------------------------
    autoWidth       java.lang.Boolean         true 
    visibleChars    java.lang.Integer         0
    visibleRows     java.lang.Integer         5 
    headers         [Ljava.lang.String;       header1,header2,header3 
    highlightItems  java.lang.Boolean         false 
    selectable      java.lang.Boolean         true 
    showHeaders     java.lang.Boolean         true 
headers: An array of Strings. The size of this array determines the number of columns in the list. There will be one additional, hidden column that can be used for any Object. The length of the header string defines the initial width of the column. To make it wider, add spaces to the end of the string. If a header field is of the form "name=header", then only the "header" part will actually be used for the visible header. The "name" part is available through getNames() or getNameColumn() interfaces on the ColumnList widget. If the "name" part is started with a '*', then that column is considered a "key column." When addItem() is used to add a new row of data to the column list, a check is made to see if the key columns of data in the new item exactly match all of the key columns in any of the current rows. If there is a match, the new data replaces what was in the matched row, rather than the new data being added to the end in a new row.

selectable: If true, records (rows) can be selected with the mouse. A LIST_EVENT gets posted.

highlight_items: If true, new entries will be highlighted in orange, slowly fading out.

showHeaders: If set to false, the headers will not be shown.

autoWidth: when set to true, a column will automatically become wider to accomodate a new piece of data in that column that doesn't fit within the current width of the column.

Check the super class for additional attributes.

See Also:
ColumnList

Constructor Index

 o ColumnListShadow()

Method Index

 o createBody()
Creates the AWT component for this shadow.
 o getOnBody(String)
Gets attributes from this shadow's body.
 o setOnBody(String, Object)
Sets attributes on this shadow's body.

Constructors

 o ColumnListShadow
  public ColumnListShadow()

Methods

 o getOnBody
  protected Object getOnBody(String key)
Gets attributes from this shadow's body.
Overrides:
getOnBody in class ComponentShadow
 o setOnBody
  protected void setOnBody(String key,
                           Object value)
Sets attributes on this shadow's body.
Overrides:
setOnBody in class ComponentShadow
 o createBody
  public void createBody()
Creates the AWT component for this shadow.
Overrides:
createBody in class CanvasShadow

All Packages  Class Hierarchy  This Package  Previous  Next  Index