|
|||||||||
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.JTabbedPane
mars.venus.EditTabbedPane
public class EditTabbedPane
Tabbed pane for the editor. Each of its tabs represents an open file.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
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 javax.swing.JTabbedPane |
---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
EditTabbedPane(VenusUI appFrame,
Editor editor,
MainPane mainPane)
Constructor for the EditTabbedPane class. |
Method Summary | |
---|---|
boolean |
closeAllFiles()
Carries out all necessary operations to implement the Close All operation from the File menu. |
boolean |
closeCurrentFile()
Carries out all necessary operations to implement the Close operation from the File menu. |
boolean |
editsSavedOrAbandoned()
Check whether file has unsaved edits and, if so, check with user about saving them. |
EditPane |
getCurrentEditTab()
The current EditPane representing a file. |
EditPane |
getCurrentEditTabForFile(File file)
If the given file is open in the tabbed pane, make it the current tab. |
EditPane |
getEditPaneForFile(String pathname)
If there is an EditPane for the given file pathname, return it else return null. |
void |
newFile()
Carries out all necessary operations to implement the New operation from the File menu. |
boolean |
openFile()
Carries out all necessary operations to implement the Open operation from the File menu. |
boolean |
openFile(File file)
Carries out all necessary operations to open the specified file in the editor. |
void |
remove(EditPane editPane)
Remove the pane and update menu status |
boolean |
saveAllFiles()
Saves all files currently open in the editor. |
boolean |
saveAsCurrentFile()
Pops up a dialog box to do "Save As" operation. |
boolean |
saveCurrentFile()
Saves file under existing name. |
void |
setCurrentEditTab(EditPane editPane)
Select the specified EditPane to be the current tab. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EditTabbedPane(VenusUI appFrame, Editor editor, MainPane mainPane)
Method Detail |
---|
public EditPane getCurrentEditTab()
public void setCurrentEditTab(EditPane editPane)
editPane
- The EditPane tab to become current.public EditPane getCurrentEditTabForFile(File file)
file
- File object for the desired file.
public void newFile()
public boolean openFile()
public boolean openFile(File file)
public boolean closeCurrentFile()
public boolean closeAllFiles()
public boolean saveCurrentFile()
public boolean saveAsCurrentFile()
public boolean saveAllFiles()
public void remove(EditPane editPane)
public EditPane getEditPaneForFile(String pathname)
pathname
- Pathname for desired file
public boolean editsSavedOrAbandoned()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |