|
||||||||||
| 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
java.awt.Frame
javax.swing.JFrame
edu.rice.cs.util.swing.SwingFrame
edu.rice.cs.drjava.ui.ProjectPropertiesFrame
public class ProjectPropertiesFrame
A frame for setting Project Preferences
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| 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 JButton |
_advancedButton
|
private JButton |
_applyButton
|
private DocumentListener |
_applyListener
|
private JCheckBox |
_autoRefreshComponent
|
private DirectorySelectorComponent |
_buildDirSelector
|
private JButton |
_cancelButton
|
private VectorFileOptionComponent |
_excludedFilesList
|
private VectorAbsRelFileOptionComponent |
_extraClassPathList
|
private JTextField |
_mainDocumentSelector
|
private MainFrame |
_mainFrame
|
private JPanel |
_mainPanel
|
private SingleDisplayModel |
_model
|
private JButton |
_okButton
|
private DirectorySelectorComponent |
_projRootSelector
|
private Map<OptionParser<?>,String> |
_storedPreferences
|
private DirectorySelectorComponent |
_workDirSelector
|
protected Runnable1<WindowEvent> |
CANCEL
Runnable that calls _cancel. |
private static int |
FRAME_HEIGHT
|
private static int |
FRAME_WIDTH
|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ProjectPropertiesFrame(MainFrame mf)
Constructs project properties frame for a new project and displays it. |
|
| Method Summary | |
|---|---|
JPanel |
_buildDirectoryPanel()
|
Component |
_excludedFilesComponent()
|
Component |
_extraClassPathComponent()
|
private boolean |
_getAutoRefreshStatus()
Returns whether the project is set to automatically open new source files |
private File |
_getBuildDir()
Returns the current build directory in the project profile. |
private String |
_getMainClass()
Returns the fully-qualified name of the main class in the project profile ("" if none is set) |
private File |
_getMainFile()
Returns the file contianing the main class in the project profile (FileOption.NULL_FILE if none is set) |
private File |
_getProjRoot()
Returns the current project root in the project profile. |
private File |
_getWorkDir()
Returns the current working directory in the project profile (FileOption.NULL_FILE if none is set) |
JPanel |
_mainDocumentSelector()
|
JPanel |
_projRootPanel()
|
private void |
_setupPanel(JPanel panel)
|
JPanel |
_workDirectoryPanel()
|
protected void |
advancedSettings()
|
void |
cancel()
Resets the frame and hides it. |
private void |
init()
Initializes the components in this frame. |
void |
reset()
|
private void |
reset(File projRoot)
|
boolean |
saveSettings()
Caches the settings in the global model |
void |
setVisible(boolean vis)
Validates before changing visibility. |
| Methods inherited from class edu.rice.cs.util.swing.SwingFrame |
|---|
duringInit, initDone |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
private static final int FRAME_WIDTH
private static final int FRAME_HEIGHT
private MainFrame _mainFrame
private SingleDisplayModel _model
private final JButton _okButton
private final JButton _applyButton
private final JButton _cancelButton
private final JButton _advancedButton
private JPanel _mainPanel
private DirectorySelectorComponent _projRootSelector
private DirectorySelectorComponent _buildDirSelector
private DirectorySelectorComponent _workDirSelector
private JTextField _mainDocumentSelector
private JCheckBox _autoRefreshComponent
private VectorAbsRelFileOptionComponent _extraClassPathList
private VectorFileOptionComponent _excludedFilesList
private Map<OptionParser<?>,String> _storedPreferences
private DocumentListener _applyListener
protected final Runnable1<WindowEvent> CANCEL
| Constructor Detail |
|---|
public ProjectPropertiesFrame(MainFrame mf)
| Method Detail |
|---|
private void init()
public void cancel()
public void reset()
private void reset(File projRoot)
public boolean saveSettings()
private File _getProjRoot()
private File _getBuildDir()
private File _getWorkDir()
private File _getMainFile()
private String _getMainClass()
private boolean _getAutoRefreshStatus()
private void _setupPanel(JPanel panel)
public JPanel _projRootPanel()
public JPanel _buildDirectoryPanel()
public JPanel _workDirectoryPanel()
public Component _extraClassPathComponent()
public Component _excludedFilesComponent()
public JPanel _mainDocumentSelector()
public void setVisible(boolean vis)
setVisible in class Windowvis - true if frame should be shown, false if it should be hidden.protected void advancedSettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||