IdentifyTextPanel
Extends: module:activities/text/TextActivityBase.TextActivityBasePanel
Source: IdentifyText.js:54
The TextActivityBasePanel where IdentifyText activities are played.
Constructor
new IdentifyTextPanel(
act: module:Activity.Activity,
ps: module:JClicPlayer.JClicPlayer,
$div?: external:jQuery,
): IdentifyTextPanelIdentifyTextPanel constructor
Parameters
act(module:Activity.Activity) — The Activity to which this Panel belongsps(module:JClicPlayer.JClicPlayer) — Any object implementing the methods defined in the
PlayStation Java interface.$div(external:jQuery, optional) — The jQuery DOM element where this Panel will deploy
Instance Methods
$createTargetElement(
target: module:activities/text/TextActivityDocument.TextTarget,
$span: external:jQuery,
): external:jQuery
Creates a target DOM element for the provided target.
Parameters
target(module:activities/text/TextActivityDocument.TextTarget) — The target related to the DOM object to be created$span(external:jQuery)
Returns
initActivity()
Basic initialization procedure
countSolvedTargets(): number
Counts the number of targets that are solved
Returns
number
evaluatePanel(): boolean
Evaluates all the targets in this panel. This method is usually called from the Check button.
Returns
boolean
finishActivity(result: boolean)
Ordinary ending of the activity, usually called form processEvent
Parameters
result(boolean) —trueif the activity was successfully completed,falseotherwise
processEvent(event: external:Event): boolean
Main handler used to process mouse, touch, keyboard and edit events.
Parameters
event(external:Event) — The HTML event to be processed
Returns
boolean
setDocContent(
$div: external:jQuery,
doc: module:activities/text/TextActivityDocument.TextActivityDocument,
)
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#setDocContent
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#setDocContent
Fills a jQuery DOM element (usually a 'div') with the specified TextActivityDocument.
Parameters
$div(external:jQuery) — The jQuery DOM object to be filled with the document.doc(module:activities/text/TextActivityDocument.TextActivityDocument) — The document
$createTargetElement(
target: module:activities/text/TextActivityDocument.TextTarget,
$span: external:jQuery,
): external:jQuery
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#$createTargetElement
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$createTargetElement
Creates a target DOM element for the provided target.
Parameters
target(module:activities/text/TextActivityDocument.TextTarget) — The target related to the DOM object to be created$span(external:jQuery)
Returns
$createSpanElement($span: external:jQuery): external:jQuery
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#$createSpanElement
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$createSpanElement
Creates a 'span' element, used to isolate elements of text not involved in targets.
Used only when spanText is true.
Parameters
$span(external:jQuery) — An initial DOM object (usually aspan) that can be used
to store the target, or replaced by another type of object.
Returns
initActivity()
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#initActivity
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#initActivity
Basic initialization procedure
startActivity()
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#startActivity
Called when the activity starts playing
preInitActivity()
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#preInitActivity
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#preInitActivity
Called when the text activity has a 'previous screen' information to be shown before the
activity starts
evaluatePanel(): boolean
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#evaluatePanel
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#evaluatePanel
Evaluates all the targets in this panel. This method is usually called from the Check button.
Returns
boolean
finishActivity(result: boolean)
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#finishActivity
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#finishActivity
Ordinary ending of the activity, usually called form processEvent
Parameters
result(boolean) —trueif the activity was successfully completed,falseotherwise
processEvent(event: external:Event): boolean
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#processEvent
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#processEvent
Main handler used to process mouse, touch, keyboard and edit events.
Parameters
event(external:Event) — The HTML event to be processed
Returns
boolean
showPopup(
$popup: external:jQuery,
maxTime: number,
waitTime: number,
)
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#showPopup
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#showPopup
Parameters
$popup(external:jQuery) — The popup to display, or _null _ to just hide the current popupmaxTime(number) — The maximum time to mantain the popup on screen, in secondswaitTime(number) — When set, indicates the number of seconds to wait before show the popup
setBounds(rect: module:AWT.Rectangle)
Inherited from module:Activity.ActivityPanel#setBounds
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#setBounds
Sets the size and position of this activity panel
Parameters
rect(module:AWT.Rectangle)
buildVisualComponents()
Inherited from module:Activity.ActivityPanel#buildVisualComponents
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#buildVisualComponents
Prepares the visual components of the activity
updateContent(dirtyRegion: module:AWT.Rectangle)
Inherited from module:Activity.ActivityPanel#updateContent
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#updateContent
Activities should implement this method to update the graphic content of its panel. The method
will be called from module:AWT.Container#update when needed.
Parameters
dirtyRegion(module:AWT.Rectangle) — Specifies the area to be updated. Whennull,
it's the whole panel.
playEvent(event: string)
Inherited from module:Activity.ActivityPanel#playEvent
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#playEvent
Plays the specified event sound
Parameters
event(string) — The type of event to be performed
activityReady()
Inherited from module:Activity.ActivityPanel#activityReady
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#activityReady
Called by JClicPlayer when this activity panel is fully visible, just after the
initialization process.
showHelp()
Inherited from module:Activity.ActivityPanel#showHelp
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#showHelp
Displays help about the activity
setDimension(
maxSize: module:AWT.Dimension,
): module:AWT.Dimension
Inherited from module:Activity.ActivityPanel#setDimension
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#setDimension
Sets the real dimension of this ActivityPanel.
Parameters
maxSize(module:AWT.Dimension) — The maximum surface available for the activity panel
Returns
attachEvents()
Inherited from module:Activity.ActivityPanel#attachEvents
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#attachEvents
Attaches the events specified in the events member to the $div member
attachEvent($obj: external:jQuery, evt: string)
Inherited from module:Activity.ActivityPanel#attachEvent
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#attachEvent
Attaches a single event to the specified object
Parameters
$obj(external:jQuery) — The object to which the event will be attachedevt(string) — The event name
fitTo(
proposed: module:AWT.Rectangle,
bounds: module:AWT.Rectangle,
)
Inherited from module:Activity.ActivityPanel#fitTo
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#fitTo
Fits the panel within the proposed rectangle. The panel can occupy more space, but always
not surpassing the bounds rectangle.
Parameters
proposed(module:AWT.Rectangle) — The proposed rectanglebounds(module:AWT.Rectangle) — The maximum allowed bounds
buildAccessibleComponents()
Inherited from module:Activity.ActivityPanel#buildAccessibleComponents
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#buildAccessibleComponents
Builds the accessible components needed for this ActivityPanel
This method is called when all main elements are placed and visible, when the activity is ready
to start or when resized.
forceFinishActivity()
Inherited from module:Activity.ActivityPanel#forceFinishActivity
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#forceFinishActivity
Forces the ending of the activity.
setAndPlayMsg(msgCode: string, eventSoundsCode?: string)
Inherited from module:Activity.ActivityPanel#setAndPlayMsg
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#setAndPlayMsg
Sets the message to be displayed in the skin message box and optionally plays a sound event.
Parameters
msgCode(string) — Type of message (initial, final, finalError...)eventSoundsCode(string, optional) — Optional name of the event sound to be played.
end()
Inherited from module:Activity.ActivityPanel#end
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#end
Ends the activity
clear()
Inherited from module:Activity.ActivityPanel#clear
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#clear
Miscellaneous cleaning operations
enableCounters(
eTime: boolean,
eScore: boolean,
eActions: boolean,
)
Inherited from module:Activity.ActivityPanel#enableCounters
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#enableCounters
Enables or disables the three counters (time, score and actions)
Parameters
eTime(boolean) — Whether to enable or disable the time countereScore(boolean) — Whether to enable or disable the score countereActions(boolean) — Whether to enable or disable the actions counter
shuffle(
bg: Array.<module:boxes/ActiveBoxBag.ActiveBoxBag>,
visible: boolean,
fitInArea: boolean,
)
Inherited from module:Activity.ActivityPanel#shuffle
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#shuffle
Shuffles the contents of the activity
Parameters
bg(Array.<module:boxes/ActiveBoxBag.ActiveBoxBag>) — The sets of boxes to be shuffledvisible(boolean) — The shuffle process must be animated on the screen (not yet implemented!)fitInArea(boolean) — Shuffled pieces cannot go out of the current area
invalidate(rect: module:AWT.Rectangle)
Inherited from module:AWT.Container#invalidate
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#invalidate
Adds the provided rectangle to the invalidated area.
Parameters
rect(module:AWT.Rectangle)
update()
Inherited from module:AWT.Container#update
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#update
Updates the invalidated area
getBounds(): module:AWT.Rectangle
Inherited from module:AWT.Rectangle#getBounds
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#getBounds
Gets the enclosing Rectangle of this Shape.
Returns
equals(r: module:AWT.Shape): boolean
Inherited from module:AWT.Rectangle#equals
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#equals
Checks if two shapes are equivalent.
Parameters
r(module:AWT.Shape) — The Shape to compare against
Returns
boolean
clone(): module:AWT.Rectangle
Inherited from module:AWT.Rectangle#clone
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#clone
Clones this Rectangle
Returns
scaleBy(delta: Point | Dimension): module:AWT.Rectangle
Inherited from module:AWT.Rectangle#scaleBy
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#scaleBy
Multiplies the dimension of the Shape by the specified delta amount.
Parameters
Returns
grow(dx: number, dy: number): module:AWT.Rectangle
Inherited from module:AWT.Rectangle#grow
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#grow
Expands the boundaries of this shape. This affects the current position and dimension.
Parameters
dx(number) — The amount to grow (or decrease) in horizontal directiondy(number) — The amount to grow (or decrease) in vertical direction
Returns
getOppositeVertex(): module:AWT.Point
Inherited from module:AWT.Rectangle#getOppositeVertex
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#getOppositeVertex
Gets the module:AWT.Point corresponding to the lower-right vertex of the Rectangle.
Returns
add(shape: module:AWT.Shape): module:AWT.Rectangle
Inherited from module:AWT.Rectangle#add
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#add
Adds the boundaries of another shape to the current one
Parameters
shape(module:AWT.Shape) — The module:AWT.Shape to be added
Returns
getCoords(): string
Inherited from module:AWT.Rectangle#getCoords
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#getCoords
Gets a string with the co-ordinates of the upper-left and lower-right vertexs of this rectangle,
(with values rounded to int)
Returns
string
getAttributes(): object
Inherited from module:AWT.Rectangle#getAttributes
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#getAttributes
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.
Returns
object
setAttributes(data: object): module:AWT.Rectangle
Inherited from module:AWT.Rectangle#setAttributes
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#setAttributes
Reads the properties of this Rectangle from a data object
Parameters
data(object) — The data object to be parsed
Returns
moveBy(delta: Point | Dimension): module:AWT.Shape
Inherited from module:AWT.Shape#moveBy
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#moveBy
Shifts the shape a specified amount in horizontal and vertical directions
Parameters
Returns
moveTo(newPos: module:AWT.Point): module:AWT.Shape
Inherited from module:AWT.Shape#moveTo
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#moveTo
Moves this shape to a new position
Parameters
newPos(module:AWT.Point) — The new position of the shape
Returns
getShape(rect: module:AWT.Rectangle): module:AWT.Shape
Inherited from module:AWT.Shape#getShape
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#getShape
Gets a clone of this shape moved to the pos component of the rectangle and scaled
by its dim value.
Parameters
rect(module:AWT.Rectangle) — The rectangle to be taken as a base for moving and scaling
this shape.
Returns
contains(_p: module:AWT.Point): boolean
Inherited from module:AWT.Shape#contains
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#contains
Checks if the provided module:AWT.Point is inside this shape.
Parameters
_p(module:AWT.Point) — The point to check
Returns
boolean
intersects(_r: module:AWT.Rectangle): boolean
Inherited from module:AWT.Shape#intersects
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#intersects
Checks if the provided Rectangle r intersects with this shape.
Parameters
_r(module:AWT.Rectangle)
Returns
boolean
fill(
ctx: external:CanvasRenderingContext2D,
dirtyRegion?: module:AWT.Rectangle,
): external:CanvasRenderingContext2D
Inherited from module:AWT.Shape#fill
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#fill
Fills the Shape with the current style in the provided HTML canvas context
Parameters
ctx(external:CanvasRenderingContext2D) — The canvas 2D rendering context where to fill this shape.dirtyRegion(module:AWT.Rectangle, optional) — The context region to be updated. Used as clipping
region when drawing.
Returns
stroke(
ctx: external:CanvasRenderingContext2D,
): external:CanvasRenderingContext2D
Inherited from module:AWT.Shape#stroke
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#stroke
Draws this shape in the provided HTML canvas 2D rendering context.
Parameters
ctx(external:CanvasRenderingContext2D) — The canvas 2D rendering context where to draw the shape.
Returns
preparePath(
ctx: external:CanvasRenderingContext2D,
): external:CanvasRenderingContext2D
Inherited from module:AWT.Shape#preparePath
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#preparePath
Prepares an HTML canvas 2D rendering context with a path that can be used to stroke a line,
to fill a surface or to define a clipping region.
Parameters
Returns
clip(
ctx: external:CanvasRenderingContext2D,
fillRule?: string,
): external:CanvasRenderingContext2D
Inherited from module:AWT.Shape#clip
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#clip
Creates a clipping region on the specified HTML canvas 2D rendering context
Parameters
ctx(external:CanvasRenderingContext2D) — The rendering contextfillRule(string, optional, default: "'nonzero'") — Can be 'nonzero' (default when not set) or 'evenodd'
Returns
isRect(): boolean
Inherited from module:AWT.Shape#isRect
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#isRect
Shorthand method for determining if a Shape is an Rectangle
Returns
boolean
toString(): string
Inherited from module:AWT.Shape#toString
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#toString
Overwrites the original 'Object.toString' method with a more descriptive text
Returns
string
$createTargetElement(
target: module:activities/text/TextActivityDocument.TextTarget,
$span: external:jQuery,
): external:jQuery
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#$createTargetElement
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$createTargetElement
Creates a target DOM element for the provided target.
Parameters
target(module:activities/text/TextActivityDocument.TextTarget) — The target related to the DOM object to be created$span(external:jQuery)
Returns
initActivity()
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#initActivity
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#initActivity
Basic initialization procedure
startActivity()
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#startActivity
Called when the activity starts playing
evaluatePanel(): boolean
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#evaluatePanel
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#evaluatePanel
Evaluates all the targets in this panel. This method is usually called from the Check button.
Returns
boolean
finishActivity(result: boolean)
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#finishActivity
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#finishActivity
Ordinary ending of the activity, usually called form processEvent
Parameters
result(boolean) —trueif the activity was successfully completed,falseotherwise
processEvent(event: external:Event): boolean
Inherited from module:activities/text/IdentifyText~IdentifyTextPanel#processEvent
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#processEvent
Main handler used to process mouse, touch, keyboard and edit events.
Parameters
event(external:Event) — The HTML event to be processed
Returns
boolean
Static Methods
buildShape(data: object): module:AWT.Shape
Inherited from module:AWT.Shape
Builds a shape based on the provided data object.
Data should contain a 'type' member, specifying the type of shape requested ('rect', 'ellipse', 'rectangle' or 'path')
Parameters
data(object) — Specific data for this shape
Returns
Instance Fields
targets: Array.<external:jQuery>
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#targets
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#targets
Array of jQuery DOM elements (usually of type 'span') containing the targets of this activity
targetsMarked: boolean
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#targetsMarked
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#targetsMarked
Flag indicating if targets must be visually marked at the beginning of the activity.
Should be true except for IdentifyText activities.
$checkButton: external:jQuery
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#$checkButton
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$checkButton
The button used to check the activity, only when Activity.checkButtonText is not null
prevScreenTimer: number
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#prevScreenTimer
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#prevScreenTimer
System timer used to close the previous document when act.maxTime is reached.
$currentPopup: external:jQuery
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#$currentPopup
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$currentPopup
The popup currently been displayed
currentPopupTimer: number
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#currentPopupTimer
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#currentPopupTimer
A timer controlling the time the current popup will be displayed
popupWaitTimer: number
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#popupWaitTimer
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#popupWaitTimer
A timer prepared to display a popup after a while
spanText: boolean
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#spanText
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#spanText
When true, all text outside of targets and cells will be inserted as independent words or letters,
using 'span' elements. module:activities/text/TextActivityBase.TextActivityBasePanel#$createSpanElement can be used
to customize these elements.
spanChars: boolean
Inherited from module:activities/text/TextActivityBase.TextActivityBasePanel#spanChars
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#spanChars
When true, text spanning will be done at char level: each single letter will be a clickacle span.
Used only in activities of type "itentify letters"
act: module:Activity.Activity
Inherited from module:Activity.ActivityPanel#act
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#act
The Activity this panel is related to
$div: external:jQuery
Inherited from module:Activity.ActivityPanel#$div
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$div
The jQuery div element used by this panel
$canvas: external:jQuery
Inherited from module:Activity.ActivityPanel#$canvas
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$canvas
The jQuery main canvas element used by this panel
accessibleCanvas: boolean
Inherited from module:Activity.ActivityPanel#accessibleCanvas
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#accessibleCanvas
Always true, since canvas hit regions have been deprecated!
See: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Hit_regions_and_accessibility
skin: module:skins/Skin.Skin
Inherited from module:Activity.ActivityPanel#skin
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#skin
The realized current Skin
$animatedBg: external:jQuery
Inherited from module:Activity.ActivityPanel#$animatedBg
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$animatedBg
Background element (currently a span) used to place animated GIFs when needed
$animatedBgB: external:jQuery
Inherited from module:Activity.ActivityPanel#$animatedBgB
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#$animatedBgB
Additional background element for animated GIFs, used in associations
solved: boolean
Inherited from module:Activity.ActivityPanel#solved
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#solved
true when the activity is solved, false otherwise
bgImage: external:HTMLImageElement
Inherited from module:Activity.ActivityPanel#bgImage
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#bgImage
The realized image used as a background
playing: boolean
Inherited from module:Activity.ActivityPanel#playing
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#playing
true while the activity is playing
firstRun: boolean
Inherited from module:Activity.ActivityPanel#firstRun
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#firstRun
true if the activity is running for first time (not due to a click on the replay button)
currentItem: number
Inherited from module:Activity.ActivityPanel#currentItem
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#currentItem
Currently selected item. Used in some types of activities.
bc: module:boxes/BoxConnector.BoxConnector
Inherited from module:Activity.ActivityPanel#bc
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#bc
The object used to connect cells and other elements in some types of activity
ps: module:JClicPlayer.JClicPlayer
Inherited from module:Activity.ActivityPanel#ps
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#ps
The PlayStation used to realize media objects and communicate with the player services
(usually a JClicPlayer
minimumSize: module:AWT.Dimension
Inherited from module:Activity.ActivityPanel#minimumSize
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#minimumSize
The minimum size of this kind of ActivityPanel
preferredSize: module:AWT.Dimension
Inherited from module:Activity.ActivityPanel#preferredSize
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#preferredSize
The preferred size of this kind of ActivityPanel
events: Array.<string>
Inherited from module:Activity.ActivityPanel#events
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#events
List of events intercepted by this ActivityPanel. Current events are: 'keydown', 'keyup',
'keypress', 'mousedown', 'mouseup', 'click', 'dblclick', 'mousemove', 'mouseenter',
'mouseleave', 'mouseover', 'mouseout', 'touchstart', 'touchend', 'touchmove' and 'touchcancel'.
invalidatedRect: module:AWT.Rectangle
Inherited from module:AWT.Container#invalidatedRect
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#invalidatedRect
The currently "invalidated" area
type: string
Inherited from module:AWT.Rectangle#type
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#type
Shape type id
dim: module:AWT.Dimension
Inherited from module:AWT.Rectangle#dim
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#dim
The Dimension of the Rectangle
pos: module:AWT.Point
Inherited from module:AWT.Shape#pos
Overrides: module:activities/text/TextActivityBase.TextActivityBasePanel#pos
The current position of the shape