|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproject35.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 JComponent |
activityArea
|
protected Collator |
collator
|
protected DataFieldModel |
dataFieldModel
|
protected Font |
font
|
protected JLabel |
label
|
protected String |
name
|
protected Project35FormContext |
project35FormContext
|
protected Project35UIFactory |
project35UIFactory
|
| Constructor Summary | |
|---|---|
DataFieldView()
|
|
| Method Summary | |
|---|---|
void |
changeFont(Font font)
|
void |
deregisterToolTipComponents()
|
void |
enableContextHelp(boolean enableContextHelp)
turns context help sensitivity on or off |
Component |
getActivityArea()
|
Font |
getFont()
|
URL |
getHelpLink()
|
JLabel |
getLabel()
|
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(JComponent activityArea)
sets the activity area of the field. |
void |
setHelpLink(URL helpLink)
sets the context help for this field |
void |
setName(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 JLabel label
protected Font font
protected String name
protected JComponent activityArea
protected DataFieldModel dataFieldModel
protected Project35FormContext project35FormContext
protected Project35UIFactory project35UIFactory
protected Collator collator
| Constructor Detail |
|---|
public DataFieldView()
| Method Detail |
|---|
public void initialise(DataFieldModel dataFieldModel,
Project35FormContext project35FormContext)
dataFieldModel - the model used by the viewpublic JLabel getLabel()
public Component getActivityArea()
public String getName()
public URL getHelpLink()
getHelpLink in interface ContextHelpItempublic boolean hasFocus()
public boolean isRequiredField()
public Font getFont()
public boolean isContextHelpEnabled()
isContextHelpEnabled in interface ContextHelpItempublic 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(JComponent activityArea)
activityArea - the part of the field that receives data entry.public void setHelpLink(URL helpLink)
setHelpLink in interface ContextHelpItemhelpLink - the URL that provides information about a model
fieldpublic void setName(String name)
name - the name of the fieldpublic void enableContextHelp(boolean enableContextHelp)
enableContextHelp in interface ContextHelpItemenableContextHelp - true if context help is on; otherwise falsepublic void changeFont(Font font)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||