| 
GATE Version 3.1-2270  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.gui.docview.AbstractDocumentView
public abstract class AbstractDocumentView
A convenience implementation of DocumentView that
 can be extended by implementers of document views.
 An implementation of a document view that extends this class will need to 
 provide implementations for the three abstract methods:
 initGUI(), registerHooks() and unregisterHooks().
| Field Summary | |
|---|---|
protected  boolean | 
active
Stores the active state of this view.  | 
protected  Document | 
document
The document this view displays.  | 
protected  boolean | 
guiInitialised
Has the UI been initialised yet?  | 
protected  Handle | 
handle
Stores the handle of this view.  | 
protected  DocumentEditor | 
owner
The DocumentEditor this view is part of. | 
| Fields inherited from class gate.creole.AbstractResource | 
|---|
name | 
| Fields inherited from class gate.util.AbstractFeatureBearer | 
|---|
features | 
| Fields inherited from interface gate.gui.docview.DocumentView | 
|---|
CENTRAL, HORIZONTAL, VERTICAL | 
| Constructor Summary | |
|---|---|
AbstractDocumentView()
 | 
|
| Method Summary | |
|---|---|
 List | 
getActions()
Returns a list of Action objects.  | 
 Document | 
getDocument()
Gets the document this view displays.  | 
protected abstract  void | 
initGUI()
Implementers should override this method and use it for populating the GUI.  | 
 boolean | 
isActive()
Returns the active state of this view.  | 
protected abstract  void | 
registerHooks()
This method will be called whenever the view becomes active.  | 
 void | 
setActive(boolean active)
Notifies this view that it has become active or inactive.  | 
 void | 
setHandle(Handle handle)
Used by the main GUI to tell this VR what handle created it.  | 
 void | 
setOwner(DocumentEditor editor)
Stores the owner of this view into the owner field. | 
 void | 
setTarget(Object target)
Stores the target (which should always be a Document) into the 
 document field. | 
protected abstract  void | 
unregisterHooks()
This method will be called whenever this view becomes inactive.  | 
| Methods inherited from class gate.creole.AbstractResource | 
|---|
checkParameterValues, cleanup, getBeanInfo, getName, getParameterValue, getParameterValue, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners | 
| Methods inherited from class gate.util.AbstractFeatureBearer | 
|---|
getFeatures, setFeatures | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface gate.gui.docview.DocumentView | 
|---|
getGUI, getType | 
| Methods inherited from interface gate.Resource | 
|---|
cleanup, getParameterValue, init, setParameterValue, setParameterValues | 
| Methods inherited from interface gate.util.FeatureBearer | 
|---|
getFeatures, setFeatures | 
| Methods inherited from interface gate.util.NameBearer | 
|---|
getName, setName | 
| Field Detail | 
|---|
protected boolean active
protected Handle handle
protected boolean guiInitialised
protected Document document
protected DocumentEditor owner
DocumentEditor this view is part of.
| Constructor Detail | 
|---|
public AbstractDocumentView()
| Method Detail | 
|---|
public void setActive(boolean active)
setActive in interface DocumentViewactive - a boolean value.public boolean isActive()
isActive in interface DocumentViewpublic List getActions()
ActionsPublisher
getActions in interface ActionsPublisherList of Actions.public void setHandle(Handle handle)
VisualResource
setHandle in interface VisualResourcepublic void setTarget(Object target)
Document) into the 
 document field.
setTarget in interface VisualResourcetarget - the object (be it a Resource,
 DataStore or whatever) this viewer has to displaypublic Document getDocument()
Documentpublic void setOwner(DocumentEditor editor)
owner field. The owner is 
 the DocumentEditor this view is part of.
setOwner in interface DocumentVieweditor - the DocumentEditor that contains this view.protected abstract void initGUI()
protected abstract void registerHooks()
protected abstract void unregisterHooks()
registerHooks().
  | 
GATE Version 3.1-2270  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||