public class NameBearerHandle extends Object implements Handle, StatusListener, ProgressListener
Modifier and Type | Field and Description |
---|---|
protected List<ActionsPublisher> |
actionPublishers
Stores all the action providers for this resource.
|
protected CorpusFillerComponent |
corpusFiller
Component used to select the options for corpus populating
|
protected SingleConcatenatedFileInputDialog |
scfInputDialog |
protected List<JComponent> |
staticPopupItems
A list of menu items that constitute the static part of the popup.
|
protected boolean |
viewsBuilt |
Constructor and Description |
---|
NameBearerHandle(NameBearer target,
Window window) |
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(ProgressListener l) |
void |
addStatusListener(StatusListener l) |
protected void |
buildStaticPopupItems() |
protected void |
buildViews() |
void |
cleanup()
Releases the memory, removes the listeners, cleans up.
|
void |
fireProcessFinished() |
void |
fireProgressChanged(int e) |
void |
fireStatusChanged(String e) |
Action |
getCloseAction() |
Action |
getCloseRecursivelyAction() |
Icon |
getIcon() |
JComponent |
getLargeView()
Returns the large view for this resource.
|
JPopupMenu |
getPopup() |
JComponent |
getSmallView()
Returns a GUI component to be used as a small viewer/editor, e.g.
|
Object |
getTarget() |
String |
getTitle() |
String |
getTooltipText() |
Window |
getWindow()
Returns the top level GUI component that is a parent to all other GUI
components
|
void |
processFinished()
Called when the process is finished.
|
void |
progressChanged(int e)
Called when the progress has changed
|
void |
removeProgressListener(ProgressListener l) |
void |
removeStatusListener(StatusListener l) |
void |
removeViews()
A call to this method will cause the handle to destroy all the views built
for the target resource.
|
void |
setIcon(Icon icon) |
void |
setTooltipText(String text) |
void |
statusChanged(String e)
Calleed when there a new status message.
|
String |
toString() |
boolean |
viewsBuilt()
Returns true if the views have already been built for this
handle.
|
protected List<ActionsPublisher> actionPublishers
protected List<JComponent> staticPopupItems
protected boolean viewsBuilt
protected CorpusFillerComponent corpusFiller
protected SingleConcatenatedFileInputDialog scfInputDialog
public NameBearerHandle(NameBearer target, Window window)
public void setIcon(Icon icon)
public boolean viewsBuilt()
viewsBuilt
in interface Handle
public JComponent getSmallView()
getSmallView
in interface Handle
public JComponent getLargeView()
getLargeView
in interface Handle
public JPopupMenu getPopup()
public String getTooltipText()
getTooltipText
in interface Handle
public void setTooltipText(String text)
public Action getCloseAction()
public Action getCloseRecursivelyAction()
protected void buildStaticPopupItems()
protected void buildViews()
public void removeProgressListener(ProgressListener l)
public void addProgressListener(ProgressListener l)
public void removeViews()
Handle
removeViews
in interface Handle
public void cleanup()
public void fireProgressChanged(int e)
public void fireProcessFinished()
public void removeStatusListener(StatusListener l)
public void addStatusListener(StatusListener l)
public void fireStatusChanged(String e)
public void statusChanged(String e)
StatusListener
statusChanged
in interface StatusListener
public void progressChanged(int e)
ProgressListener
progressChanged
in interface ProgressListener
public void processFinished()
ProgressListener
processFinished
in interface ProgressListener
Copyright © 2024 GATE. All rights reserved.