|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--NWNDialogEditorInterface.MainWindow.EditWindow
Nested Class Summary | |
protected class |
MainWindow.EditWindow.DialogTreeNode
|
protected class |
MainWindow.EditWindow.FieldChangeUndo
16 juil. 2003 |
protected class |
MainWindow.EditWindow.MovingNode
10 août 2003 |
protected class |
MainWindow.EditWindow.NodeMoover
2 août 2003 |
protected class |
MainWindow.EditWindow.TreeEditor
15 juil. 2003 |
Field Summary | |
protected Stack |
redoStack
|
protected Stack |
undoStack
|
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 | |
MainWindow.EditWindow(MainWindow _owner)
|
|
MainWindow.EditWindow(MainWindow _owner,
boolean isDoubleBuffered)
|
|
MainWindow.EditWindow(MainWindow _owner,
File _dialogFile)
|
|
MainWindow.EditWindow(MainWindow _owner,
LayoutManager layout)
|
|
MainWindow.EditWindow(MainWindow _owner,
LayoutManager layout,
boolean isDoubleBuffered)
|
Method Summary | |
void |
actionPerformed(ActionEvent e)
|
protected void |
addNode()
Adds a node to the selected node. |
void |
changedUpdate(DocumentEvent e)
|
protected boolean |
close()
Ferfomes some cleaning operations. |
void |
copy()
|
void |
cut()
|
protected void |
deleteNode()
Delete the selected node |
void |
dragDropEnd(DragSourceDropEvent dsde)
|
void |
dragEnter(DragSourceDragEvent dsde)
|
void |
dragEnter(DropTargetDragEvent dtde)
|
void |
dragExit(DragSourceEvent dse)
|
void |
dragExit(DropTargetEvent dte)
|
void |
dragGestureRecognized(DragGestureEvent dge)
|
void |
dragOver(DragSourceDragEvent dsde)
|
void |
dragOver(DropTargetDragEvent dtde)
|
void |
drop(DropTargetDropEvent dtde)
|
void |
dropActionChanged(DragSourceDragEvent dsde)
|
void |
dropActionChanged(DropTargetDragEvent dtde)
|
void |
focusGained(FocusEvent e)
|
void |
focusLost(FocusEvent e)
|
protected Object[] |
generateAnimationComboList()
|
int |
getCurrentGender()
|
long |
getCurrentLanguageId()
|
protected String[] |
getGenderNames()
|
protected String[] |
getLanguageNames()
|
protected void |
init()
Initializes the edit zone. |
void |
insertUpdate(DocumentEvent e)
|
boolean |
isModified()
Returns the modification state of that dialog. |
void |
itemStateChanged(ItemEvent e)
|
void |
link()
|
protected void |
loadDialog()
Loads the dialog from the current dialog file. |
protected void |
modifyRedo(MainWindow.UndoRedo operation)
Adds an operation to the redo stack. |
protected void |
modifyUndo(MainWindow.UndoRedo operation)
Adds an operation to the undo stack. |
void |
paste()
|
void |
redo()
Restores the last canceled operation. |
void |
removeUpdate(DocumentEvent e)
|
protected void |
save()
Saves the dialog file to the GFF format. |
protected void |
save(File fileName)
Saves the dialog file to the GFF format. |
void |
setEnabled(boolean enabled)
|
protected void |
setModified(boolean b)
Sets the modification state of the dialog |
void |
undo()
Cancels the last operation. |
void |
update(Observable o,
Object arg)
|
protected void |
updateText(DocumentEvent e)
Handles the text events. |
void |
valueChanged(TreeSelectionEvent 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)
|
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 |
Field Detail |
protected Stack redoStack
protected Stack undoStack
Constructor Detail |
public MainWindow.EditWindow(MainWindow _owner) throws FileNotFoundException, FileDoesNotExist, InvalidFile, NameTooLong, IOException, InvalidType
public MainWindow.EditWindow(MainWindow _owner, boolean isDoubleBuffered) throws FileNotFoundException, FileDoesNotExist, InvalidFile, NameTooLong, IOException, InvalidType
isDoubleBuffered
- public MainWindow.EditWindow(MainWindow _owner, File _dialogFile) throws FileNotFoundException, FileDoesNotExist, InvalidFile, NameTooLong, IOException, InvalidType
public MainWindow.EditWindow(MainWindow _owner, LayoutManager layout) throws FileNotFoundException, FileDoesNotExist, InvalidFile, NameTooLong, IOException, InvalidType
layout
- public MainWindow.EditWindow(MainWindow _owner, LayoutManager layout, boolean isDoubleBuffered) throws FileNotFoundException, FileDoesNotExist, InvalidFile, NameTooLong, IOException, InvalidType
layout
- isDoubleBuffered
- Method Detail |
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
protected void addNode()
public void changedUpdate(DocumentEvent e)
changedUpdate
in interface DocumentListener
protected boolean close()
public void copy()
public void cut()
protected void deleteNode()
public void dragDropEnd(DragSourceDropEvent dsde)
dragDropEnd
in interface DragSourceListener
public void dragEnter(DragSourceDragEvent dsde)
dragEnter
in interface DragSourceListener
public void dragEnter(DropTargetDragEvent dtde)
dragEnter
in interface DropTargetListener
public void dragExit(DragSourceEvent dse)
dragExit
in interface DragSourceListener
public void dragExit(DropTargetEvent dte)
dragExit
in interface DropTargetListener
public void dragGestureRecognized(DragGestureEvent dge)
dragGestureRecognized
in interface DragGestureListener
public void dragOver(DragSourceDragEvent dsde)
dragOver
in interface DragSourceListener
public void dragOver(DropTargetDragEvent dtde)
dragOver
in interface DropTargetListener
public void drop(DropTargetDropEvent dtde)
drop
in interface DropTargetListener
public void dropActionChanged(DragSourceDragEvent dsde)
dropActionChanged
in interface DragSourceListener
public void dropActionChanged(DropTargetDragEvent dtde)
dropActionChanged
in interface DropTargetListener
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
protected Object[] generateAnimationComboList()
public int getCurrentGender()
public long getCurrentLanguageId()
protected String[] getGenderNames()
protected String[] getLanguageNames()
protected void init() throws FileNotFoundException, FileDoesNotExist, InvalidFile, NameTooLong, IOException, InvalidType
FileNotFoundException
FileDoesNotExist
InvalidFile
NameTooLong
IOException
InvalidType
public void insertUpdate(DocumentEvent e)
insertUpdate
in interface DocumentListener
public boolean isModified()
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void link()
protected void loadDialog()
protected void modifyRedo(MainWindow.UndoRedo operation)
operation
- Operation to be added to the redo stack.protected void modifyUndo(MainWindow.UndoRedo operation)
operation
- Operation to be added to the undo stackpublic void paste()
public void redo()
public void removeUpdate(DocumentEvent e)
removeUpdate
in interface DocumentListener
protected void save()
protected void save(File fileName)
fileName
- New file name.public void setEnabled(boolean enabled)
setEnabled
in class JComponent
protected void setModified(boolean b)
b
- new state.public void undo()
public void update(Observable o, Object arg)
update
in interface Observer
protected void updateText(DocumentEvent e)
e
- Event fired by the text componentpublic void valueChanged(TreeSelectionEvent e)
valueChanged
in interface TreeSelectionListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |