public abstract class RGElicitor
extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
RGElicitor.MyDocumentListener |
Modifier and Type | Field and Description |
---|---|
(package private) JTextField |
attrField |
(package private) JLabel |
attrLabel |
(package private) String |
booleanchosen |
(package private) RGElicitor.MyDocumentListener |
docListener |
(package private) JTextField |
elemField |
(package private) JLabel |
elemLabel |
protected TrackedRepertoryGrid |
grid
The grid for which this elicitor will acquire entries.
|
protected JPanel |
headerPanel |
protected RGTableModel |
model
The table model for the grid, in case we're displaying it
|
(package private) String |
notypechosen |
(package private) JLabel |
questionLabel |
(package private) String |
range16chosen |
(package private) JTextField |
relField |
(package private) JLabel |
relLabel |
protected chargerlib.Transcript |
transcript |
(package private) JLabel |
valuetypeLabel |
(package private) JComboBox |
valuetypeMenu |
protected RGDisplayWindow |
window |
protected net.didion.jwnl.dictionary.Dictionary |
wnDict |
Constructor and Description |
---|
RGElicitor(TrackedRepertoryGrid rg,
RGTableModel m)
General constructor for any elicitor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
elicit()
Perform whatever elicitation is called for by this technique, on the grid
with which it was instantiated.
|
boolean |
fillInGridByQuery()
Queries a user to fill in values for the grid.
|
private void |
fillInHeaders() |
JComponent |
getHeaderComponent(RGDisplayWindow w)
Constructs a header component for some display window.
|
RGTableModel |
getTableModel() |
chargerlib.Transcript |
getTranscript() |
private void |
initializeHeaderPanel() |
String |
queryNewAttribute(String s)
Queries the user for a new attribute in the repertory grid.
|
String |
queryNewElement(String s)
Queries the user for a new element in the repertory grid.
|
protected void |
refreshHeaderPanel() |
void |
resolveSimilarities()
Looks for columns with identical values and queries for additional
attributes that can differentiate them.
|
protected TrackedRepertoryGrid grid
protected RGTableModel model
JLabel questionLabel
JTextField elemField
JLabel elemLabel
JTextField relField
JLabel relLabel
JTextField attrField
JLabel attrLabel
JComboBox valuetypeMenu
String notypechosen
String booleanchosen
String range16chosen
JLabel valuetypeLabel
protected JPanel headerPanel
protected RGDisplayWindow window
protected chargerlib.Transcript transcript
protected net.didion.jwnl.dictionary.Dictionary wnDict
RGElicitor.MyDocumentListener docListener
public RGElicitor(TrackedRepertoryGrid rg, RGTableModel m)
rg
- The grid to be elicited.m
- the table model for this grid; null
if there isn't
anypublic RGTableModel getTableModel()
public JComponent getHeaderComponent(RGDisplayWindow w)
w
- lets this elicitor know what window is controlling the component
it is handing out.private void fillInHeaders()
public abstract void elicit()
public void resolveSimilarities()
fillInGridByQuery
to complete it.protected void refreshHeaderPanel()
private void initializeHeaderPanel()
public String queryNewAttribute(String s)
s
- hopefully helpful string appended to the prompt.null
if user cancelled or
it's a duplicate.public String queryNewElement(String s)
s
- hopefully helpful string appended to the prompt.null
if user cancelled or
it's a duplicate.public boolean fillInGridByQuery()
RGValue.queryCellValue(java.lang.String)
public chargerlib.Transcript getTranscript()