public class TextTarget extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TextTarget.PopupTimer |
class |
TextTarget.TargetCombo |
Modifier and Type | Field and Description |
---|---|
String[] |
answer |
static String |
ANSWER |
protected TextTarget.TargetCombo |
comboList |
static String |
DELAY |
static int |
EDITED |
static String |
ELEMENT_NAME |
static String |
FILL |
static String |
INFO |
static int |
INFO_ALWAYS |
static int |
INFO_LEFTALIGN |
static int |
INFO_ON_DEMAND |
static int |
INFO_ON_ERROR |
static int |
INFO_ONLYPLAY |
int |
infoMode |
static String[] |
infoTypes |
static String |
INI_LEN |
static String |
INI_TEXT |
char |
iniChar |
String |
iniText |
boolean |
isList |
static String |
MAX_LEN |
static String |
MAX_TIME |
int |
maxLenResp |
static String |
MODE |
static int |
NO_INFO |
static int |
NOT_EDITED |
int |
numIniChars |
boolean |
onlyPlay |
static String |
OPTION |
static String |
OPTION_LIST |
String[] |
options |
ActiveBoxContent |
popupContent |
int |
popupDelay |
int |
popupMaxTime |
static String |
RESPONSE |
static int |
SOLVED |
int |
targetStatus |
static int |
WITH_ERROR |
Constructor and Description |
---|
TextTarget()
Creates new TextTarget
|
TextTarget(Document doc,
int x0,
int x1) |
Modifier and Type | Method and Description |
---|---|
void |
adjustPopupLocation(TextActivityBase.Panel tabp,
TargetMarker tm) |
JComboBox |
buildCombo(AttributeSet targetAttr,
AttributeSet errorAttr) |
void |
checkPopup(TextActivityBase.Panel tabp,
TargetMarker tm,
boolean f1Key) |
boolean |
checkText(String txt,
Evaluator ev) |
String |
getAnswers() |
String |
getFillString() |
String |
getFillString(int length) |
Element |
getJDomElement() |
protected Point |
getPopupLocation(TextActivityBase.Panel tabp,
TargetMarker tm) |
static TextTarget |
getTextTarget(Element e,
MediaBag mediaBag) |
boolean |
isModified() |
void |
lostFocus(TextActivityBase.Panel tabp,
TargetMarker tm) |
void |
requestFocus(TextActivityBase.Panel tabp,
TargetMarker tm) |
void |
reset() |
void |
setAnswer(String text) |
void |
setModified(boolean value) |
protected void |
setParentPane(TextActivityPane pane) |
void |
setProperties(Element e,
Object aux) |
public static final int NO_INFO
public static final int INFO_ALWAYS
public static final int INFO_ON_ERROR
public static final int INFO_ON_DEMAND
public static final String[] infoTypes
public static final int NOT_EDITED
public static final int EDITED
public static final int SOLVED
public static final int WITH_ERROR
public static final int INFO_LEFTALIGN
public static final int INFO_ONLYPLAY
public boolean isList
public int numIniChars
public char iniChar
public int maxLenResp
public String[] answer
public String[] options
public String iniText
public int infoMode
public ActiveBoxContent popupContent
public int popupDelay
public int popupMaxTime
public boolean onlyPlay
protected TextTarget.TargetCombo comboList
public int targetStatus
public static final String ELEMENT_NAME
public static final String ANSWER
public static final String OPTION_LIST
public static final String OPTION
public static final String RESPONSE
public static final String FILL
public static final String INI_LEN
public static final String MAX_LEN
public static final String INI_TEXT
public static final String INFO
public static final String MODE
public static final String DELAY
public static final String MAX_TIME
public TextTarget()
public TextTarget(Document doc, int x0, int x1)
public void reset()
public Element getJDomElement()
public static TextTarget getTextTarget(Element e, MediaBag mediaBag) throws Exception
Exception
protected void setParentPane(TextActivityPane pane)
public void setAnswer(String text)
public String getAnswers()
public JComboBox buildCombo(AttributeSet targetAttr, AttributeSet errorAttr)
public String getFillString()
public String getFillString(int length)
public void requestFocus(TextActivityBase.Panel tabp, TargetMarker tm)
public void checkPopup(TextActivityBase.Panel tabp, TargetMarker tm, boolean f1Key)
protected Point getPopupLocation(TextActivityBase.Panel tabp, TargetMarker tm)
public void adjustPopupLocation(TextActivityBase.Panel tabp, TargetMarker tm)
public void lostFocus(TextActivityBase.Panel tabp, TargetMarker tm)
public void setModified(boolean value)
public boolean isModified()
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.