|
|||||||||
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 | +--javax.swing.JFrame | +--infofilter.InfoFilterFrame
The InfoFilterFrame
class implements the GUI and the
logic for the InfoFilter application.
Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
(package private) javax.swing.JMenuItem |
aboutMenuItem
|
(package private) javax.swing.JMenuItem |
addAllMenuItem
|
(package private) javax.swing.JMenuItem |
addArticleMenuItem
|
(package private) java.util.Vector |
articles
|
(package private) javax.swing.JTable |
articleTable
|
(package private) javax.swing.JTextArea |
articleTextArea
|
(package private) java.awt.BorderLayout |
borderLayout1
|
(package private) static int |
COL_RATINGID
|
(package private) static int |
COL_SCOREID
|
(package private) static int |
COL_SUBJECTID
|
protected java.lang.String[] |
columnNameList
|
(package private) NewsArticle |
currentArt
|
(package private) javax.swing.JMenuItem |
cutMenuItem
|
protected java.lang.Object[][] |
data
|
(package private) javax.swing.JMenuItem |
downloadNewsGroupMenuItem
|
(package private) javax.swing.JMenuItem |
downloadURLMenuItem
|
(package private) javax.swing.JMenuItem |
exitMenuItem
|
(package private) javax.swing.ButtonGroup |
feedbackButtonGroup
|
(package private) FilterAgent |
filterAgent
|
(package private) javax.swing.JLabel |
filterAgentStatusLabel
|
(package private) int |
filterType
|
(package private) java.awt.GridLayout |
gridLayout1
|
(package private) java.awt.GridLayout |
gridLayout2
|
(package private) javax.swing.JLabel |
jLabel1
|
(package private) javax.swing.JMenu |
jMenu1
|
(package private) javax.swing.JMenu |
jMenu2
|
(package private) javax.swing.JMenu |
jMenu3
|
(package private) javax.swing.JMenu |
jMenu5
|
(package private) javax.swing.JPanel |
jPanel1
|
(package private) javax.swing.JPanel |
jPanel2
|
(package private) javax.swing.JScrollPane |
jScrollPane1
|
(package private) javax.swing.JScrollPane |
jScrollPane3
|
(package private) javax.swing.JMenuItem |
keywordsMenuItem
|
(package private) javax.swing.JMenuItem |
loadArticleMenuItem
|
(package private) javax.swing.JMenuBar |
menuBar1
|
(package private) javax.swing.JMenu |
menuFile
|
(package private) NewsReaderAgent |
newsReaderAgent
|
(package private) static int |
NUM_COLS
|
(package private) java.awt.FileDialog |
openFileDialog
|
(package private) javax.swing.JMenuItem |
resetMenuItem
|
(package private) javax.swing.JMenuItem |
saveArticleMenuItem
|
(package private) java.awt.FileDialog |
saveFileDialog
|
(package private) boolean |
scored
|
(package private) java.lang.String |
titleBarText
|
(package private) URLReaderAgent |
uRLReaderAgent
|
(package private) javax.swing.ButtonGroup |
useButtonGroup
|
(package private) javax.swing.JCheckBoxMenuItem |
useClustersCheckBoxMenuItem
|
(package private) javax.swing.JCheckBoxMenuItem |
useFeedbackCheckBoxMenuItem
|
(package private) javax.swing.JCheckBoxMenuItem |
useKeywordsCheckBoxMenuItem
|
Fields inherited from class javax.swing.JFrame |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR,
DEFAULT_CURSOR,
E_RESIZE_CURSOR,
HAND_CURSOR,
icon,
ICONIFIED,
mbManagement,
menuBar,
MOVE_CURSOR,
N_RESIZE_CURSOR,
NE_RESIZE_CURSOR,
NORMAL,
NW_RESIZE_CURSOR,
ownedWindows,
resizable,
S_RESIZE_CURSOR,
SE_RESIZE_CURSOR,
SW_RESIZE_CURSOR,
TEXT_CURSOR,
title,
W_RESIZE_CURSOR,
WAIT_CURSOR |
Fields inherited from class java.awt.Window |
inputContext,
OPENED,
ownedWindowList,
state,
warningString,
windowListener |
Fields inherited from class java.awt.Container |
component,
containerListener,
layoutMgr,
ncomponents |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
componentListener,
componentListenerK,
componentOrientation,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
InfoFilterFrame()
Creates a InfoFilterFrame object. |
Method Summary | |
(package private) void |
aboutMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Displays the About dialog. |
(package private) void |
addAllMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Adds all articles to the profile. |
protected void |
addArticle(NewsArticle art)
Scores an article and adds it to the table. |
(package private) void |
addArticleMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Adds an article to the profile. |
void |
clusterNetTrained()
Enables using clusters for filtering after the network was trained. |
(package private) void |
cutMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Cuts an article from the table. |
(package private) void |
downloadNewsGroupMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Opens the NewsReaderAgent Customizer dialog and allows the user to download articles. |
(package private) void |
downloadURLMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Opens the URLReaderAgent customizer and allows the user to get a web page. |
(package private) void |
exitMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Exits the application. |
void |
fileExit_actionPerformed(java.awt.event.ActionEvent e)
Exits the application. |
void |
filterArticles()
Filter the articles by scoring and sorting the articles, then refresh the table. |
void |
helpAbout_actionPerformed(java.awt.event.ActionEvent e)
Displays the About dialog. |
(package private) java.util.Vector |
insertionSort(java.util.Vector articles)
Sorts the articles by decreasing order of score. |
(package private) void |
keywordsMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Opens a filter agent customizer. |
(package private) void |
loadArticleMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Loads and scores an article. |
void |
postCIAgentEvent(CIAgentEvent event)
Processes a CIAgentEvent (does not queue it). |
void |
processCIAgentEvent(CIAgentEvent event)
Processes a CIAgentEvent. |
protected void |
processWindowEvent(java.awt.event.WindowEvent e)
Closes or repaints the window. |
void |
ratingNetTrained()
Enables using feedback for filtering after the network was trained. |
(package private) void |
resetMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Resets the application. |
(package private) void |
saveArticleMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Saves an article. |
void |
setUpTheTable()
Defines model for the articles JTable component. |
(package private) void |
trace(java.lang.String msg)
Displays a message in the bottom pane of the application. |
(package private) void |
useClustersCheckBoxMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Clusters the articles. |
(package private) void |
useFeedbackCheckBoxMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Filters the articles based on feedback. |
(package private) void |
useKeywordsCheckBoxMenuItem_actionPerformed(java.awt.event.ActionEvent e)
Filters the articles based on keywords. |
Methods inherited from class javax.swing.JFrame |
addImpl,
createRootPane,
frameInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
Methods inherited from class java.awt.Frame |
|
Methods inherited from class java.awt.Window |
addOwnedWindow,
addWindowListener,
applyResourceBundle,
applyResourceBundle,
connectOwnedWindow,
dispatchEventImpl,
dispose,
eventEnabled,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isActive,
isShowing,
nextFocus,
pack,
postEvent,
postWindowEvent,
preProcessKeyEvent,
processEvent,
removeOwnedWindow,
removeWindowListener,
setFocusOwner,
show,
toBack,
toFront,
transferFocus |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventToSelf,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
postsOldMouseEvents,
preferredSize,
print,
printComponents,
processContainerEvent,
proxyEnableEvents,
proxyRequestFocus,
remove,
remove,
removeAll,
removeContainerListener,
setFont,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkitImpl,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
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,
processMouseEvent,
processMouseMotionEvent,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
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 |
javax.swing.JMenuBar menuBar1
javax.swing.JMenu menuFile
javax.swing.JMenuItem resetMenuItem
java.awt.BorderLayout borderLayout1
javax.swing.JPanel jPanel1
javax.swing.JLabel jLabel1
javax.swing.JPanel jPanel2
javax.swing.JScrollPane jScrollPane3
javax.swing.JTextArea articleTextArea
java.awt.GridLayout gridLayout1
java.awt.GridLayout gridLayout2
javax.swing.JMenuItem downloadNewsGroupMenuItem
javax.swing.JMenuItem saveArticleMenuItem
javax.swing.JMenuItem loadArticleMenuItem
javax.swing.JMenuItem exitMenuItem
javax.swing.JMenu jMenu1
javax.swing.JMenu jMenu2
javax.swing.JMenu jMenu3
javax.swing.JMenu jMenu5
javax.swing.JMenuItem keywordsMenuItem
javax.swing.JMenuItem addArticleMenuItem
javax.swing.JMenuItem addAllMenuItem
javax.swing.ButtonGroup useButtonGroup
javax.swing.ButtonGroup feedbackButtonGroup
javax.swing.JMenuItem aboutMenuItem
javax.swing.JMenuItem cutMenuItem
java.awt.FileDialog openFileDialog
java.awt.FileDialog saveFileDialog
protected java.lang.String[] columnNameList
protected java.lang.Object[][] data
static final int NUM_COLS
static final int COL_SUBJECTID
static final int COL_SCOREID
static final int COL_RATINGID
java.util.Vector articles
FilterAgent filterAgent
NewsReaderAgent newsReaderAgent
URLReaderAgent uRLReaderAgent
NewsArticle currentArt
boolean scored
int filterType
javax.swing.JScrollPane jScrollPane1
javax.swing.JTable articleTable
javax.swing.JMenuItem downloadURLMenuItem
javax.swing.JCheckBoxMenuItem useKeywordsCheckBoxMenuItem
javax.swing.JCheckBoxMenuItem useClustersCheckBoxMenuItem
javax.swing.JCheckBoxMenuItem useFeedbackCheckBoxMenuItem
java.lang.String titleBarText
javax.swing.JLabel filterAgentStatusLabel
Constructor Detail |
public InfoFilterFrame()
InfoFilterFrame
object.Method Detail |
public void setUpTheTable()
public void fileExit_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when exit was selectedpublic void helpAbout_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object when About was selectedprotected void processWindowEvent(java.awt.event.WindowEvent e)
e
- the WindowEvent object generated to close or activate the windowvoid cutMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when Cut was selectedvoid useKeywordsCheckBoxMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when the Use keywords box
was checkedvoid useClustersCheckBoxMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when the Use clusters box
was checkedvoid useFeedbackCheckBoxMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when Use feedback box was
checkedpublic void clusterNetTrained()
public void ratingNetTrained()
public void filterArticles()
java.util.Vector insertionSort(java.util.Vector articles)
articles
- the Vector object that contains the articles to be sortedvoid keywordsMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when keywords was selectedvoid addArticleMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when Add article was selectedvoid addAllMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when Add all was selectedvoid exitMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when exit was selectedvoid loadArticleMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when load article was
selectedvoid saveArticleMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when save was selectedvoid resetMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when reset was selectedvoid aboutMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when About was selectedvoid downloadNewsGroupMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when download Newsgroup was selectedprotected void addArticle(NewsArticle art)
art
- the NewsArticle object to be addedvoid trace(java.lang.String msg)
msg
- the String object that contains the message to be displayedpublic void processCIAgentEvent(CIAgentEvent event)
event
- the CIAgentEvent object to be processedpublic void postCIAgentEvent(CIAgentEvent event)
event
- the CIAgentEvent object to be processedvoid downloadURLMenuItem_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when download URL was selected
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |