macaw.system
Class UserInterfaceFactory

java.lang.Object
  extended by macaw.system.UserInterfaceFactory

public class UserInterfaceFactory
extends java.lang.Object

centralised the creation of GUI components used to produce the Macaw data entry forms.


Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
UserInterfaceFactory()
           
 
Method Summary
 javax.swing.JPanel createBorderLayoutPanel()
           
 javax.swing.JButton createButton(java.lang.String buttonText)
           
 javax.swing.JCheckBox createCheckBox(java.lang.String text)
           
 javax.swing.JComboBox createComboBox(java.lang.String[] choices)
           
 javax.swing.JDialog createDialog()
           
 javax.swing.JEditorPane createEditorPane()
           
 javax.swing.JFileChooser createFileChooser()
           
 java.awt.GridBagConstraints createGridBagConstraints()
           
 javax.swing.JTextArea createImmutableTextArea(int numberOfRows, int numberOfColumns)
           
 javax.swing.JTextField createImmutableTextField(int numberOfColumns)
           
 javax.swing.JLabel createLabel()
           
 javax.swing.JLabel createLabel(java.lang.String labelText)
           
 javax.swing.JList createList()
           
 javax.swing.JList createList(java.util.Vector<java.lang.String> listItems)
           
 javax.swing.JMenu createMenu(java.lang.String menuText)
           
 javax.swing.JMenuBar createMenuBar()
           
 javax.swing.JMenuItem createMenuItem(java.lang.String menuItemText)
           
 javax.swing.JPanel createPanel()
           
 javax.swing.JPasswordField createPasswordField(int numberOfColumns)
           
 javax.swing.JPopupMenu createPopupMenu()
           
 javax.swing.JRadioButton createRadioButton(java.lang.String buttonText)
           
 javax.swing.JRadioButtonMenuItem createRadioButtonMenuItem(java.lang.String menuItemText)
           
 javax.swing.JScrollPane createScrollPane(java.awt.Component component)
           
 javax.swing.JSeparator createSeparator()
           
 javax.swing.JSpinner createSpinner(javax.swing.SpinnerModel spinnerModel)
           
 javax.swing.JTabbedPane createTabbedPane()
           
 javax.swing.JTable createTable(javax.swing.table.TableModel tableModel)
           
 javax.swing.JTextArea createTextArea(int numberOfRows, int numberOfColumns)
           
 javax.swing.JTextField createTextField(int numberOfColumns)
           
 java.awt.Color getDefaultApplicationThemeColour()
           
 void setComponentProperties(javax.swing.JComponent component)
           
 void setContainerProperties(java.awt.Container component)
           
 void setSmallFont(javax.swing.JComponent component)
           
 void updateFontSettings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInterfaceFactory

public UserInterfaceFactory()
Method Detail

createButton

public javax.swing.JButton createButton(java.lang.String buttonText)

createTabbedPane

public javax.swing.JTabbedPane createTabbedPane()

createLabel

public javax.swing.JLabel createLabel()

createLabel

public javax.swing.JLabel createLabel(java.lang.String labelText)

createSpinner

public javax.swing.JSpinner createSpinner(javax.swing.SpinnerModel spinnerModel)

createGridBagConstraints

public java.awt.GridBagConstraints createGridBagConstraints()

createPanel

public javax.swing.JPanel createPanel()

createBorderLayoutPanel

public javax.swing.JPanel createBorderLayoutPanel()

createPasswordField

public javax.swing.JPasswordField createPasswordField(int numberOfColumns)

createTextField

public javax.swing.JTextField createTextField(int numberOfColumns)

createMenuBar

public javax.swing.JMenuBar createMenuBar()

createMenu

public javax.swing.JMenu createMenu(java.lang.String menuText)

createRadioButtonMenuItem

public javax.swing.JRadioButtonMenuItem createRadioButtonMenuItem(java.lang.String menuItemText)

createRadioButton

public javax.swing.JRadioButton createRadioButton(java.lang.String buttonText)

createMenuItem

public javax.swing.JMenuItem createMenuItem(java.lang.String menuItemText)

setContainerProperties

public void setContainerProperties(java.awt.Container component)

setComponentProperties

public void setComponentProperties(javax.swing.JComponent component)

createCheckBox

public javax.swing.JCheckBox createCheckBox(java.lang.String text)

createScrollPane

public javax.swing.JScrollPane createScrollPane(java.awt.Component component)

createImmutableTextField

public javax.swing.JTextField createImmutableTextField(int numberOfColumns)

createImmutableTextArea

public javax.swing.JTextArea createImmutableTextArea(int numberOfRows,
                                                     int numberOfColumns)

createTextArea

public javax.swing.JTextArea createTextArea(int numberOfRows,
                                            int numberOfColumns)

createComboBox

public javax.swing.JComboBox createComboBox(java.lang.String[] choices)

createFileChooser

public javax.swing.JFileChooser createFileChooser()

createList

public javax.swing.JList createList()

createList

public javax.swing.JList createList(java.util.Vector<java.lang.String> listItems)

createEditorPane

public javax.swing.JEditorPane createEditorPane()

createTable

public javax.swing.JTable createTable(javax.swing.table.TableModel tableModel)

createSeparator

public javax.swing.JSeparator createSeparator()

createPopupMenu

public javax.swing.JPopupMenu createPopupMenu()

updateFontSettings

public void updateFontSettings()

getDefaultApplicationThemeColour

public java.awt.Color getDefaultApplicationThemeColour()

setSmallFont

public void setSmallFont(javax.swing.JComponent component)

createDialog

public javax.swing.JDialog createDialog()