Changeset 4559


Ignore:
Timestamp:
2003-06-11T13:44:33+12:00 (21 years ago)
Author:
kjdon
Message:

properly indented some comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java

    r4415 r4559  
    222222    boolean cont = true;
    223223    if(event.getSource() == ok) {
    224                 // Update the details stored in the data objects arguments.
     224        // Update the details stored in the data objects arguments.
    225225        if(custom.getText().length() > 0) {
    226226        data.setCustom(custom.getText());
    227227        }
    228                 // Loop through each of the controls in the central pane, updating the matching argument as necessary.
     228        // Loop through each of the controls in the central pane, updating the matching argument as necessary.
    229229        for(int i = 0; i < central_pane.getComponentCount(); i++) {
    230230        Component component = central_pane.getComponent(i);
     
    506506        }
    507507        break;
    508         }
    509                 // Enable or disable as necessary.
     508        } // end of switch
     509        // Enable or disable as necessary.
    510510        if(argument.isRequired() || argument.isAssigned()) {
    511511        enabled.setSelected(true);
     
    524524        }
    525525        }
    526                 // Listener
     526        // Listener
    527527        if(value != null && !argument.isRequired()) {
    528528        enabled.addActionListener(new EnabledListener(one, two, list, value));
    529529        }
    530                 // Layout
     530        // Layout
    531531        if(list == null) {
    532532        enabled.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));
     
    563563        }
    564564        setLayout(new BorderLayout());
    565                 //add(owner_label, BorderLayout.NORTH);
     565        //add(owner_label, BorderLayout.NORTH);
    566566        add(inner_pane, BorderLayout.CENTER);
    567567    }
     
    576576    }
    577577    /** Identifies this control by returning the name of the Argument it is based on.
    578             * @return The name of the Argument as a <strong>String</strong>.
    579             * @see org.greenstone.gatherer.cdm.Argument
    580             */
     578     * @return The name of the Argument as a <strong>String</strong>.
     579     * @see org.greenstone.gatherer.cdm.Argument
     580     */
    581581    public String toString() {
    582582        return argument.getName();
    583583    }
    584584    /** Updates the enwrapped Argument using the values provided by the controls.
    585             * @return <i>true</i> if the update was successful, <i>false</i> otherwise.
    586             * @see org.greenstone.gatherer.cdm.ArgumentConfiguration.ArgumentControl.ListOption
    587             * @see org.greenstone.gatherer.cdm.Language
    588             * @see org.greenstone.gatherer.msm.ElementWrapper
    589             */
     585     * @return <i>true</i> if the update was successful, <i>false</i> otherwise.
     586     * @see org.greenstone.gatherer.cdm.ArgumentConfiguration.ArgumentControl.ListOption
     587     * @see org.greenstone.gatherer.cdm.Language
     588     * @see org.greenstone.gatherer.msm.ElementWrapper
     589     */
    590590    public boolean updateArgument() {
    591591        if(enabled.isSelected() || argument.isRequired()) {
Note: See TracChangeset for help on using the changeset viewer.