|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rjw.dc.console.components.ComponentFactory
This class is the Component holder for the UI. The look and feel, as well as all the other preference are set here
Nested Class Summary | |
static class |
ComponentFactory.RefreshSoftwareCategories
Forces a refresh of the content of the Software categories combobox |
Field Summary | |
static int |
_CHECKBOX
|
static int |
_LONGTEXTFIELD
|
static int |
_MOVIECODECCOMBO
|
static int |
_MP3GENRECOMBO
|
static int |
_NUMBERFIELD
|
static int |
_SHORTTEXTFIELD
|
static int |
_SOFTWARETYPECOMBO
|
static int |
_YEARCOMBO
|
static int |
_YESNOCOMBO
|
Constructor Summary | |
ComponentFactory()
|
Method Summary | |
static javax.swing.JTable |
convertToMovieTable(javax.swing.JTable table)
|
static javax.swing.JTable |
convertToMP3Table(javax.swing.JTable table)
|
static javax.swing.JTable |
convertToSoftwareTable(javax.swing.JTable table)
|
static javax.swing.JComboBox |
fillSoftwareCatagories(javax.swing.JComboBox typeComboBox)
Adds the software catagories to the Software type combobox. |
static javax.swing.border.TitledBorder |
getBorder(java.lang.String title)
Returns a standard border with a title |
static javax.swing.JButton |
getButton(javax.swing.ImageIcon icon)
Returns a standard button |
static javax.swing.JButton |
getButton(java.lang.String buttonText)
Returns a standard button |
static javax.swing.JButton |
getButton(java.lang.String buttonText,
int length)
Returns a standard button |
static javax.swing.JCheckBox |
getCheckBox(java.lang.String labelText)
Returns a standard checkbox |
static javax.swing.JColorChooser |
getColorChooser()
|
static javax.swing.JComboBox |
getComboBox()
Returns an empty combobox |
static javax.swing.JComboBox |
getComboBox(int length)
Returns an empty combobox |
static java.awt.Component |
getComponent(int componentIndex,
java.lang.String sLabel,
int maxTextLength)
|
static java.awt.Font |
getDefaultFont()
Returns the default font for the menubar |
static java.awt.Color |
getDisabledColor()
Returns the color for displaying disabled fields |
static javax.swing.JEditorPane |
getEditorPane()
Returns a standard editor pane |
static javax.swing.JComboBox |
getFieldsComboBox()
Returns a combobox with the Software database field names |
static javax.swing.Icon |
getIcon(java.lang.String iconLocation)
Returns a standard icon |
static javax.swing.JLabel |
getLabel(java.lang.String labelText)
Returns a standard label with a text |
static javax.swing.JLabel |
getLabel(java.lang.String labelText,
int length)
Returns a standard label with a text |
static java.awt.GridBagLayout |
getLayoutManager()
|
static LongTextField |
getLongTextField(int maxTextLength)
Returns a text area with all the defaults set |
static javax.swing.JMenuBar |
getMenuBar()
Returns a standard menubar |
static java.awt.Font |
getMenuBarFont()
Returns the default font for the menubar |
static java.awt.Font |
getMenuBarFontCombo()
Returns the default font for comboboxes in the menubar |
static javax.swing.JComboBox |
getMovieCodecComboBox()
Returns a combobox with Movie codecs |
static javax.swing.JTable |
getMovieTable(javax.swing.table.DefaultTableModel tableModel,
boolean autoScrolls)
Returns a table for presentation of Movie objects |
static javax.swing.JComboBox |
getMP3GenreComboBox()
Returns a combobox with MP3 genres |
static javax.swing.JTable |
getMP3Table(javax.swing.table.DefaultTableModel tableModel,
boolean autoScrolls)
Returns a table for presentation of MP3 objects |
static NumberField |
getNumberField()
|
static javax.swing.JComboBox |
getRealYesNoComboBox()
Returns a combobox with the items "yes" and "no", not starting with and empty String |
static ShortTextField |
getShortTextField(int maxTextLength)
|
static javax.swing.JTable |
getSimpleTable(javax.swing.table.TableModel tableModel,
boolean autoScrolls)
Returns a standard table |
static javax.swing.JComboBox |
getSoftwareCatagoriesComboBox()
Returns a combobox with Sofware types (Catagories |
static javax.swing.JTable |
getSoftwareTable(javax.swing.table.DefaultTableModel tableModel,
boolean autoScrolls)
Returns a table for presentation of Software objects |
static java.awt.Font |
getStandardFont()
Returns the default font |
static javax.swing.JTabbedPane |
getTabbedPane()
Returns a standard tabbed pane |
static java.awt.Color |
getTableColor()
Returns the color for the background of tables |
static java.awt.Color |
getTableHeaderColor()
Returns the color for the table header |
static java.awt.Font |
getTableHeaderFont()
Returns the default font for the menubar |
static javax.swing.table.DefaultTableCellRenderer |
getTableHeaderRenderer()
|
static javax.swing.JTextArea |
getTextArea()
Returns a long text field with all the defaults set |
static javax.swing.JTextField |
getTextField()
Returns a textfield |
static javax.swing.JTextField |
getTextField(int length)
Returns a textfield |
static javax.swing.JTree |
getTree(javax.swing.tree.DefaultMutableTreeNode model)
|
static javax.swing.JComboBox |
getYearComboBox()
|
static javax.swing.JComboBox |
getYesNoCombo()
Returns a combobox with the items " ", "yes" and "no" |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int _SOFTWARETYPECOMBO
public static final int _YESNOCOMBO
public static final int _MP3GENRECOMBO
public static final int _LONGTEXTFIELD
public static final int _MOVIECODECCOMBO
public static final int _YEARCOMBO
public static final int _CHECKBOX
public static final int _NUMBERFIELD
public static final int _SHORTTEXTFIELD
Constructor Detail |
public ComponentFactory()
Method Detail |
public static java.awt.Component getComponent(int componentIndex, java.lang.String sLabel, int maxTextLength)
public static javax.swing.JColorChooser getColorChooser()
public static javax.swing.JTree getTree(javax.swing.tree.DefaultMutableTreeNode model)
public static java.awt.GridBagLayout getLayoutManager()
public static NumberField getNumberField()
public static javax.swing.JComboBox getFieldsComboBox()
public static javax.swing.JComboBox getYearComboBox()
public static javax.swing.JComboBox getMovieCodecComboBox()
public static javax.swing.JComboBox getMP3GenreComboBox()
public static javax.swing.JComboBox getSoftwareCatagoriesComboBox()
public static javax.swing.JComboBox fillSoftwareCatagories(javax.swing.JComboBox typeComboBox)
public static javax.swing.JComboBox getComboBox(int length)
length
- length of this field
public static javax.swing.JComboBox getComboBox()
public static javax.swing.JComboBox getRealYesNoComboBox()
public static javax.swing.JCheckBox getCheckBox(java.lang.String labelText)
public static javax.swing.JButton getButton(java.lang.String buttonText, int length)
buttonText
- display String, also used for naming the buttonlength
- length of this button
public static javax.swing.JButton getButton(javax.swing.ImageIcon icon)
public static javax.swing.JButton getButton(java.lang.String buttonText)
buttonText
- display String, also used for naming the button
public static javax.swing.JTextArea getTextArea()
public static LongTextField getLongTextField(int maxTextLength)
public static javax.swing.JLabel getLabel(java.lang.String labelText, int length)
length
- length of this field
public static javax.swing.JLabel getLabel(java.lang.String labelText)
public static javax.swing.JEditorPane getEditorPane()
public static ShortTextField getShortTextField(int maxTextLength)
public static javax.swing.JTextField getTextField(int length)
length
- length of this fieldpublic static javax.swing.JTextField getTextField()
public static javax.swing.JTabbedPane getTabbedPane()
public static javax.swing.Icon getIcon(java.lang.String iconLocation)
iconLocation
- location of the icon image
public static javax.swing.JMenuBar getMenuBar()
public static javax.swing.JComboBox getYesNoCombo()
public static javax.swing.JTable getSoftwareTable(javax.swing.table.DefaultTableModel tableModel, boolean autoScrolls)
tableModel
- model to be used upon this tabelautoScrolls
- specifies if the autoscrolls should be used
public static javax.swing.JTable convertToSoftwareTable(javax.swing.JTable table)
public static javax.swing.table.DefaultTableCellRenderer getTableHeaderRenderer()
public static javax.swing.JTable getMP3Table(javax.swing.table.DefaultTableModel tableModel, boolean autoScrolls)
tableModel
- model to be used upon this tabelautoScrolls
- specifies if the autoscrolls should be used
public static javax.swing.JTable convertToMP3Table(javax.swing.JTable table)
public static javax.swing.JTable getMovieTable(javax.swing.table.DefaultTableModel tableModel, boolean autoScrolls)
tableModel
- model to be used upon this tabelautoScrolls
- specifies if the autoscrolls should be used
public static javax.swing.JTable convertToMovieTable(javax.swing.JTable table)
public static javax.swing.JTable getSimpleTable(javax.swing.table.TableModel tableModel, boolean autoScrolls)
tableModel
- model to be used upon this tabelautoScrolls
- specifies if the autoscrolls should be used
public static javax.swing.border.TitledBorder getBorder(java.lang.String title)
title
- display String
public static java.awt.Font getDefaultFont()
public static java.awt.Font getTableHeaderFont()
public static java.awt.Font getMenuBarFont()
public static java.awt.Font getMenuBarFontCombo()
public static java.awt.Font getStandardFont()
public static java.awt.Color getDisabledColor()
public static java.awt.Color getTableHeaderColor()
public static java.awt.Color getTableColor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |