Constructor
new OrderText(project)
OrderText constructor
Name | Type | Description |
---|---|---|
project | module:project/JClicProject. | The project to which this activity belongs |
Extends
Members
abc :Array.<module:boxes/ActiveBagContent.ActiveBagContent>
Array of bags with the description of the content to be displayed on panels and cells.
- Source
absolutePosition :module:AWT.Point
The position of the activity panel on the player.
- Source
absolutePositioned :boolean
Whether to place the activity panel at the point specified by absolutePosition
or leave
it centered on the main player's window.
- boolean
- Source
acp :module:automation/AutoContentProvider.AutoContentProvider
Special object used to generate random content at the start of the activity
- Source
activityBgColor :string
The background color of the activity
- string
- Source
activityBgGradient :module:AWT.Gradient
Gradient used to draw backgrounds inside the activity.
- Source
amongParagraphs :boolean
Whether to allow or not to shuffle words among different paragraphs.
- boolean
bActionsCounter :boolean
Whether to display or not the 'actions' counter
- boolean
- Source
bScoreCounter :boolean
Whether to display or not the 'score' counter
- boolean
- Source
bTimeCounter :boolean
Whether to display or not the 'time' counter
- boolean
- Source
bc :module:boxes/BoxConnector.BoxConnector
The box connector
bgColor :string
The background color of the activity panel
- string
- Source
bgGradient :module:AWT.Gradient
When set, gradient used to draw the activity window background
- Source
bgImageFile :string
Filename of the image used as a panel background.
- string
- Source
border :boolean
Whether to draw a border around the activity panel
- boolean
- Source
boxGridPos :string
Relative position of the text grid (uses the same position codes as box grids)
- string
- Source
checkButtonText :string
This is the label used by text activities for the check
button, when present.
- string
className :string
The class name of this Activity
- string
- Source
code :string
Code used in reports to filter queries. Default is null
.
- string
- Source
countDownActions :boolean
Whether the actions counter should display a countdown when maxActions > 0
- boolean
- Source
countDownTime :boolean
Whether the time counter should display a countdown when maxTime > 0
- boolean
- Source
description :string
A short description of the activity
- string
- Source
document :module:activities/text/TextActivityDocument.TextActivityDocument
The main document used in text activities
- Source
dragCells :boolean
Wheter the cells of the activity will be dragged across the screen.
When false
, a line will be painted to link elements.
- boolean
- Source
ev :module:activities/text/Evaluator.Evaluator
This is the object used to evaluate user's answers in text activities.
eventSounds :module:media/EventSounds.EventSounds
Specific set of EventSounds
used in the activity. The default is null
, meaning
to use the default event sounds.
- Source
helpMsg :string
Message to be shown in the help window when showSolution
is false
.
- string
- Source
helpWindow :boolean
Whether to allow help about the activity or not.
- boolean
- Source
includeInReports :boolean
Whether to generate usage reports
- boolean
- Source
infoCmd :string
System command to be launched when the user clicks on the 'info' button. Default is null
.
Important: this parameter is currently not being used
- string
- Source
infoUrl :string
URL to be launched when the user clicks on the 'info' button. Default is null
.
- string
- Source
invAss :boolean
Flag to indicate "inverse resolution" in complex associations
- boolean
- Source
margin :number
The space between the activity components measured in pixels.
- number
- Source
maxActions :number
Maximum number of actions allowed to solve the activity. The default value is 0, meaning
unlimited actions.
- number
- Source
maxTime :number
Maximum amount of time (seconds) to solve the activity. The default value is 0, meaning
unlimited time.
- number
- Source
menuElements :Array.<object>
Array of menu elements, used in activities of type Menu
- Array.<object>
- Source
messages :Array.<module:boxes/ActiveBoxContent.ActiveBoxContent>
The content of the initial, final, previous and error messages shown by the activity.
- Source
name :string
The Activity name
- string
- Source
numericContent :boolean
This activity uses numeric expressions, so text literals should be
converted to numbers for comparisions, taking in account the
number format of the current locale (dot or comma as decimal separator)
- boolean
- Source
prevScreen :boolean
When true
, a text will be shown before the beginning of the activity.
- boolean
prevScreenMaxTime :number
Maximum amount of time for showing the previous document.
- number
prevScreenStyle :module:boxes/BoxBase.BoxBase
The style of the optional text to be shown before the beginning of the activity.
prevScreenText :string
Optional text to be shown before the beginning of the activity. When null
, this text is
the main document.
- string
project :module:project/JClicProject.JClicProject
The JClicProject
to which this activity belongs
- Source
reportActions :boolean
Whether to send action events to the Reporter
- boolean
- Source
showSolution :boolean
Whether to show the solution on the help window.
- boolean
- Source
shuffleA :boolean
Box grid A must be shuffled.
- boolean
- Source
shuffleB :boolean
Box grid B must be shuffled.
- boolean
- Source
shuffles :number
Number of times to shuffle the cells at the beginning of the activity
- number
- Source
skinFileName :string
File name of the Skin used by the activity. The default value is null
, meaning that the
activity will use the skin specified for the project.
- string
- Source
tgc :module:boxes/TextGridContent.TextGridContent
Content of the grid of letters used in crosswords and shuffled letters
- Source
tiledBgImg :boolean
Whether the bgImage (if any) has to be tiled across the panel background
- boolean
- Source
transparentBg :boolean
Whether the activity window has transparent background.
- boolean
- Source
type :string
Type of activity, used in text activities to distinguish between different variants of the
same activity. Possible values are: orderWords
, orderParagraphs
, identifyWords
andidentifyChars
.
- string
- Source
useOrder :boolean
Wheter the activity must be solved in a specific order or not.
- boolean
- Source
windowSize :module:AWT.Dimension
Preferred dimension of the activity window
- Source
(static) Panel :class
Panel class associated to this type of activity: OrderTextPanel
- class
Methods
canReinit() → {boolean}
Whether or not the activity can be reset
- Source
- Type:
- boolean
clear()
Called when the activity must reset its internal components
- Source
end()
Called when the activity must be disposed
- Source
getActivityPanel(ps) → {module:Activity.ActivityPanel}
Builds the ActivityPanel
object.
Subclasses must update the Panel
member of its prototypes to produce specific panels.
Name | Type | Description |
---|---|---|
ps | module:JClicPlayer. | The |
- Source
getAttributes() → {object}
Gets a object with the basic attributes needed to rebuild this instance excluding functions,
parent references, constants and also attributes retaining the default value.
The resulting object is commonly usued to serialize elements in JSON format.
- Source
- The resulting object, with minimal attrributes
- Type:
- object
getWindowSize() → {module:AWT.Dimension}
Getter method for windowSize
- Source
- Type:
- module:AWT.
Dimension
hasInfo() → {boolean}
Whether or not the activity has additional information to be shown.
- Source
- Type:
- boolean
hasRandom() → {boolean}
Whether or not the activity uses random to shuffle internal components
- Type:
- boolean
helpSolutionAllowed() → {boolean}
Whether the activity allows the user to request help.
- Type:
- boolean
helpWindowAllowed() → {boolean}
Whether the activity allows the user to request help.
- Source
- Type:
- boolean
initAutoContentProvider()
Initialises the AutoContentProvider
, when defined.
- Source
mustPauseSequence() → {boolean}
When this method returns true
, the automatic jump to the next activity must be paused at
this activity.
- Source
- Type:
- boolean
needsKeyboard() → {boolean}
When true
, the activity makes use of the keyboard
- Source
- Type:
- boolean
prepareMedia(ps)
Preloads the media content of the activity.
Name | Type | Description |
---|---|---|
ps | module:JClicPlayer. | The |
- Source
readMessage($xml) → {module:boxes/ActiveBoxContent.ActiveBoxContent}
Read an activity message from an XML element
Name | Type | Description |
---|---|---|
$xml | external:jQuery | The XML element to be parsed |
- Source
setAttributes(data)
Load the activity settings from a data object
Name | Type | Description |
---|---|---|
data | object | The data object to parse |
- Source
setProperties($xml)
Loads this object settings from an XML element
Name | Type | Description |
---|---|---|
$xml | external:jQuery | The jQuery XML element to parse |
- Source
setWindowSize(windowSize)
Setter method for windowSize
Name | Type | Description |
---|---|---|
windowSize | module:AWT. |
- Source
shuffleAlways() → {boolean}
When true
, the activity must always be shuffled
- Type:
- boolean