Changeset 24940 in osm


Ignore:
Timestamp:
2011-01-02T11:58:07+01:00 (14 years ago)
Author:
oliverw
Message:

Added documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/IncompleteAddressesDialog.java

    r24322 r24940  
    5353        private AddressEditContainer container;
    5454
     55        // Create action objects
    5556        private SelectAddressesInMapAction selectAction = new SelectAddressesInMapAction();
    5657        private GuessAddressDataAction guessDataAction = new GuessAddressDataAction();
     
    5859        private RemoveAddressTagsAction removeTagsAction = new RemoveAddressTagsAction();
    5960       
     61        // Array containing the available actions
    6062        private AbstractAddressEditAction[] actions = new AbstractAddressEditAction[]{
    6163                        selectAction,
     
    7779                this.container = new AddressEditContainer();
    7880                container.addChangedListener(this);
    79                
     81                // Top-level panel
    8082                JPanel p = new JPanel(new BorderLayout());
    81                
     83                // Table containing address entities
    8284                IncompleteAddressesTableModel model = new IncompleteAddressesTableModel(container);
    8385                incompleteAddr = new JTable(model);
     
    8688                incompleteAddr.getSelectionModel().addListSelectionListener(this);
    8789               
     90                // Scroll pane hosting the table
    8891                JScrollPane sp = new JScrollPane(incompleteAddr);
    8992                p.add(sp, BorderLayout.CENTER);
    9093                this.add(p);
    9194               
     95                // Button panel containing the commands
    9296                JPanel buttonPanel = getButtonPanel(actions.length);
    9397               
     98                // Populate panel with actions
    9499                for (int i = 0; i < actions.length; i++) {
    95100                        SideButton sb = new SideButton(actions[i]);
     
    99104                this.add(buttonPanel, BorderLayout.SOUTH);
    100105               
     106                // Link actions with address container
    101107                for (AbstractAddressEditAction action : actions) {
    102108                        action.setContainer(container);
     
    221227               
    222228        }
    223        
    224        
    225229}
Note: See TracChangeset for help on using the changeset viewer.