inescID.revs.commissioner
Class ElectionAdministration

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byinescID.revs.commissioner.ElectionAdministration
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class ElectionAdministration
extends javax.swing.JPanel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  int active_index
           
(package private)  java.awt.Component apace1
           
(package private)  javax.swing.JButton back
           
(package private)  javax.swing.JTextField ballot
           
(package private)  javax.swing.JButton ballot_file_chooser
           
(package private)  javax.swing.Box box1
           
(package private)  javax.swing.Box box3
           
(package private)  javax.swing.Box box5
           
(package private)  javax.swing.JButton cancel
           
(package private)  java.awt.Component component1
           
(package private)  java.awt.Component component2
           
(package private)  java.awt.Component component3
           
private  java.util.Vector configurations
           
(package private)  javax.swing.JComboBox configurations_list
           
(package private)  javax.swing.JButton delete
           
(package private)  javax.swing.JTextField description
           
(package private)  javax.swing.JButton edit
           
private  Election election
           
private  java.util.Vector elections
           
(package private)  java.awt.GridBagLayout gridBagLayout1
           
(package private)  javax.swing.JPanel jPanel1
           
(package private)  javax.swing.JLabel lBallot
           
(package private)  javax.swing.JLabel lConfiguration
           
(package private)  javax.swing.JLabel lDescriptiton
           
(package private)  javax.swing.JScrollPane listScrollPane
           
(package private)  javax.swing.JLabel lVotersGroup
           
(package private)  javax.swing.Box mainBox
           
(package private)  javax.swing.JButton New
           
static byte NEW
           
static byte NONE
           
(package private)  javax.swing.JButton ok
           
private  java.awt.Frame parent
           
(package private)  javax.swing.JPanel pButtons1
           
(package private)  BoxLayout2 pButtonsLayout1
           
(package private)  javax.swing.JPanel pMain
           
(package private)  javax.swing.JPanel pTitle
           
(package private)  javax.swing.JList selectionList
           
(package private)  java.awt.Component space2
           
(package private)  java.awt.Component space3
           
private  byte state
           
(package private)  javax.swing.JLabel title
           
static byte UPDATE
           
(package private)  javax.swing.JComboBox voters_group_list
           
private  java.util.Vector voters_groups
           
 
Fields inherited from class javax.swing.JPanel
 
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
ElectionAdministration()
           
ElectionAdministration(java.awt.Frame parent, Commissioner commi)
           
 
Method Summary
(package private)  void ballot_file_chooser_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void cancel_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void changeElection()
           
(package private)  void clear_edition()
           
(package private)  void disable_actions()
           
(package private)  void edit_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void enable_actions()
           
(package private)  void enter_edition_mode()
           
(package private)  void exit_edition_mode()
           
 Election getElection()
           
 byte getState()
           
 void init(java.util.Vector elections, java.util.Vector groups, java.util.Vector configurations)
           
(package private)  void jbInit()
           
(package private)  void New_actionPerformed(java.awt.event.ActionEvent e)
           
 void releaseMemory()
           
(package private)  void selectionList_valueChanged(javax.swing.event.ListSelectionEvent e)
           
 void setActionListener(Commissioner commi)
           
 void updateList(java.util.Vector elections)
           
 
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

NONE

public static final byte NONE
See Also:
Constant Field Values

UPDATE

public static final byte UPDATE
See Also:
Constant Field Values

NEW

public static final byte NEW
See Also:
Constant Field Values

state

private byte state

election

private Election election

elections

private java.util.Vector elections

active_index

private int active_index

voters_groups

private java.util.Vector voters_groups

configurations

private java.util.Vector configurations

parent

private java.awt.Frame parent

box1

javax.swing.Box box1

pTitle

javax.swing.JPanel pTitle

title

javax.swing.JLabel title

pMain

javax.swing.JPanel pMain

mainBox

javax.swing.Box mainBox

listScrollPane

javax.swing.JScrollPane listScrollPane

selectionList

javax.swing.JList selectionList

apace1

java.awt.Component apace1

New

javax.swing.JButton New

ok

javax.swing.JButton ok

pButtons1

javax.swing.JPanel pButtons1

back

javax.swing.JButton back

delete

javax.swing.JButton delete

pButtonsLayout1

BoxLayout2 pButtonsLayout1

lConfiguration

javax.swing.JLabel lConfiguration

jPanel1

javax.swing.JPanel jPanel1

edit

javax.swing.JButton edit

box5

javax.swing.Box box5

gridBagLayout1

java.awt.GridBagLayout gridBagLayout1

space2

java.awt.Component space2

space3

java.awt.Component space3

cancel

javax.swing.JButton cancel

lVotersGroup

javax.swing.JLabel lVotersGroup

lBallot

javax.swing.JLabel lBallot

lDescriptiton

javax.swing.JLabel lDescriptiton

description

javax.swing.JTextField description

voters_group_list

javax.swing.JComboBox voters_group_list

configurations_list

javax.swing.JComboBox configurations_list

ballot

javax.swing.JTextField ballot

ballot_file_chooser

javax.swing.JButton ballot_file_chooser

box3

javax.swing.Box box3

component1

java.awt.Component component1

component2

java.awt.Component component2

component3

java.awt.Component component3
Constructor Detail

ElectionAdministration

public ElectionAdministration(java.awt.Frame parent,
                              Commissioner commi)

ElectionAdministration

public ElectionAdministration()
Method Detail

jbInit

void jbInit()
      throws java.lang.Exception
Throws:
java.lang.Exception

releaseMemory

public void releaseMemory()

updateList

public void updateList(java.util.Vector elections)

init

public void init(java.util.Vector elections,
                 java.util.Vector groups,
                 java.util.Vector configurations)

getState

public byte getState()

getElection

public Election getElection()

changeElection

void changeElection()

clear_edition

void clear_edition()

cancel_actionPerformed

void cancel_actionPerformed(java.awt.event.ActionEvent e)

edit_actionPerformed

void edit_actionPerformed(java.awt.event.ActionEvent e)

New_actionPerformed

void New_actionPerformed(java.awt.event.ActionEvent e)

ballot_file_chooser_actionPerformed

void ballot_file_chooser_actionPerformed(java.awt.event.ActionEvent e)

enable_actions

void enable_actions()

disable_actions

void disable_actions()

enter_edition_mode

void enter_edition_mode()

exit_edition_mode

void exit_edition_mode()

setActionListener

public void setActionListener(Commissioner commi)

selectionList_valueChanged

void selectionList_valueChanged(javax.swing.event.ListSelectionEvent e)