public class Player extends JPanel implements Constants, RunnableComponent, PlayStation, ActionListener
Player
is one of the the main classes of the JClic system. It implements the
PlayStation
interface, so it can read and play JClic
projects from files or streams. In order to allow activities to run,
Player
provides them of all the necessary resources: media bags
(to load and realize images and other media contents), sequence control,
report system management, user interface (loading and management of skins),
display of system messages, etc.
Player is also a RunnableComponent
, so it can be
embedded in applets, frames and other containers.JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String[] |
ACTION_ICONS
List of the names of the internal resources corresponding to the default icons
associated to the basic actions defined in
Constants . |
protected Action[] |
actions
Array containing the
Action objects used by the player. |
protected ActiveMediaBag |
activeMediaBag
Bag of realized media objects, ready to play.
|
protected Activity.Panel |
actPanel
The UI element (
Panel )of the Activity currently
running in the Player . |
protected String |
appName
The main name of the application in wich this
Player is running. |
protected boolean |
audioEnabled
This flag indicates if the
Player must play the sounds (including
system sounds) and other media contents of the activities. |
static String |
DEFAULT_APP_NAME
The default name of the application (JClic)
|
static String[] |
DEFAULT_EVENT_SOUNDS
List of the names of the internal resources corresponding to the default
event sounds used by JClic.
|
static String |
DEFAULT_REPORTER
Name of the default reporter used by JClic.
|
static String |
DEFAULT_SKIN
Name of the resource corresponding to the default skin of JClic.
|
protected Skin |
defaultSkin
Default skin of this
Player . |
protected EventSounds |
eventSounds
Current set of system sonds used in this
Player . |
protected PlayerHistory |
history
This object manages a list with the names of all the activities
currently played by the user in this
Player . |
protected Messages |
messages
The main
Messages object. |
protected boolean |
navButtonsAlways
When this flag is
true , the navigation buttons are always enabled,
despite of the indications made by the activities or the sequence control system. |
protected boolean |
navButtonsDisabled
This flag indicates if the navigation buttons (go to next activity and
go back) are enabled o disabled.
|
protected JClicProject |
project
The
JClicProject currently hosted by the
Player . |
protected Reporter |
reporter
Current reporter used by this
Player . |
protected Skin |
skin
Current
Skin of the Player . |
protected Timer |
timer
Main
Timer , used to feed the time conter. |
protected boolean |
trace
This flag indicates if the program must write verbose info to the system console.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
AC_MARGIN, ACTION_AUDIO, ACTION_HLP, ACTION_INFO, ACTION_NAME, ACTION_NEXT, ACTION_PREV, ACTION_REPORTS, ACTION_RESET, ACTION_RETURN, ACTIONS_COUNTER, ACTIVITY_OBJECT, AUDIO_ENABLED, BG_COLOR, COMMON_SETTINGS, COMPRESS_IMAGES, COOKIE, counterNames, DEFAULT, DEFAULT_BUNDLE, DEFAULT_RENDERING_HINTS, DYNAMIC_ACTIONS, ENABLED, EXIT_URL, EXTERNAL_OBJECT, FALSE, HAND_CURSOR, ID, INFO_URL_FRAME, JMF, LOGO_ICON, MEDIA_OBJECT, MEDIA_SYSTEM, MEDIA_SYSTEMS, MIN_CELL_SIZE, MYURL, NAV_BUTTONS_ALWAYS, NO_MEDIASYSTEM_WARN, NUM_ACTIONS, NUM_COUNTERS, OK_CURSOR, PRE_DRAW_IMAGES, PROGRAM, PROJECT_OBJECT, QT, QT61, REC_CURSOR, REPORTER_CLASS, REPORTER_PARAMS, SCORE_COUNTER, SEQUENCE_OBJECT, SKIN, SKIN_OBJECT, SYSTEM_SOUNDS, T_ACTIVITY, T_ANIM, T_AUDIO, T_CLIC, T_EXTERNAL, T_FONT, T_IMAGE, T_INST, T_JCLIC, T_MEDIA, T_MIDI, T_SEQUENCE, T_TEXT, T_UNKNOWN_MEDIA, T_URL, T_VIDEO, T_XML, TIME_COUNTER, TRACE, TRUE, URL_BASE, URL_OBJECT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
Player(Options options)
Creates a new
Player object. |
Player(Options options,
JClicProject project)
Creates a new
Player object that will be initially loaded with a specific
JClicProject . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
activate()
This method is called when the container gains the focus for the first
time or when losts it.
|
void |
activityFinished(boolean completedOk)
Activity panels use this method to notify Players that the user has finished the
current activity.
|
void |
addTo(RootPaneContainer cont,
Object constraints)
Instructs this
RunnableComponent to be self-placed into the
specified RootPaneContainer . |
protected void |
buildActions() |
void |
closeHelpWindow()
If open, closes the help dialog window.
|
protected void |
createCursors()
Creates and initializes the members of the
cursors array. |
protected void |
createEventSounds()
Creates the
eventSounds member and initializes the sound system. |
protected FileSystem |
createFileSystem() |
void |
displayUrl(String url,
boolean inFrame) |
void |
displayUrl(URL url,
boolean inFrame) |
void |
doAutoStart() |
void |
doLayout() |
void |
end()
Executes miscellaneous finalization routines.
|
void |
exit() |
void |
exit(String url) |
protected void |
finalize() |
void |
forceFinishActivity() |
Action |
getAction(int id)
The action corresponding to this index.
|
protected Icon |
getActionIcon(int actionId) |
protected String |
getActionName(int actionId) |
ActiveMediaPlayer |
getActiveMediaPlayer(MediaContent mediaContent)
Provides an appropiated
MediaPlayer suitable for a specific media. |
JComponent |
getComponent() |
int |
getCounterValue(int counterId)
Gets the current value of the specified counter.
|
Cursor |
getCustomCursor(int type)
Gets the custom cursor corresponding to the indicated type
|
FressaFunctions |
getFressa()
FressaFunctions offers special accessibility features
like atomatic scanning and voice synthesis.
|
PlayerHistory |
getHistory() |
Messages |
getMessages() |
String |
getMsg(String key) |
protected int |
getNumActions() |
Options |
getOptions() |
InputStream |
getProgressInputStream(InputStream is,
int expectedLength,
String name) |
Skin |
getSkin() |
Component |
getTopComponent() |
void |
incCounterValue(int counterId)
Increments the value of the specified counter, or decrements it when in
countDown mode.
|
protected void |
init()
Main initialization process, called once by constructors.
|
void |
initActivity() |
protected void |
initReporter()
Creates and initializes the
reporter member. |
protected void |
initSkin()
Creates and initializes the
defaultSkin member. |
protected void |
initTimers()
Creates and initializes the members
timer , delayedTimer and
delayedAction |
boolean |
load(String fullPath,
String sequence) |
void |
load(String sFullPath,
String sSequence,
String sActivity,
ActivityBagElement sAbe) |
boolean |
newInstanceRequest(String param1,
String param2)
A new instance of the
RunnableComponent has been requested by the user. |
void |
paintComponent(Graphics g) |
void |
playMedia(MediaContent mediaContent,
ActiveBox mediaPlacement)
Plays, performs or executes a MediaContent.
|
void |
playMsg()
Performs or executes the media associated with the current content of the
player's message box, if any.
|
protected boolean |
processActionEvent(String ac) |
void |
removeActivity() |
void |
reportEndActivity(Activity act,
boolean solved)
Notifies the
Reporter (if any) that an action has
been finished. |
void |
reportNewAction(Activity act,
String type,
String source,
String dest,
boolean ok,
int currentScore)
Notifies the
Reporter (if any) that an action has
been performed. |
void |
reportNewActivity(Activity act,
int currentScore)
Notifies the player that the activity has been
started.
|
void |
requestFocus() |
protected void |
runCmd(String cmd) |
protected void |
setActionsText() |
protected void |
setBackgroundSettings(Activity act) |
void |
setCountDown(int counterId,
int maxValue)
Changes the mode of operation of the specified counter to count down, starting
by the indicated value and stopping at zero.
|
void |
setCounterEnabled(int counterId,
boolean bEnabled)
Enables or disables the specified counter.
|
void |
setCounterValue(int counterId,
int newValue)
Sets the specified counter to a specific value.
|
protected Messages |
setMessages()
Creates and initializes the
messages member. |
void |
setMsg(ActiveBoxContent abc)
Sets the content of the messages area of the player.
|
protected void |
setProject(JClicProject p) |
void |
setSkin(Skin newSkin) |
void |
setSystemMessage(String msg1,
String msg2)
Sets the text of the system messages, usually displayed in the status bar of the
player.
|
void |
setWaitCursor(boolean state)
Enables or disables the wait cursor (hourglass).
|
void |
setWindowTitle() |
void |
setWindowTitle(String docTitle) |
protected void |
showAbout(boolean selectReportPane) |
boolean |
showHelp(JComponent hlpComponent,
String hlpMsg)
Instructs the Player to show a help dialog window displaying a content associated with the current
activity.
|
boolean |
start(String fullPath,
String sequence)
Starts the player, loading a specific project if specified.
|
void |
startActivity(Activity.Panel ap)
Turns on the specified
Activity.Panel . |
void |
startAutoPassTimer() |
void |
stop()
Instructs the RunnableComponent to stop working.
|
void |
stopMedia() |
void |
stopMedia(int level)
Stops all the media content currently playing that has a priority level equal or
below the specified.
|
boolean |
windowCloseRequested()
Called by the main container when it receives a
windowClosing event. |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String DEFAULT_SKIN
public static final String DEFAULT_REPORTER
public static final String[] DEFAULT_EVENT_SOUNDS
public static final String[] ACTION_ICONS
Constants
.public static final String DEFAULT_APP_NAME
protected JClicProject project
JClicProject
currently hosted by the
Player
.protected Activity.Panel actPanel
Panel
)of the Activity
currently
running in the Player
.protected PlayerHistory history
Player
.protected Skin defaultSkin
Player
. Users can override the
DEFAULT_SKIN
setting and choose another Skin to be used by
default in JClic.protected ActiveMediaBag activeMediaBag
protected Reporter reporter
Player
.protected EventSounds eventSounds
Player
.protected Timer timer
Timer
, used to feed the time conter. This timer generates an
ActionPerformed
event every second.protected boolean audioEnabled
Player
must play the sounds (including
system sounds) and other media contents of the activities.protected boolean trace
protected boolean navButtonsDisabled
protected boolean navButtonsAlways
true
, the navigation buttons are always enabled,
despite of the indications made by the activities or the sequence control system.
Used only for debugging projects with complicated sequence chaining.protected String appName
Player
is running.public Player(Options options)
Player
object.options
- Options object to be used in the initialization processpublic Player(Options options, JClicProject project)
Player
object that will be initially loaded with a specific
JClicProject
.options
- Options object to be used in the initialization processproject
- JClic project to load (can be null
)protected void init()
Player
should override this method to initialize additional members.public boolean start(String fullPath, String sequence)
RunnableComponent
interface.start
in interface RunnableComponent
fullPath
- Full path to the JClic project file to be loaded. Can be
null.sequence
- Optional parameter, used only when fullPath
is not null. It
indicates the sequence where the to start. It's also possible to indicate
a string representation of a number "N". In this case, the player will
start with the activity indicated by the Nth element of the main sequence
of the project.true
if the player starts successfully.
false
otherwise.public void activate()
Player
.activate
in interface RunnableComponent
public void stop()
stop
in interface RunnableComponent
protected void finalize() throws Throwable
public void end()
end
in interface RunnableComponent
protected void createCursors()
cursors
array.protected void createEventSounds()
eventSounds
member and initializes the sound system.protected void initReporter()
reporter
member.protected void initSkin()
defaultSkin
member.protected void initTimers()
timer
, delayedTimer
and
delayedAction
public void closeHelpWindow()
protected Messages setMessages()
messages
member.messages
member.public Component getTopComponent()
public Skin getSkin()
public void setSkin(Skin newSkin)
newSkin
- public void addTo(RootPaneContainer cont, Object constraints)
RunnableComponent
RunnableComponent
to be self-placed into the
specified RootPaneContainer
.addTo
in interface RunnableComponent
cont
- The container in wich the component should be placed.constraints
- The constraints used in the call to the add
method of the Container
. This parameter can be null
.protected FileSystem createFileSystem()
protected void setProject(JClicProject p)
public void load(String sFullPath, String sSequence, String sActivity, ActivityBagElement sAbe)
public void forceFinishActivity()
public void removeActivity()
public void initActivity()
public void startActivity(Activity.Panel ap)
PlayStation
Activity.Panel
.startActivity
in interface PlayStation
ap
- The activity panel that will be started.public void paintComponent(Graphics g)
paintComponent
in class JComponent
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
protected int getNumActions()
protected void buildActions()
protected void setActionsText()
protected String getActionName(int actionId)
protected Icon getActionIcon(int actionId)
public Action getAction(int id)
PlayStation
edu.xtec.jclic.Constants
.getAction
in interface PlayStation
id
- The index for the requested action.protected boolean processActionEvent(String ac)
protected void showAbout(boolean selectReportPane)
public void playMedia(MediaContent mediaContent, ActiveBox mediaPlacement)
PlayStation
playMedia
in interface PlayStation
mediaContent
- The MediaContent
to be performed.mediaPlacement
- The ActiveBox
where the graphical content of the media (if any) will be
displayed.protected void runCmd(String cmd)
public void stopMedia()
public void stopMedia(int level)
PlayStation
stopMedia
in interface PlayStation
level
- The priority level under wich all media contents will be halted, or -1 to stop
all media.public void activityFinished(boolean completedOk)
PlayStation
activityFinished
in interface PlayStation
completedOk
- true
if the activity was successfully finished.public void startAutoPassTimer()
protected void setBackgroundSettings(Activity act)
public void setMsg(ActiveBoxContent abc)
PlayStation
setMsg
in interface PlayStation
abc
- The content to show in the message box.public void playMsg()
PlayStation
playMsg
in interface PlayStation
public void incCounterValue(int counterId)
PlayStation
incCounterValue
in interface PlayStation
counterId
- The identifier of the counter, as specified in
edu.xtec.jclic.Constants
.public void setCountDown(int counterId, int maxValue)
PlayStation
setCountDown
in interface PlayStation
counterId
- The identifier of the counter, as specified in
edu.xtec.jclic.Constants
.maxValue
- The value to initially assign to the counter.public void setCounterValue(int counterId, int newValue)
PlayStation
setCounterValue
in interface PlayStation
counterId
- The identifier of the counter, as specified in
edu.xtec.jclic.Constants
.newValue
- The value to be assigned to the counter.public int getCounterValue(int counterId)
PlayStation
getCounterValue
in interface PlayStation
counterId
- The identifier of the counter, as specified in
edu.xtec.jclic.Constants
.public void setCounterEnabled(int counterId, boolean bEnabled)
PlayStation
setCounterEnabled
in interface PlayStation
counterId
- The identifier of the counter to enable or disable, as specified in
edu.xtec.jclic.Constants
.bEnabled
- true
to enable the counter, false
otherwise.public Messages getMessages()
public void setWaitCursor(boolean state)
PlayStation
true
or false
params.
The hourglass is maintained while the counter remains >0.setWaitCursor
in interface PlayStation
state
- To enable or disable the wait cursor.public void setSystemMessage(String msg1, String msg2)
PlayStation
setSystemMessage
in interface PlayStation
msg1
- Text of the main message.msg2
- Text of the secondary message.public JComponent getComponent()
getComponent
in interface ResourceBridge
public ActiveMediaPlayer getActiveMediaPlayer(MediaContent mediaContent)
PlayStation
MediaPlayer
suitable for a specific media.getActiveMediaPlayer
in interface PlayStation
mediaContent
- The MediaContent
to be used in this MediaPlayer
.MediaPlayer
useful for this MediaContent
.public Cursor getCustomCursor(int type)
getCustomCursor
in interface PlayStation
type
- Type of cursor.public void reportNewActivity(Activity act, int currentScore)
PlayStation
reportNewActivity
in interface PlayStation
act
- The Activity
that has been started.currentScore
- The score at the beggining of the activity (usually zero, but can be different
in some cases)public void reportNewAction(Activity act, String type, String source, String dest, boolean ok, int currentScore)
PlayStation
Reporter
(if any) that an action has
been performed. This method is only used by activities that explicity have the
reportActions
flag set.reportNewAction
in interface PlayStation
act
- The activity in wich panel the action has been performed.type
- The type of action, as defined in Activity
.source
- The description of the object (cell, word, letter...) in wich the action has
been performed.dest
- If the action involves more than one object, the description of the second one.ok
- true
if the action was successful, false
otherwise.currentScore
- Score obtained just after the action.public void reportEndActivity(Activity act, boolean solved)
PlayStation
Reporter
(if any) that an action has
been finished.reportEndActivity
in interface PlayStation
act
- The Activity yhat has been finished.solved
- true
if the activity was solved, false
otherwise.public boolean showHelp(JComponent hlpComponent, String hlpMsg)
PlayStation
showHelp
in interface PlayStation
hlpComponent
- The JComponent
to be placed in the help dialog, or null
if no special
content must be used. Activities usually use HelpActivityComponent
objects for this param.hlpMsg
- A message to be displayed on the help window, usually used in place of a
specific JComponent. This parameter can be null
.true
if the user clicks on the OK button of the help dialog, false
otherwise.public InputStream getProgressInputStream(InputStream is, int expectedLength, String name)
getProgressInputStream
in interface ResourceBridge
public Options getOptions()
getOptions
in interface ResourceBridge
public PlayerHistory getHistory()
public void displayUrl(String url, boolean inFrame)
displayUrl
in interface ResourceBridge
public void displayUrl(URL url, boolean inFrame)
public void exit()
public void exit(String url)
public void requestFocus()
requestFocus
in class JComponent
public String getMsg(String key)
getMsg
in interface ResourceBridge
public void doAutoStart()
public boolean newInstanceRequest(String param1, String param2)
RunnableComponent
RunnableComponent
has been requested by the user.newInstanceRequest
in interface RunnableComponent
param1
- First parameter passed to the component. Can be null
.param2
- Second parameter passed to the component. Can also be null
.true
if the request was successfull, false
otherwise.public boolean windowCloseRequested()
RunnableComponent
windowClosing
event.windowCloseRequested
in interface RunnableComponent
true
if the component can be safely disposed, false
otherwise.public void setWindowTitle(String docTitle)
public void setWindowTitle()
public FressaFunctions getFressa()
getFressa
in interface PlayStation
null
if accessibility features are not enabledCopyright © 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.