gate.gui
Class DefaultResourceHandle
java.lang.Object
|
+--gate.gui.DefaultResourceHandle
- All Implemented Interfaces:
- ResourceHandle
- Direct Known Subclasses:
- ApplicationHandle, DSHandle
- public class DefaultResourceHandle
- extends Object
- implements ResourceHandle
Class used to store the information about an open resource.
Such information will include icon to be used for tree components,
popup menu for right click events, etc.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
popup
JPopupMenu popup
title
String title
tooltipText
String tooltipText
resource
FeatureBearer resource
rData
ResourceData rData
icon
Icon icon
smallView
JComponent smallView
largeView
JComponent largeView
currentDir
File currentDir
progressListeners
private transient Vector progressListeners
statusListeners
private transient Vector statusListeners
DefaultResourceHandle
public DefaultResourceHandle(FeatureBearer res)
getIcon
public Icon getIcon()
- Specified by:
getIcon
in interface ResourceHandle
setIcon
public void setIcon(Icon icon)
getTitle
public String getTitle()
- Specified by:
getTitle
in interface ResourceHandle
setTitle
public void setTitle(String newTitle)
getSmallView
public JComponent getSmallView()
- Returns a GUI component to be used as a small viewer/editor, e.g. below
the main tree in the Gate GUI for the selected resource
- Specified by:
getSmallView
in interface ResourceHandle
getLargeView
public JComponent getLargeView()
- Returns the large view for this resource. This view will go into the main
display area.
- Specified by:
getLargeView
in interface ResourceHandle
getPopup
public JPopupMenu getPopup()
- Specified by:
getPopup
in interface ResourceHandle
setPopup
public void setPopup(JPopupMenu popup)
getTooltipText
public String getTooltipText()
- Specified by:
getTooltipText
in interface ResourceHandle
setTooltipText
public void setTooltipText(String text)
getResource
public Resource getResource()
- Specified by:
getResource
in interface ResourceHandle
getFeatureBearer
public FeatureBearer getFeatureBearer()
addAllViews
private void addAllViews()
buildViews
protected void buildViews()
toString
public String toString()
- Overrides:
toString
in class Object
removeProgressListener
public void removeProgressListener(ProgressListener l)
addProgressListener
public void addProgressListener(ProgressListener l)
fireProgressChanged
protected void fireProgressChanged(int e)
fireProcessFinished
protected void fireProcessFinished()
removeStatusListener
public void removeStatusListener(StatusListener l)
addStatusListener
public void addStatusListener(StatusListener l)
fireStatusChanged
protected void fireStatusChanged(String e)