|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--com.ibm.dse.base.TraceFrame
This class is used to write trace lines to a list in a window. There is a maximum number of lines that can be written into the list. When this number is reached, the list is wrapped. This class is descendant of Frame.
Field Summary | |
protected java.awt.Frame |
ComponentsFrame
|
protected boolean |
doTraces
|
protected java.awt.Menu |
editMenu
|
protected java.lang.String |
File
|
protected java.awt.Menu |
fileMenu
|
protected boolean |
itemsSelected
|
protected java.awt.MenuBar |
mainMenu
|
protected boolean |
showCTF
|
protected boolean |
showDSE
|
protected TraceList |
traceList
|
protected java.awt.Menu |
traceMenu
|
protected com.ibm.dse.base.TracesWindow |
trcWindow
|
protected java.awt.Menu |
viewMenu
|
protected boolean |
zeroItems
|
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR,
DEFAULT_CURSOR,
E_RESIZE_CURSOR,
HAND_CURSOR,
ICONIFIED,
MOVE_CURSOR,
N_RESIZE_CURSOR,
NE_RESIZE_CURSOR,
NORMAL,
NW_RESIZE_CURSOR,
S_RESIZE_CURSOR,
SE_RESIZE_CURSOR,
SW_RESIZE_CURSOR,
TEXT_CURSOR,
W_RESIZE_CURSOR,
WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
TraceFrame(java.lang.String title,
com.ibm.dse.base.TracesWindow trc,
int lines)
This constructor creates a TraceFrame object with the String used as the title in the title bar of the window. |
|
TraceFrame(com.ibm.dse.base.TracesWindow trc,
int lines)
This is the default constructor used to create a TraceFrame object. |
Method Summary | |
void |
addLine(java.lang.String line)
Adds a line from the trace to the display area. |
protected boolean |
changeFile()
Changes the file in which the lines of the trace are saved. |
void |
cleanList()
Clears the display area. |
void |
closeFrame()
Closes the frame |
protected void |
deselectList()
Deselects all the items selected in the display area. |
protected void |
doEditMenu()
Intializes the menu labeled Edit. |
protected void |
doFileMenu()
Initializes the menu labeled File. |
protected void |
doTraceMenu()
Initializes the menu labeled Trace. |
protected void |
doViewMenu()
Initializes the menu labeled View. |
void |
enableMenuTraceToFile(boolean b)
Enables the Disk option of the Trace menu if the enableMenuTraceToFile is set to true. |
boolean |
getMenuTraceLockScrolling()
Returns the state of lock scrolling option. |
boolean |
handleEvent(java.awt.Event e)
Process the events sent by the items of the frame. |
protected void |
iniMainMenu()
Initializes the menu bar of the frame. |
protected void |
initializeControls(int lines)
Initializes the items of the frame. |
protected void |
initTraceList(int lines)
Initializes the display area used to display the lines of the trace. |
void |
reset()
Frees the resources used by this class. |
void |
saveAll()
Saves all the trace lines. |
void |
saveSelected()
Saves all the selected items. |
void |
saveVisible()
Saves the items indicated by the user. |
void |
setMaximumNumberOfLines(int lines)
Sets the maximum number of lines that can be added to the list before wrapping occurs. |
void |
setMenuTraceLockScrolling(boolean state)
Enables or disables the vertical scrolling, and refreshs lock scrolling option in menu. |
void |
setMenuTraceToDisplay(boolean b)
Puts a check by the Display option on the Trace menu if the menuTraceToDisplay is set to true. |
void |
setMenuTraceToFile(boolean b)
Puts a check by the Disk option on the Trace menu if the menuTraceToFile is set to true. |
void |
setMenuViewOriginator(boolean state)
Puts or removes a check in the originator option menu. |
Methods inherited from class java.awt.Frame |
addNotify,
finalize,
getCursorType,
getFrames,
getIconImage,
getMenuBar,
getState,
getTitle,
isResizable,
paramString,
remove,
removeNotify,
setCursor,
setIconImage,
setMenuBar,
setResizable,
setState,
setTitle |
Methods inherited from class java.awt.Window |
addWindowListener,
applyResourceBundle,
applyResourceBundle,
dispose,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
hide,
isShowing,
pack,
postEvent,
processEvent,
processWindowEvent,
removeWindowListener,
setCursor,
show,
toBack,
toFront |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
remove,
remove,
removeAll,
removeContainerListener,
setFont,
setLayout,
update,
validate,
validateTree |
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,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected boolean itemsSelected
protected boolean zeroItems
protected TraceList traceList
protected java.awt.MenuBar mainMenu
protected java.awt.Menu fileMenu
protected java.awt.Menu editMenu
protected java.awt.Menu viewMenu
protected java.awt.Menu traceMenu
protected java.lang.String File
protected boolean doTraces
protected boolean showDSE
protected boolean showCTF
protected com.ibm.dse.base.TracesWindow trcWindow
protected java.awt.Frame ComponentsFrame
Constructor Detail |
public TraceFrame(com.ibm.dse.base.TracesWindow trc, int lines)
trc
- com.ibm.dse.base.TracesWidnowlines
- intpublic TraceFrame(java.lang.String title, com.ibm.dse.base.TracesWindow trc, int lines)
title
- java.lang.Stringtrc
- com.ibm.dse.base.TracesWindowlines
- intMethod Detail |
public void addLine(java.lang.String line)
line
- java.lang.Stringprotected boolean changeFile()
public void cleanList()
public void closeFrame()
protected void deselectList()
protected void doEditMenu()
protected void doFileMenu()
protected void doTraceMenu()
protected void doViewMenu()
public void enableMenuTraceToFile(boolean b)
public boolean getMenuTraceLockScrolling()
public boolean handleEvent(java.awt.Event e)
protected void iniMainMenu()
protected void initializeControls(int lines)
lines
- intprotected void initTraceList(int lines)
public void reset()
public void saveAll()
public void saveSelected()
public void saveVisible()
public void setMaximumNumberOfLines(int lines)
lines
- intpublic void setMenuTraceLockScrolling(boolean state)
state
- boolean If it value is true then vertical scrolling is enabled, and if the value is false then vertical
scrolling is disabled.public void setMenuTraceToDisplay(boolean b)
b
- booleanpublic void setMenuTraceToFile(boolean b)
b
- booleanpublic void setMenuViewOriginator(boolean state)
state
- boolean If it value is true then puts a check, and if it is false then removes a check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |