T
- container typepublic abstract class AbstractFieldContainer<T> extends Object implements FieldContainer
Modifier | Constructor and Description |
---|---|
protected |
AbstractFieldContainer(ProjectFile file)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFieldListener(FieldListener listener)
Add a listener to receive field events.
|
void |
disableEvents()
Disable events firing when fields are updated.
|
void |
enableEvents()
Enable events firing when fields are updated.
|
Object |
get(FieldType field)
Retrieve a field value.
|
Object |
getCachedValue(FieldType field)
Retrieve a field value.
|
ProjectFile |
getParentFile()
Accessor method allowing retrieval of ProjectFile reference.
|
void |
removeFieldListener(FieldListener listener)
Remove a listener.
|
void |
set(FieldType field,
Object value)
Set a field value.
|
protected AbstractFieldContainer(ProjectFile file)
file
- Parent filepublic void disableEvents()
public void enableEvents()
public void set(FieldType field, Object value)
FieldContainer
set
in interface FieldContainer
field
- field identifiervalue
- field valuepublic Object get(FieldType field)
FieldContainer
get
in interface FieldContainer
field
- field identifierpublic Object getCachedValue(FieldType field)
FieldContainer
getCachedValue
in interface FieldContainer
field
- field identifierpublic void addFieldListener(FieldListener listener)
FieldContainer
addFieldListener
in interface FieldContainer
listener
- target listenerpublic void removeFieldListener(FieldListener listener)
FieldContainer
removeFieldListener
in interface FieldContainer
listener
- target listenerpublic final ProjectFile getParentFile()
Copyright © 2000–2024 Packwood Software. All rights reserved.