org.ssonet.baseConf
Class ConfigurationAnonymity

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.ssonet.baseConf.ConfigurationAnonymity
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, javax.swing.event.ListSelectionListener, java.awt.MenuContainer, java.io.Serializable

public class ConfigurationAnonymity
extends javax.swing.JPanel
implements java.awt.event.ActionListener, javax.swing.event.ListSelectionListener, java.awt.event.ItemListener

Configuration panel for anonymity mechanisms. User can configure its anonymity service preferences. He can configure:

See Also:
Serialized Form

Field Summary
(package private)  javax.swing.JCheckBox abortAnonLevelCheckBox
           
(package private)  org.ssonet.awt.JIntField abortAnonLevelIntField
           
(package private)  javax.swing.border.TitledBorder anonLevelBorder
           
(package private) static java.util.ResourceBundle anonresource
           
 java.util.Hashtable anonymityConfiguration
          the anonymity configuration of the user
(package private)  javax.swing.JLabel anonymityPanelLabel
           
 org.ssonet.awt.JPreferenceList anonymityPreferenceList
          The preference list gui object
(package private)  java.io.BufferedReader availableFile
           
(package private)  anon.AnonServer[] availableMixCascades
          Array of mixcascade infos
(package private)  java.lang.String[] availableMixCascadesNames
          Sting array of mix cascade names (used for the preference list)
static int CASCADE_DONT_CARE
          Mix-Cascade selection mode: dont care
static int CASCADE_USE_CERTIFIED
          Mix-Cascade selection mode: use only certified cascades
static int CASCADE_USE_PREFERENCE_LIST
          Mix-Cascade selection mode: user selects manually a preference list
(package private)  javax.swing.border.TitledBorder connectionInfoServiceBorder
           
 boolean debug
           
(package private)  javax.swing.JRadioButton dontCareRadioButton
           
(package private)  javax.swing.JButton helpButton
           
(package private) static org.ssonet.help.Help hp
           
(package private)  javax.swing.JLabel ifAnonLevel1Label
           
(package private)  javax.swing.JLabel ifAnonLevel2Label
           
(package private)  javax.swing.JLabel infoServiceHostLabel
           
(package private)  javax.swing.JTextField infoServiceHostTextField
           
(package private)  org.ssonet.awt.JIntField infoServicePortIntField
           
(package private)  javax.swing.JLabel infoServicePortLabel
           
(package private)  java.lang.String[] list
           
(package private)  javax.swing.JFrame parentFrame
           
(package private)  javax.swing.JButton reloadAvailableCascadesButton
           
(package private)  javax.swing.border.TitledBorder selectCascadeBorder
           
(package private)  javax.swing.JRadioButton selectManuallyRadioButton
           
(package private)  javax.swing.JRadioButton useCertifiedRadioButton
           
(package private)  javax.swing.JCheckBox warnAnonLevelCheckBox
           
(package private)  org.ssonet.awt.JIntField warnAnonLevelIntField
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
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
ConfigurationAnonymity(javax.swing.JFrame parentFrame, java.util.Hashtable config)
          Create and initialize a panel for configuration of anonymity mechanisms.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Performs actions when buttons have been pressed.
 void changeLanguage(java.util.Locale language)
          Changes the language resources.
 java.util.Hashtable getConfig()
           
 void itemStateChanged(java.awt.event.ItemEvent event)
           
static void main(java.lang.String[] args)
          Main method for debuging purposes.
 void setConfig(java.util.Hashtable config)
          Sets the anonymity configuration.
 void valueChanged(javax.swing.event.ListSelectionEvent event)
           
static void viewHelp(java.lang.String theme, java.lang.String subtheme)
          Show a help window.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

public boolean debug

anonymityConfiguration

public java.util.Hashtable anonymityConfiguration
the anonymity configuration of the user


anonymityPreferenceList

public org.ssonet.awt.JPreferenceList anonymityPreferenceList
The preference list gui object


anonresource

static java.util.ResourceBundle anonresource

parentFrame

javax.swing.JFrame parentFrame

anonymityPanelLabel

javax.swing.JLabel anonymityPanelLabel

anonLevelBorder

javax.swing.border.TitledBorder anonLevelBorder

abortAnonLevelCheckBox

javax.swing.JCheckBox abortAnonLevelCheckBox

ifAnonLevel1Label

javax.swing.JLabel ifAnonLevel1Label

abortAnonLevelIntField

org.ssonet.awt.JIntField abortAnonLevelIntField

warnAnonLevelCheckBox

javax.swing.JCheckBox warnAnonLevelCheckBox

ifAnonLevel2Label

javax.swing.JLabel ifAnonLevel2Label

warnAnonLevelIntField

org.ssonet.awt.JIntField warnAnonLevelIntField

selectCascadeBorder

javax.swing.border.TitledBorder selectCascadeBorder

dontCareRadioButton

javax.swing.JRadioButton dontCareRadioButton

useCertifiedRadioButton

javax.swing.JRadioButton useCertifiedRadioButton

selectManuallyRadioButton

javax.swing.JRadioButton selectManuallyRadioButton

connectionInfoServiceBorder

javax.swing.border.TitledBorder connectionInfoServiceBorder

infoServiceHostLabel

javax.swing.JLabel infoServiceHostLabel

infoServiceHostTextField

javax.swing.JTextField infoServiceHostTextField

infoServicePortLabel

javax.swing.JLabel infoServicePortLabel

infoServicePortIntField

org.ssonet.awt.JIntField infoServicePortIntField

helpButton

javax.swing.JButton helpButton

reloadAvailableCascadesButton

javax.swing.JButton reloadAvailableCascadesButton

hp

static org.ssonet.help.Help hp

list

java.lang.String[] list

availableFile

java.io.BufferedReader availableFile

availableMixCascadesNames

java.lang.String[] availableMixCascadesNames
Sting array of mix cascade names (used for the preference list)


availableMixCascades

anon.AnonServer[] availableMixCascades
Array of mixcascade infos


CASCADE_DONT_CARE

public static final int CASCADE_DONT_CARE
Mix-Cascade selection mode: dont care

See Also:
Constant Field Values

CASCADE_USE_CERTIFIED

public static final int CASCADE_USE_CERTIFIED
Mix-Cascade selection mode: use only certified cascades

See Also:
Constant Field Values

CASCADE_USE_PREFERENCE_LIST

public static final int CASCADE_USE_PREFERENCE_LIST
Mix-Cascade selection mode: user selects manually a preference list

See Also:
Constant Field Values
Constructor Detail

ConfigurationAnonymity

public ConfigurationAnonymity(javax.swing.JFrame parentFrame,
                              java.util.Hashtable config)
Create and initialize a panel for configuration of anonymity mechanisms. Currently, only anonymity mechanism JAP is supported.

Parameters:
parentFrame - the parent frame
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Performs actions when buttons have been pressed.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

viewHelp

public static void viewHelp(java.lang.String theme,
                            java.lang.String subtheme)
Show a help window.

Parameters:
theme - the URL of the help HTML-File
subtheme - the an internal link in the HTML-File

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent event)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent event)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

getConfig

public java.util.Hashtable getConfig()

setConfig

public void setConfig(java.util.Hashtable config)
Sets the anonymity configuration.

Parameters:
config - the anonmity configuration

changeLanguage

public void changeLanguage(java.util.Locale language)
Changes the language resources.

Parameters:
language - the languages locale

main

public static void main(java.lang.String[] args)
Main method for debuging purposes.



Copyright © 2003 DRIM Team. All Rights Reserved.