|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.ip2.ItemEditor
public abstract class ItemEditor
A simple editor for entering and viewing individual items.
Nested Class Summary | |
---|---|
protected class |
ItemEditor.EditPanel
Item-editing panel |
protected static class |
ItemEditor.ItemTextArea
A text area that looks disabled when it's no editable. |
(package private) class |
ItemEditor.TextViewFrame
|
(package private) class |
ItemEditor.TreeViewFrame
|
Field Summary | |
---|---|
protected AgendaViewer |
agendaViewer
|
protected Ip2 |
agent
|
protected java.awt.Container |
contentPane
|
protected ItemEditor.EditPanel |
editPanel
|
protected javax.swing.JMenu |
fileMenu
|
protected javax.swing.JFrame |
frame
|
protected java.lang.String |
itemType
|
protected ItemEditor.TextViewFrame |
statusView
|
protected ItemEditor.TextViewFrame |
textView
|
protected java.lang.String |
title
|
protected ItemEditor.TreeViewFrame |
treeView
|
protected javax.swing.JMenu |
viewMenu
|
protected XMLTranslator |
viewXMLTranslator
|
Constructor Summary | |
---|---|
ItemEditor(AgendaViewer agendaViewer,
java.lang.String title)
|
Method Summary | |
---|---|
abstract void |
actionPerformed(java.awt.event.ActionEvent e)
Action interpreter. |
protected void |
addEndStatus(java.util.List lines,
PNodeEnd ne)
|
protected void |
addHandlerActionStatus(java.util.List lines,
AgendaItem item)
|
protected void |
addItemConditons(java.util.List lines,
AgendaItem item)
|
protected void |
addStatus(java.util.List lines,
java.lang.String prefix,
HasStatus h)
|
(package private) void |
clearViews()
|
protected void |
ensureStatusView()
|
protected void |
ensureTextView()
|
protected void |
ensureTreeView()
|
boolean |
handleViewCommand(java.awt.event.ActionEvent e)
Interpreter for "View" menu commands. |
protected abstract ItemEditor.EditPanel |
makeEditPanel()
|
protected javax.swing.JMenuBar |
makeMenuBar()
Constructs the menu bar. |
protected javax.swing.JMenuItem |
makeMenuItem(java.lang.String text)
|
protected java.lang.String |
makeStatusText(AgendaItem item)
|
(package private) XMLTranslator |
makeViewXMLTranslator()
Returns an XMLTranslator for use in the XML text and tree views. |
protected void |
setUpFrame()
|
void |
setVisible(boolean v)
|
void |
showItem(AgendaItem i)
|
void |
showNewItem()
|
protected void |
showStatusIfVisible(AgendaItem item)
|
protected void |
showTextIfVisible(AgendaItem item)
|
protected void |
showTreeIfVisible(AgendaItem item)
|
(package private) void |
showViewsIfVisible(AgendaItem item)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String title
protected javax.swing.JFrame frame
protected java.awt.Container contentPane
protected javax.swing.JMenu fileMenu
protected javax.swing.JMenu viewMenu
protected AgendaViewer agendaViewer
protected java.lang.String itemType
protected ItemEditor.EditPanel editPanel
protected ItemEditor.TextViewFrame textView
protected ItemEditor.TreeViewFrame treeView
protected ItemEditor.TextViewFrame statusView
protected XMLTranslator viewXMLTranslator
protected Ip2 agent
Constructor Detail |
---|
ItemEditor(AgendaViewer agendaViewer, java.lang.String title)
Method Detail |
---|
protected void setUpFrame()
protected abstract ItemEditor.EditPanel makeEditPanel()
public void setVisible(boolean v)
public void showItem(AgendaItem i)
public void showNewItem()
protected javax.swing.JMenuBar makeMenuBar()
protected javax.swing.JMenuItem makeMenuItem(java.lang.String text)
public abstract void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
CatchingActionListener
public boolean handleViewCommand(java.awt.event.ActionEvent e)
void showViewsIfVisible(AgendaItem item)
void clearViews()
protected void ensureTextView()
protected void showTextIfVisible(AgendaItem item)
protected void ensureTreeView()
protected void showTreeIfVisible(AgendaItem item)
XMLTranslator makeViewXMLTranslator()
protected void ensureStatusView()
protected void showStatusIfVisible(AgendaItem item)
protected java.lang.String makeStatusText(AgendaItem item)
protected void addStatus(java.util.List lines, java.lang.String prefix, HasStatus h)
protected void addEndStatus(java.util.List lines, PNodeEnd ne)
protected void addHandlerActionStatus(java.util.List lines, AgendaItem item)
protected void addItemConditons(java.util.List lines, AgendaItem item)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |