Converted all CRLF to LF.
[indepmod/mmn.git] / IndependentModeler / src / cz / cvut / promod / services / componentFactoryService / ComponentFactoryService.java
blob76f56e21a65e69f98db0dd049f468f0ccdfecf5f
1 package cz.cvut.promod.services.componentFactoryService;
3 import com.jidesoft.swing.JideButton;
4 import com.jidesoft.grid.PropertyTable;
5 import com.jidesoft.status.StatusBar;
6 import com.jidesoft.status.LabelStatusBarItem;
7 import com.jidesoft.status.ButtonStatusBarItem;
8 import com.jidesoft.pane.OutlookTabbedPane;
10 import javax.swing.*;
11 import javax.swing.tree.TreeNode;
12 import java.awt.*;
14 import cz.cvut.promod.services.Service;
16 /**
17 * ProMod, master thesis project
18 * User: Petr Zverina, petr.zverina@gmail.com
19 * Date: 21:13:35, 5.1.2010
22 /**
23 * All Plugins and even the Modeler are supposed to use ComponentFactoryClass for creation of GUI components
24 * (including Swing components and JideSoft components).
26 * This programming style should ensure some kind of visual consistency in ProMod application.
28 public interface ComponentFactoryService extends Service {
30 /**
31 * Defines the recommended form border. Usually for usage in JGoodies.Borders factory.
32 * @see com.jgoodies.forms.factories.Borders
34 public static final String DEFAULT_FORM_BORDER = "5dlu, 5dlu, 5dlu, 5dlu";
37 /** Defines horizontal orientation of an instance of JideButton class */
38 public static final int JIDE_BUTTON_HORIZONTAL_ORIENTATION = 0;
40 /** Defines vertical orientation of an instance of JideButton class */
41 public static final int JIDE_BUTTON_VERTICAL_ORIENTATION = 1;
43 /**
44 * @return an instance of JComboBox class
46 public JComboBox createComboBox();
48 /**
49 * @return an instance of JSpinner class
51 public JSpinner createSpinner();
53 /**
54 * @return an instance of JTextArea class
56 public JTextArea createTextArea();
58 /**
59 * @return an instance of JTextField class
61 public JTextField createTextField();
63 /**
64 * @param text to be displayed in the JTextField
65 * @return an instance of JTextField class
67 public JTextField createTextField(final String text);
70 /**
71 * @return an instance of JSlider class
73 public JSlider createSlider();
75 /**
76 * @param text is a text to be displayed on the Label
77 * @return an instance of Label class
79 public JLabel createLabel(final String text);
81 /**
82 * @return an instance of JTree class
84 public JTree createTree();
86 /**
87 * @return an instance of JTree class
89 public JTree createTree(final TreeNode node);
91 /**
92 * @param component is a component to be inserted to the ScrollPane
93 * @return an instance of ScrollPane class
95 public JScrollPane createScrollPane(final Component component);
97 /**
98 * @return an instance of JCheckBox class
100 public JCheckBox createCheckBox();
103 * @return an instance of MenuBar class
105 public JMenuBar createMenuBar();
108 * @return an instance of JToolBar class
110 public JToolBar createToolBar();
113 * @param text is a text to be displayed on the Menu
114 * @return an instance of Menu class
116 public JMenu createMenu(final String text);
119 * @return an instance of JPopupMenu class
121 public JPopupMenu createPopupMenu();
124 * @return an instance of OutlookTabbedPane class.
126 public OutlookTabbedPane createOutlookTabbedPane();
129 * @param text is a text to be displayed on the MenuItem
130 * @return an instance of MenuItem class
132 public JMenuItem createMenuItem(final String text);
135 * @param text is a text to be displayed on the Button
136 * @param icon is a icon to be displayed on the Button
137 * @return an instance of Button class
139 public JButton createButton(final String text, final Icon icon);
142 * @param text is a text to be displayed on the ToggleButton
143 * @param icon is a icon to be displayed on the ToggleButton
144 * @return an instance of ToggleButton class
146 public JToggleButton createToggleButton(final String text, final Icon icon);
150 * @param text is a text to be displayed on the button
151 * @param icon is an icon to be displayed on the button
152 * @param orientation JIDE_BUTTON_HORIZONTAL_ORIENTATION or JIDE_BUTTON_VERTICAL_ORIENTATION
153 * @return an instance of JideButton class
155 public JideButton createJideButton( final String text, final Icon icon, int orientation );
158 * @return an instance of JPanel class
160 public JPanel createPanel();
163 * @return an instance of JList class
165 public JList createList();
168 * @return an instance of JTable class
170 public JTable createTable();
173 * @return an instance of PropertyTable class
175 public PropertyTable createPropertyTable();
178 * @see com.jidesoft.status.StatusBar
180 * @return an instance of StatusBar class
182 public StatusBar createStatusBar();
185 * @see com.jidesoft.status.LabelStatusBarItem
187 * @return an instance of LabelStatusBarItem class
189 public LabelStatusBarItem createLabelStatusBarItem();
192 * @see com.jidesoft.status.ButtonStatusBarItem
194 * @return an instance of ButtonStatusBarItem class
196 public ButtonStatusBarItem createButtonStatusBarItem();
199 * @return an instance of JColorChooser class
201 public JColorChooser createColorChooser();
204 * @param text is the text for the button
205 * @return an instance of JRadioButton class
207 public JRadioButton createRadioButton(final String text);
210 * @return an instance of JTabbedPane class
212 public JTabbedPane createTabbedPane();