infofilter
Class FilterAgentCustomizer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--infofilter.FilterAgentCustomizer

public class FilterAgentCustomizer
extends javax.swing.JDialog
implements java.beans.Customizer

The FilterAgentCustomizer class implements customizer for filter agent.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  javax.swing.JButton addButton
           
(package private)  FilterAgent agent
           
(package private)  java.awt.BorderLayout borderLayout1
           
(package private)  javax.swing.JButton cancelButton
           
(package private)  javax.swing.JButton changeButton
           
(package private)  javax.swing.JButton createProfileButton
           
(package private)  java.awt.FlowLayout flowLayout1
           
(package private)  javax.swing.JLabel jLabel1
           
(package private)  javax.swing.JPanel jPanel1
           
(package private)  javax.swing.JPanel jPanel2
           
(package private)  javax.swing.JScrollPane jScrollPane1
           
(package private)  javax.swing.JList keywordList
           
(package private)  java.util.Vector keywords
           
(package private)  javax.swing.JTextField keywordTextField
           
(package private)  java.util.Vector originalKeywords
           
(package private)  javax.swing.JPanel panel1
           
(package private)  javax.swing.JButton removeButton
           
(package private)  javax.swing.JButton trainNNButton
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
modal, resizable, title
 
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
FilterAgentCustomizer()
          Creates a FilterAgentCustomizer object.
FilterAgentCustomizer(java.awt.Frame frame, java.lang.String title, boolean modal)
          Creates a FilterAgentCustomizer object with the given frame, title, and modality.
 
Method Summary
(package private)  void addButton_actionPerformed(java.awt.event.ActionEvent e)
          Adds a keyword when the Add button is pressed.
(package private)  void cancelButton_actionPerformed(java.awt.event.ActionEvent e)
          Closes the window when Cancel is pressed.
(package private)  void changeButton_actionPerformed(java.awt.event.ActionEvent e)
          Changes a keyword when the Change button is pressed.
(package private)  void createProfileButton_actionPerformed(java.awt.event.ActionEvent e)
          Creates a profile when the Create Profile button is pressed.
 void getDataFromBean()
          Gets data from the bean and sets the GUI controls.
(package private)  void jbInit()
          Initializes the GUI controls for the customizer.
(package private)  void keywordList_mouseClicked(java.awt.event.MouseEvent e)
          Sets the keyword text, depending on the mouse click.
(package private)  void removeButton_actionPerformed(java.awt.event.ActionEvent e)
          Removes a keyword from the list.
 void setDataOnBean()
          Takes data from GUI and sets properties on the agent bean.
 void setObject(java.lang.Object obj)
          Sets the object to be customized
(package private)  void trainNNButton_actionPerformed(java.awt.event.ActionEvent e)
          Sets the flags for the FilterAgent to start training the neural nets on its own thread.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processWindowEvent, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
, addNotify, constructComponentName, getTitle, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, finalize, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, setFocusOwner, 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, removeNotify, 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, 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, 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

panel1

javax.swing.JPanel panel1

borderLayout1

java.awt.BorderLayout borderLayout1

jPanel1

javax.swing.JPanel jPanel1

createProfileButton

javax.swing.JButton createProfileButton

cancelButton

javax.swing.JButton cancelButton

jPanel2

javax.swing.JPanel jPanel2

jLabel1

javax.swing.JLabel jLabel1

keywordTextField

javax.swing.JTextField keywordTextField

jScrollPane1

javax.swing.JScrollPane jScrollPane1

keywordList

javax.swing.JList keywordList

addButton

javax.swing.JButton addButton

removeButton

javax.swing.JButton removeButton

flowLayout1

java.awt.FlowLayout flowLayout1

changeButton

javax.swing.JButton changeButton

keywords

java.util.Vector keywords

originalKeywords

java.util.Vector originalKeywords

agent

FilterAgent agent

trainNNButton

javax.swing.JButton trainNNButton
Constructor Detail

FilterAgentCustomizer

public FilterAgentCustomizer(java.awt.Frame frame,
                             java.lang.String title,
                             boolean modal)
Creates a FilterAgentCustomizer object with the given frame, title, and modality.
Parameters:
frame - the Frame object for the customizer
title - the String object that contains the title of the customizer
modal - the boolean flag that indicates the modality

FilterAgentCustomizer

public FilterAgentCustomizer()
Creates a FilterAgentCustomizer object.
Method Detail

setObject

public void setObject(java.lang.Object obj)
Sets the object to be customized
Specified by:
setObject in interface java.beans.Customizer
Parameters:
obj - the Object object to be customized

jbInit

void jbInit()
      throws java.lang.Exception
Initializes the GUI controls for the customizer.
Throws:
java.lang.Exception - if any error occurred during initialization

cancelButton_actionPerformed

void cancelButton_actionPerformed(java.awt.event.ActionEvent e)
Closes the window when Cancel is pressed.
Parameters:
e - the ActionEvent object generated when the cancel button was pressed

trainNNButton_actionPerformed

void trainNNButton_actionPerformed(java.awt.event.ActionEvent e)
Sets the flags for the FilterAgent to start training the neural nets on its own thread.
Parameters:
e - the ActionEvent object generated when the train button was pressed

createProfileButton_actionPerformed

void createProfileButton_actionPerformed(java.awt.event.ActionEvent e)
Creates a profile when the Create Profile button is pressed.
Parameters:
e - the ActionEvent object generated when the create profile button is pressed

addButton_actionPerformed

void addButton_actionPerformed(java.awt.event.ActionEvent e)
Adds a keyword when the Add button is pressed.
Parameters:
e - the ActionEvent object generated when the add button is pressed

changeButton_actionPerformed

void changeButton_actionPerformed(java.awt.event.ActionEvent e)
Changes a keyword when the Change button is pressed.
Parameters:
e - the ActionEvent object generated when the change button is pressed

removeButton_actionPerformed

void removeButton_actionPerformed(java.awt.event.ActionEvent e)
Removes a keyword from the list.
Parameters:
e - the ActionEvent object generated when the remove button is pressed

keywordList_mouseClicked

void keywordList_mouseClicked(java.awt.event.MouseEvent e)
Sets the keyword text, depending on the mouse click.
Parameters:
e - the MouseEvent object generated from the mouse click

getDataFromBean

public void getDataFromBean()
Gets data from the bean and sets the GUI controls.

setDataOnBean

public void setDataOnBean()
Takes data from GUI and sets properties on the agent bean.