|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.List | +--com.ibm.dse.base.TraceList
This class displays the lines of a trace. This class is a descendant of List.
Field Summary | |
protected boolean |
anyItemSelected
|
protected boolean |
autoScroll
|
protected int |
maximum
|
protected int |
maxNumberOfLines
|
protected int |
minimum
|
protected int |
nextLine
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
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,
getItem,
getItemCount,
getItems,
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,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
disableEvents,
dispatchEvent,
doLayout,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
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,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setFont,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
update,
validate |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int nextLine
protected int maxNumberOfLines
protected boolean anyItemSelected
protected boolean autoScroll
protected int minimum
protected int maximum
Constructor Detail |
public TraceList()
public TraceList(int maxLines)
maxLines
- intMethod Detail |
public void addLine(java.lang.String line)
line
- java.lang.Stringpublic boolean anyItemSelected()
public void clearAll()
public void deselectAll()
public void enableAutoScroll(boolean b)
b
- booleanpublic boolean getAutoScroll()
public int getMaximum()
public int getMinimum()
public void getRange()
protected void initialize(int lines)
public void saveAll(java.io.OutputStream out) throws java.io.IOException
out
- java.io.OutputStreampublic void saveSelected(java.io.OutputStream out) throws java.io.IOException
out
- java.io.OutputStreampublic void saveVisible(java.io.OutputStream out, int from, int to) throws java.io.IOException
out
- java.io.OutputStreamfrom
- intto
- int
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |