|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
dlife.gui.GUIPanel
dlife.robot.gui.DeviceDisplay
dlife.robot.gui.controlcenter.editor.CodeEditorDisplay
public class CodeEditorDisplay
A DeviceDisplay for editing/compiling code. This is built as a DeviceDisplay so that it can be placed in a tab in the ControlCenter. This class delegates the editor tasks to the TabbedCodeEditor and manages the contents of the error list itself. This class allows ActionListeners to register to receive ActionEvents when an editor tab containing a dlife.robot.Controller sub-class is double clicked.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class dlife.robot.gui.DeviceDisplay |
|---|
myDevice |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CodeEditorDisplay(String dataFileBase)
Create a new CodeEditorDisplay. |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener al)
Register an ActionListener to receive an ActionEvent if a tab containing a sub-class of dlife.robot.Controller is double clicked. |
protected void |
buildGUI()
All concrete subclasses must implement this method and use it to build their GUI. |
protected void |
disableGUI()
Does nothing. |
protected void |
enableGUI()
Does nothing. |
String |
getGUIName()
Return "Code" as the name of this display. |
boolean |
hasUnsavedModifications()
Check if the editor contains any files with modifications that have not yet been saved. |
static void |
main(String[] args)
Test method that displays a CodeEditorDisplay. |
void |
removeActionListener(ActionListener al)
Remove a registered ActionListener. |
void |
removeAllActionListeners()
Remove all of the registered ActionListeners. |
boolean |
showCancelQuitDialog()
Display a dialog box giving the user the option to cancel a quit operation because there was unsaved data in the code editor tab. |
protected void |
updateGUIFromDevice()
Does nothing. |
| Methods inherited from class dlife.robot.gui.DeviceDisplay |
|---|
getContentPanel, isActive, isEnabled, replaceContentPanel, setActive, setEnabled, update |
| Methods inherited from class dlife.gui.GUIPanel |
|---|
invokeBuildGUI |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CodeEditorDisplay(String dataFileBase)
dataFileBase - the path where the data files for storing the state
of the editor between sessions should be saved. This path
should contain a trailing /| Method Detail |
|---|
protected void buildGUI()
GUIPanel
buildGUI in class GUIPanelprotected void disableGUI()
disableGUI in class DeviceDisplayprotected void enableGUI()
enableGUI in class DeviceDisplaypublic String getGUIName()
getGUIName in class DeviceDisplayprotected void updateGUIFromDevice()
updateGUIFromDevice in class DeviceDisplaypublic void addActionListener(ActionListener al)
al - the ActionListener to register.public void removeActionListener(ActionListener al)
al - the ActionListener to remove.public void removeAllActionListeners()
public boolean showCancelQuitDialog()
public boolean hasUnsavedModifications()
public static void main(String[] args)
args - none.
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||