|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.desktopDeployment.DataFieldView
public abstract class DataFieldView
Describes basic aspects of a field view including context sensitive help and whether field should indicate a required or optional model component. this class complements project35.model.DataFieldModel
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
Field Summary | |
---|---|
protected javax.swing.JComponent |
activityArea
|
protected java.text.Collator |
collator
|
protected DataFieldModel |
dataFieldModel
|
protected java.awt.Font |
font
|
protected javax.swing.JLabel |
label
|
protected java.lang.String |
name
|
protected Project35FormContext |
project35FormContext
|
protected Project35UIFactory |
project35UIFactory
|
Constructor Summary | |
---|---|
DataFieldView()
|
Method Summary | |
---|---|
void |
changeFont(java.awt.Font font)
|
void |
deregisterToolTipComponents()
|
void |
enableContextHelp(boolean enableContextHelp)
turns context help sensitivity on or off |
java.awt.Component |
getActivityArea()
|
java.awt.Font |
getFont()
|
java.net.URL |
getHelpLink()
|
javax.swing.JLabel |
getLabel()
|
java.lang.String |
getName()
|
boolean |
hasFocus()
|
void |
indicateErrors(boolean indicateErrors)
|
void |
initialise(DataFieldModel dataFieldModel,
Project35FormContext project35FormContext)
sets the model used by the view. |
boolean |
isContextHelpEnabled()
|
boolean |
isRequiredField()
|
protected void |
setActivityArea(javax.swing.JComponent activityArea)
sets the activity area of the field. |
void |
setHelpLink(java.net.URL helpLink)
sets the context help for this field |
void |
setName(java.lang.String name)
sets the name of the field. |
void |
setRequiredField(boolean isRequiredField)
sets whether the field is required or optional. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JLabel label
protected java.awt.Font font
protected java.lang.String name
protected javax.swing.JComponent activityArea
protected DataFieldModel dataFieldModel
protected Project35FormContext project35FormContext
protected Project35UIFactory project35UIFactory
protected java.text.Collator collator
Constructor Detail |
---|
public DataFieldView()
Method Detail |
---|
public void initialise(DataFieldModel dataFieldModel, Project35FormContext project35FormContext)
dataFieldModel
- the model used by the viewpublic javax.swing.JLabel getLabel()
public java.awt.Component getActivityArea()
public java.lang.String getName()
public java.net.URL getHelpLink()
getHelpLink
in interface ContextHelpItem
public boolean hasFocus()
public boolean isRequiredField()
public java.awt.Font getFont()
public boolean isContextHelpEnabled()
isContextHelpEnabled
in interface ContextHelpItem
public void indicateErrors(boolean indicateErrors)
public void deregisterToolTipComponents()
public void setRequiredField(boolean isRequiredField)
isRequiredField
- true if the field is required; false if the
field is optionalprotected void setActivityArea(javax.swing.JComponent activityArea)
activityArea
- the part of the field that receives data entry.public void setHelpLink(java.net.URL helpLink)
setHelpLink
in interface ContextHelpItem
helpLink
- the URL that provides information about a model
fieldpublic void setName(java.lang.String name)
name
- the name of the fieldpublic void enableContextHelp(boolean enableContextHelp)
enableContextHelp
in interface ContextHelpItem
enableContextHelp
- true if context help is on; otherwise falsepublic void changeFont(java.awt.Font font)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |