learningTool
Class LearningToolGUI
java.lang.Object
learningTool.LearningToolGUI
public class LearningToolGUI
- extends Object
|
Method Summary |
Color |
getButtonBackgroundColor(JButton button)
|
Boolean |
getButtonBorderPainted(JButton button)
|
Boolean |
getButtonContentAreaFilled(JButton button)
|
Boolean |
getButtonEnabled(JButton button)
|
int |
getButtonHeight(JButton button)
|
int |
getButtonHorizontalAlignement(JButton button)
|
String |
getButtonLabel(JButton button)
|
Boolean |
getButtonSelected(JButton button)
|
String |
getButtonText(JButton button)
|
int |
getButtonVerticalAlignment(JButton button)
|
int |
getButtonWidth(JButton button)
|
boolean |
getCheckBoxBorderOutline(JCheckBox checkbutton)
|
String |
getFileChooserDirectory(JFileChooser chooser)
|
String |
getFileChooserSelectedFile(JFileChooser chooser)
|
String[] |
getFileChooserSelectedFiles(JFileChooser chooser)
|
String |
getFileChooserTitle(JFileChooser chooser)
|
Color |
getFrameBackgroundColor(JPanel frame)
|
int |
getFrameHeight(JPanel frame)
|
int |
getFrameWidth(JPanel frame)
|
int |
getLabelHorizontalAlignement(JLabel label)
|
String |
getLabelText(JLabel label)
|
int |
getLabelVerticalAlignment(JLabel label)
|
String |
getMenuItemLabel(JMenuItem menuitem)
|
int |
getMenuMnemonic(JMenu menu)
|
String |
getMenuText(JMenu menu)
|
int |
getScrollingFrameHeight(JScrollPane scrollingFrame)
|
int |
getScrollingFrameWidth(JScrollPane scrollingFrame)
|
boolean |
getTextAreaEditable(JTextArea area)
|
boolean |
getTextAreaEditable(LearningToolGUI.SmartTextArea area)
|
int |
getTextAreaHeight(JTextArea area)
|
int |
getTextAreaHeight(LearningToolGUI.SmartTextArea area)
|
boolean |
getTextAreaLineWrap(JTextArea area)
|
boolean |
getTextAreaLineWrap(LearningToolGUI.SmartTextArea area)
|
String |
getTextAreaText(JTextArea area)
|
String |
getTextAreaText(LearningToolGUI.SmartTextArea area)
|
int |
getTextAreaWidth(JTextArea area)
|
int |
getTextAreaWidth(LearningToolGUI.SmartTextArea area)
|
Color |
getWindowBackgroundColor(JFrame window)
|
int |
getWindowHeight(JFrame window)
|
LayoutManager |
getWindowLayout(JFrame window)
|
int |
getWindowOnClose(JFrame window)
|
boolean |
getWindowResizable(JFrame window)
|
String |
getWindowTitle(JFrame window)
|
int |
getWindowWidth(JFrame window)
|
LearningToolGUI.FileChooserAnswer |
runFileChooserAsOpen(JFileChooser chooser,
Component window)
|
LearningToolGUI.FileChooserAnswer |
runFileChooserAsSave(JFileChooser chooser,
Component window)
|
void |
setButtonBackgroundColor(JButton button,
Color newColor)
|
void |
setButtonBorderPainted(JButton button,
boolean newBorderPainted)
|
void |
setButtonContentAreaFilled(JButton button,
boolean newContentAreaFilled)
|
void |
setButtonEnabled(JButton button,
boolean newEnabled)
|
void |
setButtonHeight(JButton button,
int newHeight)
|
void |
setButtonHorizontalAlignment(JButton button,
int newAlignment)
|
void |
setButtonLabel(JButton button,
String newLabel)
|
void |
setButtonSelected(JButton button,
boolean newSelected)
|
void |
setButtonText(JButton button,
String newText)
|
void |
setButtonVerticalAlignment(JButton button,
int newAlignment)
|
void |
setButtonWidth(JButton button,
int newWidth)
|
void |
setCheckBoxBorderOutline(JCheckBox checkbutton,
boolean newOutline)
|
void |
setFileChooserDirectory(JFileChooser chooser,
String directory)
|
void |
setFileChooserTitle(JFileChooser chooser,
String title)
|
void |
setFrameBackgroundColor(JPanel frame,
Color newBackgroundColor)
|
void |
setFrameHeight(JPanel frame,
int newHeight)
|
void |
setFrameWidth(JPanel frame,
int newWidth)
|
void |
setLabelHorizontalAlignment(JLabel label,
int newAlignment)
|
void |
setLabelText(JLabel label,
String newText)
|
void |
setLabelVerticalAlignment(JLabel label,
int newAlignment)
|
void |
setMenuItemLabel(JMenuItem menuItem,
String newLabel)
|
void |
setMenuMnemonic(JMenu menu,
int newMnemonic)
|
void |
setMenuText(JMenu menu,
String newText)
|
void |
setScrollingFrameHeight(JScrollPane scrollingFrame,
int newHeight)
|
void |
setScrollingFrameWidth(JScrollPane scrollingFrame,
int newWidth)
|
void |
setTextAreaEditable(JTextArea area,
boolean newEditable)
|
void |
setTextAreaEditable(LearningToolGUI.SmartTextArea area,
boolean newEditable)
|
void |
setTextAreaHeight(JTextArea area,
int newHeight)
|
void |
setTextAreaHeight(LearningToolGUI.SmartTextArea area,
int newHeight)
|
void |
setTextAreaLineWrap(JTextArea area,
boolean newLineWrap)
|
void |
setTextAreaLineWrap(LearningToolGUI.SmartTextArea area,
boolean newLineWrap)
|
void |
setTextAreaText(JTextArea area,
String newText)
|
void |
setTextAreaText(LearningToolGUI.SmartTextArea area,
String newText)
|
void |
setTextAreaWidth(JTextArea area,
int newWidth)
|
void |
setTextAreaWidth(LearningToolGUI.SmartTextArea area,
int newWidth)
|
void |
setWindowBackgroundColor(JFrame window,
Color newBackgroundColor)
|
void |
setWindowHeight(JFrame window,
int newHeight)
|
void |
setWindowLayout(JFrame window,
LayoutManager newLayout)
|
void |
setWindowOnClose(JFrame window,
int newClose)
|
void |
setWindowResizable(JFrame window,
boolean newResizable)
|
void |
setWindowTitle(JFrame window,
String newTitle)
|
void |
setWindowWidth(JFrame window,
int newWidth)
|
void |
triggeraboutDialog()
|
void |
triggeraboutDialog(String message)
|
void |
triggerhelpDialog()
|
void |
triggerhelpDialog(String message)
|
void |
triggertutorialDialog()
|
void |
triggertutorialDialog(String message)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
controller
public final Controller controller
bottomRow
public JPanel bottomRow
buttonBar
public JPanel buttonBar
aboutItem
public JMenuItem aboutItem
runButton
public JButton runButton
pasteItem
public JMenuItem pasteItem
buttonRow
public BoxLayout buttonRow
cutItem
public JMenuItem cutItem
errorPane
public JScrollPane errorPane
saveItem
public JMenuItem saveItem
tutorialItem
public JMenuItem tutorialItem
errorText
public JTextArea errorText
selJavaCodeItem
public JMenuItem selJavaCodeItem
AUX$tree$root
public DefaultMutableTreeNode AUX$tree$root
elvisText
public LearningToolGUI.SmartTextArea elvisText
fileChooser
public JFileChooser fileChooser
copyItem
public JMenuItem copyItem
editMenu
public JMenu editMenu
helpItem
public JMenuItem helpItem
openItem
public JMenuItem openItem
docViewer
public JTextArea docViewer
suppressModifiers
public JCheckBox suppressModifiers
compileButton
public JButton compileButton
newItem
public JMenuItem newItem
executable
public JCheckBox executable
helpMenu
public JMenu helpMenu
elvisDocName
public JLabel elvisDocName
window
public JFrame window
javaDocName
public JLabel javaDocName
fileMenu
public JMenu fileMenu
comboBox
public JComboBox comboBox
quitItem
public JMenuItem quitItem
saveAsItem
public JMenuItem saveAsItem
tree
public JTree tree
selElvisCodeItem
public JMenuItem selElvisCodeItem
docFrame
public JScrollPane docFrame
javaText
public LearningToolGUI.SmartTextArea javaText
LearningToolGUI
public LearningToolGUI(Controller c)
getButtonBackgroundColor
public Color getButtonBackgroundColor(JButton button)
setButtonBackgroundColor
public void setButtonBackgroundColor(JButton button,
Color newColor)
getTextAreaEditable
public boolean getTextAreaEditable(JTextArea area)
setTextAreaEditable
public void setTextAreaEditable(JTextArea area,
boolean newEditable)
getLabelVerticalAlignment
public int getLabelVerticalAlignment(JLabel label)
setLabelVerticalAlignment
public void setLabelVerticalAlignment(JLabel label,
int newAlignment)
runFileChooserAsSave
public LearningToolGUI.FileChooserAnswer runFileChooserAsSave(JFileChooser chooser,
Component window)
setFileChooserDirectory
public void setFileChooserDirectory(JFileChooser chooser,
String directory)
getTextAreaLineWrap
public boolean getTextAreaLineWrap(LearningToolGUI.SmartTextArea area)
setTextAreaLineWrap
public void setTextAreaLineWrap(LearningToolGUI.SmartTextArea area,
boolean newLineWrap)
getWindowWidth
public int getWindowWidth(JFrame window)
setWindowWidth
public void setWindowWidth(JFrame window,
int newWidth)
runFileChooserAsOpen
public LearningToolGUI.FileChooserAnswer runFileChooserAsOpen(JFileChooser chooser,
Component window)
triggeraboutDialog
public void triggeraboutDialog()
getFileChooserDirectory
public String getFileChooserDirectory(JFileChooser chooser)
getButtonLabel
public String getButtonLabel(JButton button)
setButtonLabel
public void setButtonLabel(JButton button,
String newLabel)
triggerhelpDialog
public void triggerhelpDialog()
triggerhelpDialog
public void triggerhelpDialog(String message)
getWindowBackgroundColor
public Color getWindowBackgroundColor(JFrame window)
setWindowBackgroundColor
public void setWindowBackgroundColor(JFrame window,
Color newBackgroundColor)
getTextAreaEditable
public boolean getTextAreaEditable(LearningToolGUI.SmartTextArea area)
setTextAreaEditable
public void setTextAreaEditable(LearningToolGUI.SmartTextArea area,
boolean newEditable)
getButtonVerticalAlignment
public int getButtonVerticalAlignment(JButton button)
setButtonVerticalAlignment
public void setButtonVerticalAlignment(JButton button,
int newAlignment)
getTextAreaWidth
public int getTextAreaWidth(JTextArea area)
setTextAreaWidth
public void setTextAreaWidth(JTextArea area,
int newWidth)
getTextAreaWidth
public int getTextAreaWidth(LearningToolGUI.SmartTextArea area)
setTextAreaWidth
public void setTextAreaWidth(LearningToolGUI.SmartTextArea area,
int newWidth)
getScrollingFrameHeight
public int getScrollingFrameHeight(JScrollPane scrollingFrame)
setScrollingFrameHeight
public void setScrollingFrameHeight(JScrollPane scrollingFrame,
int newHeight)
getTextAreaHeight
public int getTextAreaHeight(LearningToolGUI.SmartTextArea area)
setTextAreaHeight
public void setTextAreaHeight(LearningToolGUI.SmartTextArea area,
int newHeight)
setFileChooserTitle
public void setFileChooserTitle(JFileChooser chooser,
String title)
getTextAreaHeight
public int getTextAreaHeight(JTextArea area)
setTextAreaHeight
public void setTextAreaHeight(JTextArea area,
int newHeight)
getButtonContentAreaFilled
public Boolean getButtonContentAreaFilled(JButton button)
setButtonContentAreaFilled
public void setButtonContentAreaFilled(JButton button,
boolean newContentAreaFilled)
getButtonWidth
public int getButtonWidth(JButton button)
setButtonWidth
public void setButtonWidth(JButton button,
int newWidth)
getWindowOnClose
public int getWindowOnClose(JFrame window)
setWindowOnClose
public void setWindowOnClose(JFrame window,
int newClose)
getMenuMnemonic
public int getMenuMnemonic(JMenu menu)
setMenuMnemonic
public void setMenuMnemonic(JMenu menu,
int newMnemonic)
getButtonSelected
public Boolean getButtonSelected(JButton button)
setButtonSelected
public void setButtonSelected(JButton button,
boolean newSelected)
getLabelHorizontalAlignement
public int getLabelHorizontalAlignement(JLabel label)
setLabelHorizontalAlignment
public void setLabelHorizontalAlignment(JLabel label,
int newAlignment)
getMenuText
public String getMenuText(JMenu menu)
setMenuText
public void setMenuText(JMenu menu,
String newText)
getWindowHeight
public int getWindowHeight(JFrame window)
setWindowHeight
public void setWindowHeight(JFrame window,
int newHeight)
getButtonHeight
public int getButtonHeight(JButton button)
setButtonHeight
public void setButtonHeight(JButton button,
int newHeight)
getWindowTitle
public String getWindowTitle(JFrame window)
setWindowTitle
public void setWindowTitle(JFrame window,
String newTitle)
getTextAreaText
public String getTextAreaText(JTextArea area)
setTextAreaText
public void setTextAreaText(JTextArea area,
String newText)
getButtonEnabled
public Boolean getButtonEnabled(JButton button)
setButtonEnabled
public void setButtonEnabled(JButton button,
boolean newEnabled)
getFileChooserSelectedFile
public String getFileChooserSelectedFile(JFileChooser chooser)
getFileChooserTitle
public String getFileChooserTitle(JFileChooser chooser)
triggeraboutDialog
public void triggeraboutDialog(String message)
triggertutorialDialog
public void triggertutorialDialog(String message)
triggertutorialDialog
public void triggertutorialDialog()
getLabelText
public String getLabelText(JLabel label)
setLabelText
public void setLabelText(JLabel label,
String newText)
getTextAreaText
public String getTextAreaText(LearningToolGUI.SmartTextArea area)
setTextAreaText
public void setTextAreaText(LearningToolGUI.SmartTextArea area,
String newText)
getScrollingFrameWidth
public int getScrollingFrameWidth(JScrollPane scrollingFrame)
setScrollingFrameWidth
public void setScrollingFrameWidth(JScrollPane scrollingFrame,
int newWidth)
getWindowResizable
public boolean getWindowResizable(JFrame window)
setWindowResizable
public void setWindowResizable(JFrame window,
boolean newResizable)
getWindowLayout
public LayoutManager getWindowLayout(JFrame window)
setWindowLayout
public void setWindowLayout(JFrame window,
LayoutManager newLayout)
getFrameHeight
public int getFrameHeight(JPanel frame)
setFrameHeight
public void setFrameHeight(JPanel frame,
int newHeight)
getFileChooserSelectedFiles
public String[] getFileChooserSelectedFiles(JFileChooser chooser)
getMenuItemLabel
public String getMenuItemLabel(JMenuItem menuitem)
setMenuItemLabel
public void setMenuItemLabel(JMenuItem menuItem,
String newLabel)
getButtonHorizontalAlignement
public int getButtonHorizontalAlignement(JButton button)
setButtonHorizontalAlignment
public void setButtonHorizontalAlignment(JButton button,
int newAlignment)
getCheckBoxBorderOutline
public boolean getCheckBoxBorderOutline(JCheckBox checkbutton)
setCheckBoxBorderOutline
public void setCheckBoxBorderOutline(JCheckBox checkbutton,
boolean newOutline)
getButtonBorderPainted
public Boolean getButtonBorderPainted(JButton button)
setButtonBorderPainted
public void setButtonBorderPainted(JButton button,
boolean newBorderPainted)
getFrameWidth
public int getFrameWidth(JPanel frame)
setFrameWidth
public void setFrameWidth(JPanel frame,
int newWidth)
getFrameBackgroundColor
public Color getFrameBackgroundColor(JPanel frame)
setFrameBackgroundColor
public void setFrameBackgroundColor(JPanel frame,
Color newBackgroundColor)
getButtonText
public String getButtonText(JButton button)
setButtonText
public void setButtonText(JButton button,
String newText)
getTextAreaLineWrap
public boolean getTextAreaLineWrap(JTextArea area)
setTextAreaLineWrap
public void setTextAreaLineWrap(JTextArea area,
boolean newLineWrap)