public class SchedulerPanel extends JPanel implements MouseListener, ActionListener, ListSelectionListener, Runnable, PropertyChangeListener, ScheduleListener, WindowListener, MouseWheelListener, ChangeListener, ItemListener, KeyListener, MouseMotionListener, com.tplan.robot.gui.editor.AbstractEditor
SchedulerDiagram
), a tool
bar at the top and a panel at the bottom to display details of the selected
schedule element.T-Plan Robot Enterprise, (C) 2009-2025 T-Plan Limited. All rights reserved.
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_SCHEDULE_LOADED |
static String |
PROPERTY_SCHEDULE_SAVED |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
SchedulerPanel() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
checkFileModifiedAndReload(boolean ask)
Test out if the file has been externally modified and reload it
eventually.
|
boolean |
close()
Close the editor and discard the changes.
|
boolean |
close(boolean discardChanges) |
void |
deleteBackup()
Delete the backup file if applicable.
|
void |
doBackUp()
Perform a back up.
|
void |
doRedo(ActionEvent e)
Perform redo.
|
void |
doUndo(ActionEvent e)
Perform undo.
|
static JDialog |
getDlg(Window owner,
Schedule schedule) |
List |
getErrors()
Get the list of editor errors.
|
File |
getFile()
Get the file associated with the editor.
|
File |
getLastFile()
Get the last opened workitem file.
|
Schedule |
getSchedule() |
boolean |
isDocumentChanged()
Test out if the editor content has been changed
|
boolean |
isRedoEnabled()
Test out if redo can be performed.
|
boolean |
isTabbedMode() |
boolean |
isUndoEnabled()
Test out if undo can be performed.
|
void |
itemStateChanged(ItemEvent e) |
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
mouseWheelMoved(MouseWheelEvent e) |
void |
propertyChange(PropertyChangeEvent evt) |
void |
run() |
void |
save()
Save the editor contents to the associated file.
|
boolean |
saveAs()
Save the editor contents to another file.
|
void |
scheduleEvent(ScheduleEvent e)
Called when a schedule event is available.
|
void |
setActive(boolean active)
Called when the editor gets active (selected/topmost) or inactive
(hidden).
|
void |
setSchedule(Schedule schedule) |
void |
setTabbedMode(boolean tabbedMode) |
void |
stateChanged(ChangeEvent e) |
void |
valueChanged(ListSelectionEvent e) |
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e) |
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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 PROPERTY_SCHEDULE_LOADED
public static final String PROPERTY_SCHEDULE_SAVED
public void setSchedule(Schedule schedule)
public Schedule getSchedule()
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved
in interface MouseWheelListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public boolean close()
com.tplan.robot.gui.editor.AbstractEditor
close
in interface com.tplan.robot.gui.editor.AbstractEditor
public boolean close(boolean discardChanges)
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void scheduleEvent(ScheduleEvent e)
ScheduleListener
scheduleEvent
in interface ScheduleListener
e
- the schedule event.public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public File getLastFile()
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public boolean isDocumentChanged()
com.tplan.robot.gui.editor.AbstractEditor
isDocumentChanged
in interface com.tplan.robot.gui.editor.AbstractEditor
public boolean isUndoEnabled()
com.tplan.robot.gui.editor.AbstractEditor
isUndoEnabled
in interface com.tplan.robot.gui.editor.AbstractEditor
public boolean isRedoEnabled()
com.tplan.robot.gui.editor.AbstractEditor
isRedoEnabled
in interface com.tplan.robot.gui.editor.AbstractEditor
public File getFile()
com.tplan.robot.gui.editor.AbstractEditor
getFile
in interface com.tplan.robot.gui.editor.AbstractEditor
public List getErrors()
com.tplan.robot.gui.editor.AbstractEditor
getErrors
in interface com.tplan.robot.gui.editor.AbstractEditor
public void setActive(boolean active)
com.tplan.robot.gui.editor.AbstractEditor
setActive
in interface com.tplan.robot.gui.editor.AbstractEditor
active
- true/false for active/inactive.public void doBackUp()
com.tplan.robot.gui.editor.AbstractEditor
doBackUp
in interface com.tplan.robot.gui.editor.AbstractEditor
public void deleteBackup()
com.tplan.robot.gui.editor.AbstractEditor
deleteBackup
in interface com.tplan.robot.gui.editor.AbstractEditor
public void doUndo(ActionEvent e)
com.tplan.robot.gui.editor.AbstractEditor
doUndo
in interface com.tplan.robot.gui.editor.AbstractEditor
e
- an action event identifying the source of this event.public void doRedo(ActionEvent e)
com.tplan.robot.gui.editor.AbstractEditor
doRedo
in interface com.tplan.robot.gui.editor.AbstractEditor
e
- an action event identifying the source of this event.public void save()
com.tplan.robot.gui.editor.AbstractEditor
save
in interface com.tplan.robot.gui.editor.AbstractEditor
public boolean saveAs()
com.tplan.robot.gui.editor.AbstractEditor
saveAs
in interface com.tplan.robot.gui.editor.AbstractEditor
public void checkFileModifiedAndReload(boolean ask)
com.tplan.robot.gui.editor.AbstractEditor
checkFileModifiedAndReload
in interface com.tplan.robot.gui.editor.AbstractEditor
ask
- if true the method should display a warning.public boolean isTabbedMode()
public void setTabbedMode(boolean tabbedMode)
tabbedMode
- the tabbedMode to set