|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.application.AbstractBean
org.jdesktop.application.View
org.jdesktop.application.FrameView
nxceestiViewAndControl.NXCEestiView
public class NXCEestiView
Programmi põhivaade
| Nested Class Summary | |
|---|---|
private class |
NXCEestiView.ConfirmExit
Tegevused programmi sulgemisel |
private class |
NXCEestiView.LoadFileTask
Faili laadimine |
| Field Summary | |
|---|---|
private javax.swing.JDialog |
aboutBox
|
private int |
busyIconIndex
|
private javax.swing.Icon[] |
busyIcons
|
private javax.swing.Timer |
busyIconTimer
|
private javax.swing.JMenuItem |
closeApp
|
private javax.swing.JMenuItem |
compilerOptions
|
private javax.swing.JDialog |
compilerSettings
|
javax.swing.text.EditorKit |
ConsoleEditorKit
|
private javax.swing.JPanel |
consoleHeader
|
private javax.swing.JLabel |
consoleName
|
private javax.swing.JScrollPane |
consoleScroll
|
private javax.swing.JTextPane |
consoleText
|
private javax.swing.JPanel |
consoleView
|
private javax.swing.JMenuItem |
constantsFile
|
private javax.swing.JButton |
copyButton
|
private javax.swing.JMenuItem |
copyOption
|
private javax.swing.JMenuItem |
createNewFile
|
private javax.swing.JButton |
cutButton
|
private javax.swing.JMenuItem |
cutOption
|
private javax.swing.JMenu |
editMenu
|
private javax.swing.JSplitPane |
editorCompilerSplit
|
private javax.swing.JMenu |
editorFiles
|
javax.swing.text.EditorKit |
EditorKit
|
private javax.swing.JScrollPane |
editorScroll
|
private javax.swing.JTextPane |
example
|
javax.swing.text.EditorKit |
exampleEditorKit
|
private java.io.File |
file
|
private java.lang.String |
filename
|
private javax.swing.JButton |
hideConsole
|
private javax.swing.JButton |
hideTemplates
|
private javax.swing.Icon |
idleIcon
|
private javax.swing.JLabel |
infoName
|
private javax.swing.JPanel |
infoPanel
|
private javax.swing.JScrollPane |
infoScroll
|
private javax.swing.JMenuItem |
keywordsFile
|
private javax.swing.JButton |
leftTabButton
|
private javax.swing.JPanel |
mainPanel
|
private javax.swing.JSplitPane |
mainSplit
|
private javax.swing.JMenuItem |
manualOption
|
private javax.swing.JMenuBar |
menuBar
|
private javax.swing.JMenuItem |
menuRedo
|
private javax.swing.JMenuItem |
menuTemplates
|
private javax.swing.JMenuItem |
menuUndo
|
private javax.swing.Timer |
messageTimer
|
private boolean |
modified
|
private javax.swing.JButton |
newFileButton
|
private javax.swing.JMenuItem |
NXCAPIFile
|
private javax.swing.JMenuItem |
NXCEestiApiFile
|
private javax.swing.JButton |
openButton
|
private javax.swing.JMenuItem |
openExisting
|
private javax.swing.JButton |
pasteButton
|
private javax.swing.JMenuItem |
pasteOption
|
private javax.swing.JProgressBar |
progressBar
|
private javax.swing.JButton |
redoButton
|
private javax.swing.JMenuItem |
resetSettings
|
private javax.swing.JButton |
rightTabButton
|
private javax.swing.tree.DefaultMutableTreeNode |
root
|
private javax.swing.JButton |
runButton
|
private javax.swing.JButton |
saveButton
|
private javax.swing.JMenuItem |
saveMe
|
private javax.swing.JMenuItem |
saveWithName
|
private javax.swing.JMenuItem |
selectAll
|
private javax.swing.JButton |
selectAllButton
|
private ParametersReader |
settings
|
private javax.swing.JMenu |
settingsMenu
|
private javax.swing.JDialog |
settingspane
|
private javax.swing.JLabel |
statusAnimationLabel
|
private javax.swing.JLabel |
statusMessageLabel
|
private javax.swing.JPanel |
statusPanel
|
private javax.swing.JMenuItem |
tabLeft
|
private javax.swing.JMenuItem |
tabRight
|
private javax.swing.JSplitPane |
tempatesSplit
|
private javax.swing.JLabel |
TemplaadidHeader
|
private javax.swing.JButton |
templatesButton
|
private javax.swing.JDialog |
templatesEdit
|
private javax.swing.JMenuItem |
templatesFile
|
private javax.swing.JScrollPane |
TemplatesScroll
|
private javax.swing.JTree |
templatestree
|
private javax.swing.JPanel |
templatesView
|
private javax.swing.JButton |
terminalButton
|
private javax.swing.JMenuItem |
textOptions
|
private javax.swing.JTextPane |
textPane
|
private javax.swing.JToolBar |
toolbar
|
private javax.swing.tree.DefaultTreeModel |
treeModel
|
(package private) CompoundUndoManager |
um
|
private javax.swing.JButton |
undoButton
|
| Constructor Summary | |
|---|---|
NXCEestiView(org.jdesktop.application.SingleFrameApplication app)
|
|
| Method Summary | |
|---|---|
void |
changeFont()
Kuvab teksti seadete muutmise vaate |
void |
compilerSettings()
Kuvab kompilaatori seaded |
private javax.swing.JFileChooser |
createFileChooser()
Loob faili valija ja asendab selle inglise keelsed sõnad |
java.io.File |
getFile()
Tagastab redigeeritava faili |
private void |
initComponents()
This method is called from within the constructor to initialize the form. |
boolean |
isModified()
Kas faili on muudetud? |
void |
newfile()
Loob uue nxc faili |
org.jdesktop.application.Task |
open()
Olemasoleva faili otsimine ja avamine |
org.jdesktop.application.Task |
openApi()
Avab tõlgete faili |
org.jdesktop.application.Task |
openConstants()
Avab konstantide faili |
org.jdesktop.application.Task |
openEditorFile(java.io.File file)
Avab etteantud faili |
org.jdesktop.application.Task |
openKeywords()
Avab märksõnade faili |
org.jdesktop.application.Task |
openNxcApi()
Avab NXC API faili |
org.jdesktop.application.Task |
openTemplates()
Avab templaatide faili |
void |
redo()
Taastab just unustatud tegevuse |
void |
refreshScreen()
Uuendab redaktori vaate sõnade värvimise ja reanumbrid |
void |
resetSettings()
Taastab programi esialgsed seaded |
void |
resetUndomanager()
Loob uue tegevuste unustamise/meeldetuletamise mälu |
void |
runNxc()
Kompileerib aktiivse faili |
void |
save()
Salvestab faili |
void |
saveAs()
Salvestab faili uue nimega |
boolean |
saveConfirmation()
Salvestamise kinnitus |
void |
selectAll()
Selekteerib kogu vaate sisu |
private void |
setFile(java.io.File file)
Määrab programmile uue redigeeritava faili |
private void |
setModified(boolean modified)
Määrab, et faili on muudetud ja seda saaks salvestada |
void |
showAboutBox()
Kuvab programmi info akna |
void |
showConsole()
Näitab/peidab kompilaatori väljundi |
private void |
showExample(java.awt.event.MouseEvent evt)
Kuvab templaadi kirjelduse |
void |
showHelp()
Avab programmi kasutusjuhendi |
void |
showTemplates()
Näitab/peidab templaatide vaate |
void |
showTemplatesEdit()
Kuvab programmi info akna |
void |
undo()
Unustab viimati tehtud tegevuse |
void |
updateUndoRedoButtons()
Uuendab unustamise ja taasloomise nuppude olekud |
| Methods inherited from class org.jdesktop.application.FrameView |
|---|
getFrame, getRootPane, setFrame |
| Methods inherited from class org.jdesktop.application.View |
|---|
getApplication, getComponent, getContext, getMenuBar, getResourceMap, getStatusBar, getToolBar, getToolBars, setComponent, setMenuBar, setStatusBar, setToolBar, setToolBars |
| Methods inherited from class org.jdesktop.application.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ParametersReader settings
private java.lang.String filename
private java.io.File file
private boolean modified
CompoundUndoManager um
public javax.swing.text.EditorKit EditorKit
public javax.swing.text.EditorKit ConsoleEditorKit
public javax.swing.text.EditorKit exampleEditorKit
private javax.swing.tree.DefaultMutableTreeNode root
private javax.swing.tree.DefaultTreeModel treeModel
private javax.swing.JMenuItem NXCAPIFile
private javax.swing.JMenuItem NXCEestiApiFile
private javax.swing.JLabel TemplaadidHeader
private javax.swing.JScrollPane TemplatesScroll
private javax.swing.JMenuItem closeApp
private javax.swing.JMenuItem compilerOptions
private javax.swing.JPanel consoleHeader
private javax.swing.JLabel consoleName
private javax.swing.JScrollPane consoleScroll
private javax.swing.JTextPane consoleText
private javax.swing.JPanel consoleView
private javax.swing.JMenuItem constantsFile
private javax.swing.JButton copyButton
private javax.swing.JMenuItem copyOption
private javax.swing.JMenuItem createNewFile
private javax.swing.JButton cutButton
private javax.swing.JMenuItem cutOption
private javax.swing.JMenu editMenu
private javax.swing.JSplitPane editorCompilerSplit
private javax.swing.JMenu editorFiles
private javax.swing.JScrollPane editorScroll
private javax.swing.JTextPane example
private javax.swing.JButton hideConsole
private javax.swing.JButton hideTemplates
private javax.swing.JLabel infoName
private javax.swing.JPanel infoPanel
private javax.swing.JScrollPane infoScroll
private javax.swing.JMenuItem keywordsFile
private javax.swing.JButton leftTabButton
private javax.swing.JPanel mainPanel
private javax.swing.JSplitPane mainSplit
private javax.swing.JMenuItem manualOption
private javax.swing.JMenuBar menuBar
private javax.swing.JMenuItem menuRedo
private javax.swing.JMenuItem menuTemplates
private javax.swing.JMenuItem menuUndo
private javax.swing.JButton newFileButton
private javax.swing.JButton openButton
private javax.swing.JMenuItem openExisting
private javax.swing.JButton pasteButton
private javax.swing.JMenuItem pasteOption
private javax.swing.JProgressBar progressBar
private javax.swing.JButton redoButton
private javax.swing.JMenuItem resetSettings
private javax.swing.JButton rightTabButton
private javax.swing.JButton runButton
private javax.swing.JButton saveButton
private javax.swing.JMenuItem saveMe
private javax.swing.JMenuItem saveWithName
private javax.swing.JMenuItem selectAll
private javax.swing.JButton selectAllButton
private javax.swing.JMenu settingsMenu
private javax.swing.JLabel statusAnimationLabel
private javax.swing.JLabel statusMessageLabel
private javax.swing.JPanel statusPanel
private javax.swing.JMenuItem tabLeft
private javax.swing.JMenuItem tabRight
private javax.swing.JSplitPane tempatesSplit
private javax.swing.JButton templatesButton
private javax.swing.JMenuItem templatesFile
private javax.swing.JPanel templatesView
private javax.swing.JTree templatestree
private javax.swing.JButton terminalButton
private javax.swing.JMenuItem textOptions
private javax.swing.JTextPane textPane
private javax.swing.JToolBar toolbar
private javax.swing.JButton undoButton
private final javax.swing.Timer messageTimer
private final javax.swing.Timer busyIconTimer
private final javax.swing.Icon idleIcon
private final javax.swing.Icon[] busyIcons
private int busyIconIndex
private javax.swing.JDialog aboutBox
private javax.swing.JDialog templatesEdit
private javax.swing.JDialog settingspane
private javax.swing.JDialog compilerSettings
| Constructor Detail |
|---|
public NXCEestiView(org.jdesktop.application.SingleFrameApplication app)
| Method Detail |
|---|
public java.io.File getFile()
public void resetUndomanager()
public void refreshScreen()
private void setFile(java.io.File file)
file - public boolean isModified()
private void setModified(boolean modified)
modified -
@Action
public org.jdesktop.application.Task open()
throws java.io.IOException
java.io.IOException
@Action
public void newfile()
throws java.io.IOException
java.io.IOException
@Action
public void selectAll()
throws java.io.IOException
java.io.IOException
@Action
public void undo()
throws java.io.IOException
java.io.IOException
@Action
public void redo()
throws java.io.IOException
java.io.IOExceptionpublic void updateUndoRedoButtons()
@Action
public org.jdesktop.application.Task openApi()
throws java.io.IOException
java.io.IOException
@Action
public org.jdesktop.application.Task openTemplates()
throws java.io.IOException
java.io.IOException
@Action
public org.jdesktop.application.Task openKeywords()
throws java.io.IOException
java.io.IOException
@Action
public org.jdesktop.application.Task openConstants()
throws java.io.IOException
java.io.IOException
@Action
public org.jdesktop.application.Task openNxcApi()
throws java.io.IOException
java.io.IOException
public org.jdesktop.application.Task openEditorFile(java.io.File file)
throws java.io.IOException
file -
java.io.IOException
@Action(enabledProperty="modified")
public void save()
throws java.io.IOException
java.io.IOException
@Action
public void saveAs()
throws java.io.IOException
java.io.IOExceptionprivate javax.swing.JFileChooser createFileChooser()
@Action public void showAboutBox()
@Action public void showTemplatesEdit()
@Action public void changeFont()
@Action public final void compilerSettings()
@Action public final void showTemplates()
@Action public final void showConsole()
@Action public final void showHelp()
@Action public final void resetSettings()
@Action
public void runNxc()
throws java.io.IOException
java.io.IOExceptionprivate void initComponents()
private void showExample(java.awt.event.MouseEvent evt)
evt -
public boolean saveConfirmation()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||