IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.base
Class TraceList

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.List
          extended bycom.ibm.dse.base.TraceList
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable

public class TraceList
extends java.awt.List

This class displays the lines of a trace. This class is a descendant of List.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.List
java.awt.List.AccessibleAWTList
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  boolean anyItemSelected
           
protected  boolean autoScroll
           
(package private) static int MAX_LINES
           
protected  int maximum
           
protected  int maxNumberOfLines
           
protected  int minimum
           
protected  int nextLine
           
 
Fields inherited from class java.awt.List
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TraceList()
          This is the default constructor used to create a TraceList object.
TraceList(int maxLines)
          This constructor creates a TraceList object that has a specified number of lines before wrapping occurs.
 
Method Summary
 void addLine(java.lang.String line)
          Adds or inserts the line into the list.
 boolean anyItemSelected()
          Returns true if there is at least one item selected in the list.
 void clearAll()
          Clears the list.
 void deselectAll()
          Deselects all the items selected by the user.
 void enableAutoScroll(boolean b)
          Enables the vertical scrolling of items whenever a new item is inserted in the list if the parameter is true.
 boolean getAutoScroll()
          Returns the value of the autoScroll attribute.
 int getMaximum()
          Returns the maximum size of the TraceList.
 int getMinimum()
          Returns the minimum size of the TraceList.
 void getRange()
          Computes the value of the range attribute.
protected  void initialize(int lines)
          Initializes the attributes of the object with the appropriate value.
 void saveAll(java.io.OutputStream out)
          Writes all the items of the list to out.
 void saveSelected(java.io.OutputStream out)
          Writes the selected items of the list to out.
 void saveVisible(java.io.OutputStream out, int from, int to)
          Writes the visible items in the list out.
 
Methods inherited from class java.awt.List
add, add, addActionListener, addItem, addItem, addItemListener, addNotify, allowsMultipleSelections, clear, countItems, delItem, delItems, deselect, getAccessibleContext, getActionListeners, getItem, getItemCount, getItemListeners, getItems, getListeners, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, getRows, getSelectedIndex, getSelectedIndexes, getSelectedItem, getSelectedItems, getSelectedObjects, getVisibleIndex, isIndexSelected, isMultipleMode, isSelected, makeVisible, minimumSize, minimumSize, paramString, preferredSize, preferredSize, processActionEvent, processEvent, processItemEvent, remove, remove, removeActionListener, removeAll, removeItemListener, removeNotify, replaceItem, select, setMultipleMode, setMultipleSelections
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_LINES

static final int MAX_LINES
See Also:
Constant Field Values

nextLine

protected int nextLine

maxNumberOfLines

protected int maxNumberOfLines

anyItemSelected

protected boolean anyItemSelected

autoScroll

protected boolean autoScroll

minimum

protected int minimum

maximum

protected int maximum
Constructor Detail

TraceList

public TraceList()
This is the default constructor used to create a TraceList object.


TraceList

public TraceList(int maxLines)
This constructor creates a TraceList object that has a specified number of lines before wrapping occurs.

Parameters:
maxLines - int
Method Detail

addLine

public void addLine(java.lang.String line)
Adds or inserts the line into the list.

Parameters:
line - java.lang.String

anyItemSelected

public boolean anyItemSelected()
Returns true if there is at least one item selected in the list.


clearAll

public void clearAll()
Clears the list.


deselectAll

public void deselectAll()
Deselects all the items selected by the user.


enableAutoScroll

public void enableAutoScroll(boolean b)
Enables the vertical scrolling of items whenever a new item is inserted in the list if the parameter is true.

Parameters:
b - boolean

getAutoScroll

public boolean getAutoScroll()
Returns the value of the autoScroll attribute. If the value is true, the scroll is enabled.

Returns:
boolean

getMaximum

public int getMaximum()
Returns the maximum size of the TraceList.

Returns:
int

getMinimum

public int getMinimum()
Returns the minimum size of the TraceList.

Returns:
int

getRange

public void getRange()
Computes the value of the range attribute.


initialize

protected void initialize(int lines)
Initializes the attributes of the object with the appropriate value.


saveAll

public void saveAll(java.io.OutputStream out)
             throws java.io.IOException
Writes all the items of the list to out.

Parameters:
out - java.io.OutputStream
Throws:
java.io.IOException

saveSelected

public void saveSelected(java.io.OutputStream out)
                  throws java.io.IOException
Writes the selected items of the list to out.

Parameters:
out - java.io.OutputStream
Throws:
java.io.IOException

saveVisible

public void saveVisible(java.io.OutputStream out,
                        int from,
                        int to)
                 throws java.io.IOException
Writes the visible items in the list out. The starting and ending visible items are identified by the from and to parameters.

Parameters:
out - java.io.OutputStream
from - int
to - int
Throws:
java.io.IOException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005