public class ExtendedPlayer extends Player
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_ABOUT |
static int |
ACTION_EXIT |
static String[] |
ACTION_ICONS_EXT |
static int |
ACTION_LIBRARIES |
static String[] |
ACTION_NAME_EXT |
static int |
ACTION_OPEN_FILE |
static int |
ACTION_OPEN_URL |
static int |
ACTION_SETTINGS |
protected JMenu |
activityMenu |
protected JMenu |
fileMenu |
protected FressaFunctions |
fressa |
protected JMenu |
helpMenu |
protected JMenuBar |
menuBar |
static String |
MESSAGES_BUNDLE |
static int |
NUM_ACTIONS_EXT |
protected JMenu |
recentFilesMenu |
protected int |
recentFilesOffset |
protected PlayerSettings |
settings |
protected JMenu |
toolsMenu |
ACTION_ICONS, actions, activeMediaBag, actPanel, appName, audioEnabled, DEFAULT_APP_NAME, DEFAULT_EVENT_SOUNDS, DEFAULT_REPORTER, DEFAULT_SKIN, defaultSkin, eventSounds, history, messages, navButtonsAlways, navButtonsDisabled, project, reporter, skin, timer, trace
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 |
---|
ExtendedPlayer(Options options)
Creates new ExtendedPlayer
|
Modifier and Type | Method and Description |
---|---|
protected void |
addRecentFile(String fName) |
void |
addTo(RootPaneContainer cont,
Object constraints)
Instructs this
RunnableComponent to be self-placed into the
specified RootPaneContainer . |
protected void |
buildActions() |
protected void |
checkMenu(boolean recreate) |
protected FileSystem |
createFileSystem() |
protected void |
createMenu() |
protected void |
doInstall(String fileName) |
protected Icon |
getActionIcon(int actionId) |
protected String |
getActionName(int actionId) |
FressaFunctions |
getFressa()
FressaFunctions offers special accessibility features
like atomatic scanning and voice synthesis.
|
protected int |
getNumActions() |
protected void |
init()
Main initialization process, called once by constructors.
|
protected void |
launchProjectLibrary(ProjectLibrary pl) |
boolean |
load(String fullPath,
String sequence) |
protected void |
postCreateMenu() |
protected boolean |
processActionEvent(String ac) |
Messages |
setMessages()
Creates and initializes the
messages member. |
boolean |
start(String fullPath,
String sequence)
Starts the player, loading a specific project if specified.
|
protected void |
updateRecentFilesMenu() |
actionPerformed, activate, activityFinished, closeHelpWindow, createCursors, createEventSounds, displayUrl, displayUrl, doAutoStart, doLayout, end, exit, exit, finalize, forceFinishActivity, getAction, getActiveMediaPlayer, getComponent, getCounterValue, getCustomCursor, getHistory, getMessages, getMsg, getOptions, getProgressInputStream, getSkin, getTopComponent, incCounterValue, initActivity, initReporter, initSkin, initTimers, load, newInstanceRequest, paintComponent, playMedia, playMsg, removeActivity, reportEndActivity, reportNewAction, reportNewActivity, requestFocus, runCmd, setActionsText, setBackgroundSettings, setCountDown, setCounterEnabled, setCounterValue, setMsg, setProject, setSkin, setSystemMessage, setWaitCursor, setWindowTitle, setWindowTitle, showAbout, showHelp, startActivity, startAutoPassTimer, stop, stopMedia, stopMedia, windowCloseRequested
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 MESSAGES_BUNDLE
protected int recentFilesOffset
protected JMenuBar menuBar
protected JMenu fileMenu
protected JMenu recentFilesMenu
protected JMenu activityMenu
protected JMenu toolsMenu
protected JMenu helpMenu
protected PlayerSettings settings
protected FressaFunctions fressa
public static final int ACTION_OPEN_FILE
public static final int ACTION_OPEN_URL
public static final int ACTION_EXIT
public static final int ACTION_SETTINGS
public static final int ACTION_LIBRARIES
public static final int ACTION_ABOUT
public static final int NUM_ACTIONS_EXT
public static final String[] ACTION_NAME_EXT
public static final String[] ACTION_ICONS_EXT
public ExtendedPlayer(Options options)
protected void init()
Player
Player
should override this method to initialize additional members.protected void doInstall(String fileName)
public boolean start(String fullPath, String sequence)
Player
RunnableComponent
interface.start
in interface RunnableComponent
start
in class Player
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 Messages setMessages()
Player
messages
member.setMessages
in class Player
messages
member.protected FileSystem createFileSystem()
createFileSystem
in class Player
protected void createMenu()
protected void postCreateMenu()
public void addTo(RootPaneContainer cont, Object constraints)
RunnableComponent
RunnableComponent
to be self-placed into the
specified RootPaneContainer
.addTo
in interface RunnableComponent
addTo
in class Player
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 void checkMenu(boolean recreate)
protected void updateRecentFilesMenu()
protected int getNumActions()
getNumActions
in class Player
protected void buildActions()
buildActions
in class Player
protected String getActionName(int actionId)
getActionName
in class Player
protected Icon getActionIcon(int actionId)
getActionIcon
in class Player
protected boolean processActionEvent(String ac)
processActionEvent
in class Player
protected void launchProjectLibrary(ProjectLibrary pl)
protected void addRecentFile(String fName)
public FressaFunctions getFressa()
getFressa
in interface PlayStation
getFressa
in class Player
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.