cst.loggingTool.presentationLayer
Class AbstractFieldView

java.lang.Object
  extended by cst.loggingTool.presentationLayer.AbstractFieldView
Direct Known Subclasses:
CommentFieldView, DateFieldView

public abstract class AbstractFieldView
extends java.lang.Object


 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
protected  javax.swing.JLabel fieldLabel
           
protected  Log log
           
protected  SaveChangesMonitor saveChangesMonitor
           
protected  SessionProperties sessionProperties
           
protected  UserInterfaceFactory userInterfaceFactory
           
 
Constructor Summary
AbstractFieldView(SessionProperties sessionProperties)
           
 
Method Summary
protected  boolean allowSaveChanges()
           
protected  void deregisterChange()
           
 void disableSaveChangesAbility()
           
abstract  void disableView()
           
abstract  void enableView()
           
 javax.swing.JLabel getFieldLabel()
           
 java.lang.String getFieldName()
           
 TrialActivityView getParentForm()
           
protected  void registerChange()
           
protected  void setEnableSaveChangesTriggers(boolean enableSaveChangesTriggers)
           
 void setFieldName(java.lang.String fieldName, java.lang.String fieldNameToolTipText)
           
 void setParentForm(TrialActivityView parentForm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldLabel

protected javax.swing.JLabel fieldLabel

sessionProperties

protected SessionProperties sessionProperties

userInterfaceFactory

protected UserInterfaceFactory userInterfaceFactory

saveChangesMonitor

protected SaveChangesMonitor saveChangesMonitor

log

protected Log log
Constructor Detail

AbstractFieldView

public AbstractFieldView(SessionProperties sessionProperties)
Method Detail

disableSaveChangesAbility

public void disableSaveChangesAbility()

setParentForm

public void setParentForm(TrialActivityView parentForm)

getParentForm

public TrialActivityView getParentForm()

getFieldLabel

public javax.swing.JLabel getFieldLabel()

getFieldName

public java.lang.String getFieldName()

setFieldName

public void setFieldName(java.lang.String fieldName,
                         java.lang.String fieldNameToolTipText)

deregisterChange

protected void deregisterChange()

registerChange

protected void registerChange()

setEnableSaveChangesTriggers

protected void setEnableSaveChangesTriggers(boolean enableSaveChangesTriggers)

allowSaveChanges

protected boolean allowSaveChanges()

enableView

public abstract void enableView()

disableView

public abstract void disableView()