|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
javax.swing.JWindow
edu.rice.cs.drjava.ui.RecentDocFrame
public class RecentDocFrame
This class extends a Swing view class. Hence it should only be accessed from the event-handling thread.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JWindow |
|---|
JWindow.AccessibleJWindow |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| 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 | |
|---|---|
private OptionListener<Boolean> |
_antialiasListener
|
(package private) boolean |
_antiAliasText
|
private OptionListener<Color> |
_colorListener
|
(package private) int |
_current
|
(package private) DisplayManager<OpenDefinitionsDocument> |
_displayManager
|
(package private) LinkedList<OpenDefinitionsDocument> |
_docs
|
private OptionListener<Font> |
_fontListener
|
(package private) MainFrame |
_frame
|
(package private) JLabel |
_label
|
(package private) int |
_padding
|
(package private) JPanel |
_panel
|
(package private) JScrollPane |
_scroller
|
(package private) boolean |
_showSource
|
private OptionListener<Boolean> |
_showSourceListener
|
(package private) JTextPane |
_textpane
|
| Fields inherited from class javax.swing.JWindow |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| 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 | |
|---|---|
RecentDocFrame(MainFrame f)
|
|
| Method Summary | |
|---|---|
private void |
centerH()
Centers the frame in the screen. |
private void |
centerV()
Centers the frame in the screen. |
void |
closeDocument(OpenDefinitionsDocument d)
Removes the document from the list. |
void |
first()
Resets the frame to point to the first document in the list. |
OpenDefinitionsDocument |
getDocument()
Returns null if the list is empty, or the currently prefered OpenDefinitionsDocument. |
private String |
getTextFor(OpenDefinitionsDocument doc)
|
void |
next()
Sets the current document to be the next document in the list. |
void |
pokeDocument(OpenDefinitionsDocument d)
Moves the document d to the beginning of the list if it's already in the list, or it adds it to the beginning if its not already in the list. |
void |
prev()
Sets the current document to be the previous document in the list. |
void |
refreshColor()
|
void |
reset()
Moves the selected document to the front of the list. |
void |
setVisible(boolean v)
Sets this frame as visible only if _docs is non empty. |
private void |
show(int _current)
|
private void |
updateFontColor()
|
| Methods inherited from class javax.swing.JWindow |
|---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update, windowInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
MainFrame _frame
DisplayManager<OpenDefinitionsDocument> _displayManager
JLabel _label
JPanel _panel
JTextPane _textpane
JScrollPane _scroller
int _current
int _padding
LinkedList<OpenDefinitionsDocument> _docs
private OptionListener<Color> _colorListener
private OptionListener<Font> _fontListener
private OptionListener<Boolean> _antialiasListener
private OptionListener<Boolean> _showSourceListener
boolean _antiAliasText
boolean _showSource
| Constructor Detail |
|---|
public RecentDocFrame(MainFrame f)
| Method Detail |
|---|
private void updateFontColor()
public void pokeDocument(OpenDefinitionsDocument d)
public void closeDocument(OpenDefinitionsDocument d)
private void show(int _current)
public void next()
public void prev()
private String getTextFor(OpenDefinitionsDocument doc)
public void first()
public void refreshColor()
public void setVisible(boolean v)
setVisible in class Windowprivate void centerH()
private void centerV()
public void reset()
public OpenDefinitionsDocument getDocument()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||