|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproject35.system.Project35UIFactory
public class Project35UIFactory
a factory for generating all UI components used in Project35 it was thought that centralising the production of UI code would simplify the UI code base and would allow other UI properties to be easily changed. Admittedly I don't yet know much about configuring things like look and feel and may revisit the idea of not using this class in future releases.
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
| Field Summary | |
|---|---|
static int |
LARGE_FONT
|
static int |
MEDIUM_FONT
|
static int |
SMALL_FONT
|
| Constructor Summary | |
|---|---|
Project35UIFactory()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SMALL_FONT
public static final int MEDIUM_FONT
public static final int LARGE_FONT
| Constructor Detail |
|---|
public Project35UIFactory()
| Method Detail |
|---|
public static Project35UIFactory getFactory()
public Font getSmallFont()
public Font getMediumFont()
public Font getLargeFont()
public String getLightYellow()
public String getDarkYellow()
public void setFont(int fontType)
public JColorChooser createColourChooser()
public GridBagConstraints createGridBagConstraints()
public Font getPlainFont()
public Font getBoldFont()
public void applyBoldFont(JComponent component)
public Color getTreeNodeCommentsColour()
public Color getTreeNodeGhostTextColour()
public Color getTreeNodeGhostBorderColour()
public Color getTreeNodeDeletedColour()
public Color getTreeNodeSelectedColour()
public Color getTreeNodeSearchResultColour()
public Color getTreeNodeErrorColour()
public JPanel createPanel()
public JPanel createPanel(LayoutManager layoutManager)
public JEditorPane createEditorPane()
public JSlider createSlider(int minimum,
int maximum)
public JSplitPane createSplitPane(int orientation,
Component leftComponent,
Component rightComponent)
public JTable createTable(TableModel tableModel)
public JTabbedPane createTabbedPane()
public JTextField createTextField()
public JTextField createTextField(int numberOfColumns)
public JPasswordField createPasswordField(int numberOfColumns)
public JTextField createImmutableTextField(int numberOfColumns)
public JTextField createImmutableTextField()
public JTextArea createImmutableTextArea(int numberOfRows,
int numberOfColumns)
public JTextArea createTextArea()
public JTextArea createTextArea(int numberOfRows,
int numberOfColumns)
public void setListProperties(JList list)
public void setBasicProperties(JComponent component)
public JButton createButton(String buttonText)
public JRadioButtonMenuItem createRadioButtonMenuItem(String buttonText)
public JRadioButton createRadioButton(String buttonText)
public JLabel createLabel()
public JLabel createLabel(String labelText)
public JComboBox createComboBox(Vector choices)
public JComboBox createComboBox(String[] choices)
public JComboBox createComboBox()
public JMenuBar createMenuBar()
public void setMenuBarProperties(JMenuBar menuBar)
public JMenu createMenu(String menuName)
public JMenuItem createMenuItem(String menuItemName)
public JCheckBox createCheckBox(String checkBoxTitle)
public JCheckBoxMenuItem createCheckBoxMenuItem(String menuItemName)
public JScrollPane createScrollPane()
public JScrollPane createScrollPane(Component component)
public JFileChooser createFileChooser(File startingDirectory)
public JFileChooser createFileChooser(String startingDirectoryName)
public JFileChooser createFileChooser()
public JList createList(Object[] objects)
public JList createList(Vector vector)
public JList createList(AbstractListModel listModel)
public JPopupMenu createPopupMenu()
public JPopupMenu createPopupMenu(String menuItemName)
public JTable createTable()
public JTree createTree(TreeModel treeModel)
public JTree createTree()
public JTree createTree(TreeNode treeNode)
public JList createList()
public JSeparator createSeparator()
public void setScrollPaneProperties(JScrollPane scrollPane)
public void setLabelProperties(JLabel label)
public void setMenuProperties(JMenu menu)
public void setMenuItemProperties(JMenuItem menuItem)
public void setCheckBoxMenuProperties(JCheckBoxMenuItem checkBoxMenuItem)
public void setCheckBoxProperties(JCheckBox checkBox)
public void setButtonProperties(JButton button)
public void setPanelProperties(JPanel panel)
public void registerComponent(JComponent component)
public void unregisterComponent(JComponent component)
public Color getTextColour()
public Color getFieldBackground()
public Color getFormBackground()
public Color getButtonBackground()
public Color getErrorMessageColour()
public void setLocale(Locale locale)
public boolean isLeftToRight()
public void setTreeProperties(JTree tree)
public void setTextColour(Color textColour)
textColour - Value to assign to textColour.public void setFormBackground(Color formBackground)
formBackground - Value to assign to formBackground.public void setFieldBackground(Color fieldBackground)
fieldBackground - Value to assign to fieldBackground.public void setButtonBackground(Color buttonBackground)
buttonBackground - Value to assign to buttonBackground.public void setSelectedItemBackground(Color selectedItemBackground)
public void setErrorMessageColour(Color errorMessageColour)
errorMessageColour - Value to assign to errorMessageColour.public void updateUISettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||