|
||||||||||
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.RefreshSoftwareCategoriesAction
|
Field Summary | |
static int |
_CHECKBOX
|
static int |
_LONGTEXTFIELD
|
static int |
_MP3GENRECOMBO
|
static int |
_NUMBERFIELD
|
static int |
_SHORTTEXTFIELD
|
static int |
_SOFTWARETYPECOMBO
|
static int |
_URLFIELD
|
static int |
_YEARCOMBO
|
static int |
_YESNOCOMBO
|
Constructor Summary | |
ComponentFactory()
|
Method Summary | |
static javax.swing.JComboBox |
fillSoftwareCatagories(javax.swing.JComboBox typeComboBox)
Adds the software catagories to the Software type combobox. |
static java.awt.Color |
getApplicationColor()
Returns the color for the application background |
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 javax.swing.JComponent |
getComponent(int componentIndex,
java.lang.String sLabel,
int maxTextLength)
|
static java.lang.Object |
getComponentValue(int fieldType,
javax.swing.JComponent comp)
|
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(DataCrowObject o)
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 javax.swing.JList |
getList(java.util.Vector vData)
|
static LongTextField |
getLongTextField(int maxTextLength)
Returns a text area with all the defaults set |
static javax.swing.JMenuBar |
getMenuBar()
Returns a standard menubar |
static javax.swing.JButton |
getMenuButton(java.lang.String imageFile,
java.lang.String buttonText)
|
static javax.swing.JComboBox |
getMP3GenreComboBox()
Returns a combobox with MP3 genres |
static NumberField |
getNumberField()
|
static javax.swing.JComboBox |
getRealYesNoComboBox()
Returns a combobox with the items "yes" and "no", not starting with and empty String |
static java.awt.Color |
getRequiredColor()
Returns the color for displaying required fields |
static javax.swing.table.DefaultTableCellRenderer |
getRequiredTableHeaderRenderer()
|
static ShortTextField |
getShortTextField(int maxTextLength)
|
static javax.swing.JTable |
getSimpleTable(javax.swing.table.DefaultTableModel tableModel,
boolean autoScrolls)
|
static javax.swing.JComboBox |
getSoftwareCatagoriesComboBox()
Returns a combobox with Sofware types (Catagories |
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 javax.swing.JTable |
getTableForObject(DataCrowObject o,
javax.swing.table.DefaultTableModel tableModel)
|
static java.awt.Color |
getTableHeaderColor()
Returns the color for the table header |
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 URLField |
getURLField(int maxLength)
|
static javax.swing.JComboBox |
getYearComboBox()
|
static javax.swing.JComboBox |
getYesNoCombo()
Returns a combobox with the items " ", "yes" and "no" |
static void |
setComponentValue(int fieldType,
javax.swing.JComponent comp,
java.lang.Object value)
|
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 _YEARCOMBO
public static final int _CHECKBOX
public static final int _NUMBERFIELD
public static final int _SHORTTEXTFIELD
public static final int _URLFIELD
Constructor Detail |
public ComponentFactory()
Method Detail |
public static javax.swing.JComponent getComponent(int componentIndex, java.lang.String sLabel, int maxTextLength)
public static javax.swing.JList getList(java.util.Vector vData)
public static URLField getURLField(int maxLength)
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(DataCrowObject o)
public static javax.swing.JComboBox getYearComboBox()
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 getMenuButton(java.lang.String imageFile, java.lang.String buttonText)
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 getTableForObject(DataCrowObject o, javax.swing.table.DefaultTableModel tableModel)
public static javax.swing.JTable getSimpleTable(javax.swing.table.DefaultTableModel tableModel, boolean autoScrolls)
public static javax.swing.table.DefaultTableCellRenderer getRequiredTableHeaderRenderer()
public static javax.swing.table.DefaultTableCellRenderer getTableHeaderRenderer()
public static javax.swing.border.TitledBorder getBorder(java.lang.String title)
title
- display String
public static java.awt.Font getStandardFont()
public static java.awt.Color getApplicationColor()
public static java.awt.Color getDisabledColor()
public static java.awt.Color getRequiredColor()
public static java.awt.Color getTableHeaderColor()
public static java.awt.Color getTableColor()
public static void setComponentValue(int fieldType, javax.swing.JComponent comp, java.lang.Object value)
public static java.lang.Object getComponentValue(int fieldType, javax.swing.JComponent comp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |