|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tomp.el.author.gui.Author
public class Author
Nested Class Summary | |
---|---|
protected static class |
Author.AppCloser
Closes the application. |
class |
Author.CourseItemListener
ItemListener for "Course" menu RadioButtonMenuItems. |
class |
Author.CourseListener
ActionListener for "Course" menu. |
class |
Author.LectureItemListener
ItemListener for "Lecture" menu RadioButtonMenuItems. |
class |
Author.LectureListener
ActionListener for "Lecture" menu. |
class |
Author.MenuListener
ActionListener for "File" menu. |
class |
Author.TaskItemListener
ItemListener for "Task" menu RadioButtonMenuItems. |
class |
Author.TaskListener
ActionListener for "Task" menu. |
Field Summary | |
---|---|
static java.lang.String |
APP_TITLE
|
Course |
emptyCourse
|
Lecture |
emptyLecture
|
static java.lang.String |
root
|
Constructor Summary | |
---|---|
Author()
|
Method Summary | |
---|---|
protected void |
addCourseMenuItems(javax.swing.JMenu courseMenu)
Adds open course(s) to the "Course" menu. |
protected void |
addLectureMenuItems(javax.swing.JMenu lecturesMenu)
Adds lectures of selected course to the "Lecture" menu. |
protected void |
addTaskMenuItems(javax.swing.JMenu tasksMenu)
Adds tasks of selected course to the "Task" menu. |
protected javax.swing.JMenu |
createCourseMenu()
Creates the GUI "Course" item in menu bar. |
protected javax.swing.JPanel |
createCoursePanel()
Creates the GUI "Course" panel. |
protected javax.swing.JMenu |
createFileMenu()
Creates the GUI "File" item in menu bar (items Select Tree, Save Tree, Exit) |
protected void |
createFrame()
Creates the application's main GUI frame. |
protected javax.swing.JMenu |
createHelpMenu()
Creates the GUI "Help" item in menu bar. |
protected javax.swing.JMenu |
createLectureMenu()
Creates the GUI "Lecture" item in menu bar. |
protected javax.swing.JPanel |
createLecturePanel()
Creates the GUI "Lecture" panel. |
protected void |
createMenuBar()
Creates the GUI menu bar. |
protected void |
createPanel()
Creates the GUI panel (panels Tree, Course, Lecture, Practices, Task, Project) and calls updatePanel to update it. |
protected javax.swing.JPanel |
createPracticesPanel()
Creates the GUI "Practises" panel. |
protected javax.swing.JPanel |
createProjectPanel()
Creates the GUI "Project" panel. |
protected javax.swing.JMenu |
createTaskMenu()
Creates the GUI "Task" item in menu bar. |
protected javax.swing.JPanel |
createTaskPanel()
Creates the GUI "Task" panel. |
protected javax.swing.JPanel |
createTreePanel()
Creates the GUI "Tree" panel. |
protected void |
changeTree(java.lang.String id)
Changes the tree. |
protected void |
initComponents()
Initializes the GUI menu and panel. |
void |
main()
main() method of the whole project |
static void |
main(java.lang.String[] args)
Creates a new instance of Author and calls its method main(). |
protected void |
selectCourse(java.lang.String id)
Selects the course. |
protected java.io.File |
selectDir()
Dialog for selecting the directory (tree) |
protected void |
selectLecture(java.lang.String id)
Selects the lecture. |
protected void |
selectTask(java.lang.String id)
Selects the task. |
protected void |
updateCourse(Course c)
Updates the title and body of the course. |
protected void |
updateLecture(Lecture lect)
Updates the title and body of the lecture. |
protected void |
updateMenu()
Updates the menubar when i. e. a course is selected. |
protected void |
updatePanel()
Updates the tabbedpane when i. e. a course is selected. |
protected void |
updateTask(Task t)
Updates the title and body of the task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String APP_TITLE
public static final java.lang.String root
public Course emptyCourse
public Lecture emptyLecture
Constructor Detail |
---|
public Author()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Command-line arguments
java.lang.Exception
public void main() throws java.lang.Exception
java.lang.Exception
protected void createMenuBar()
updateMenu
to update it.
protected void updateMenu()
protected java.io.File selectDir()
protected javax.swing.JMenu createFileMenu()
protected void changeTree(java.lang.String id) throws java.net.MalformedURLException, org.dom4j.DocumentException
id
- Directory path.
java.net.MalformedURLException
org.dom4j.DocumentException
protected javax.swing.JMenu createCourseMenu()
protected void updateCourse(Course c)
c
- Courseprotected void addCourseMenuItems(javax.swing.JMenu courseMenu)
courseMenu
- Course menuprotected void selectCourse(java.lang.String id)
id
- Course IDprotected javax.swing.JMenu createLectureMenu()
addLectureMenuItems
to show the lectures of the selected course.
protected void addLectureMenuItems(javax.swing.JMenu lecturesMenu)
lecturesMenu
- Lectures menuprotected void updateLecture(Lecture lect)
lect
- Lectureprotected void selectLecture(java.lang.String id)
id
- ID of lecture to selectprotected javax.swing.JMenu createTaskMenu()
addTaskMenuItems
to show the tasks of the selected course.
protected void addTaskMenuItems(javax.swing.JMenu tasksMenu)
tasksMenu
- Tasks menuprotected void updateTask(Task t)
t
- Taskprotected void selectTask(java.lang.String id)
id
- ID of task to selectprotected javax.swing.JMenu createHelpMenu()
protected javax.swing.JPanel createTreePanel()
protected javax.swing.JPanel createCoursePanel()
protected javax.swing.JPanel createLecturePanel()
protected javax.swing.JPanel createPracticesPanel()
protected javax.swing.JPanel createTaskPanel()
protected javax.swing.JPanel createProjectPanel()
protected void updatePanel()
protected void createPanel()
updatePanel
to update it.
protected void createFrame()
protected void initComponents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |