cst.util
Class UserInterfaceFactory
java.lang.Object
cst.util.UserInterfaceFactory
public class UserInterfaceFactory
- extends java.lang.Object
Responsible for creating and initialising basic UI items, most being Java
Swing classes.
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserInterfaceFactory
public UserInterfaceFactory()
createButton
public javax.swing.JButton createButton(java.lang.String buttonText)
createTabbedPane
public javax.swing.JTabbedPane createTabbedPane()
createBoldLabel
public javax.swing.JLabel createBoldLabel(java.lang.String labelText)
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)
createImmutableTextField
public javax.swing.JTextField createImmutableTextField(int numberOfColumns)
createMenuBar
public javax.swing.JMenuBar createMenuBar()
createMenu
public javax.swing.JMenu createMenu()
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()
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 labelText)
createCheckBox
public javax.swing.JCheckBox createCheckBox()
createScrollPane
public javax.swing.JScrollPane createScrollPane(java.awt.Component component)
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()
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()
createFrame
public javax.swing.JFrame createFrame()