macaw.presentationLayer
Class DerivedVariableEditor

java.lang.Object
  extended by macaw.presentationLayer.VariableEditor
      extended by macaw.presentationLayer.DerivedVariableEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, DisplayableListParentForm

public class DerivedVariableEditor
extends VariableEditor
implements java.awt.event.ActionListener


Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
 
Fields inherited from class macaw.presentationLayer.VariableEditor
aliasFilePathChoicesField, aliasFilePathLabelText, allowWriteAccess, alternativeVariableSelectionPanel, availabilityChoicesField, availabilityLabelText, categoryChoicesField, categoryLabelText, cleaningStatePanel, close, committedChanges, currentUser, currentUserID, database, dialog, editLabelValues, filePathField, filePathLabelText, instructionsTextArea, isCodedField, isCodedText, labelField, labelLabelText, log, nameField, nameLabelText, notesField, okCancelPanel, ontologyTermsPanel, save, sessionProperties, showChangeHistory, supportingDocumentsPanel, userInterfaceFactory, yearField, yearLabelText
 
Constructor Summary
DerivedVariableEditor(SessionProperties sessionProperties, boolean allowWriteAccess)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void commitChanges()
           
 Displayable getData()
           
 void setData(DerivedVariable derivedVariable, boolean isNewRecord)
           
 
Methods inherited from class macaw.presentationLayer.VariableEditor
addField, close, createDataLibraryAndFilePanel, createIsCleanedPanel, createNameLabelPanel, createNotesFieldPanel, createRubricCardFields, createRubricCardPanel, createYearFormQuestionNumberPanel, editLabelValues, isCancelled, restoreVariableFields, saveVariableFields, setData, show, showChangeHistory, updateFilePath, updateValueLabelsButtonState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerivedVariableEditor

public DerivedVariableEditor(SessionProperties sessionProperties,
                             boolean allowWriteAccess)
                      throws MacawException
Throws:
MacawException
Method Detail

setData

public void setData(DerivedVariable derivedVariable,
                    boolean isNewRecord)

getData

public Displayable getData()
Specified by:
getData in class VariableEditor

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Specified by:
actionPerformed in class VariableEditor

commitChanges

public void commitChanges()
                   throws MacawException
Specified by:
commitChanges in interface DisplayableListParentForm
Specified by:
commitChanges in class VariableEditor
Throws:
MacawException