public class PropertiesShowPanelFactory extends Object
Constructor and Description |
---|
PropertiesShowPanelFactory()
Simple constructor.
|
PropertiesShowPanelFactory(int keyWidth)
The key width.
|
PropertiesShowPanelFactory(int keyWidth,
List<JButton> buttons,
int numOfGeneralButtons)
Default constructor.
|
PropertiesShowPanelFactory(JButton button)
Constructor for a single button.
|
PropertiesShowPanelFactory(List<JButton> buttons)
Constructor with only one kind of buttons.
|
PropertiesShowPanelFactory(List<JButton> buttons,
int numOfGeneralButtons)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
app(String label,
Component component)
Add label and component.
|
void |
app(String label,
Component component,
int rowSpan)
Add label and component that spans multiple rows.
|
void |
app(String label,
Component component,
int rowSpan,
String rowHeight)
Add label and component that spans multiple rows.
|
void |
app(String label,
Object object)
Add label and information as a string.
|
void |
appPreview(JComponent component)
Add preview to properties panel.
|
JPanel |
constructPanel()
Constructs overall panel.
|
void |
sep(String separator)
Wrapper for adding a separator.
|
public PropertiesShowPanelFactory(int keyWidth)
keyWidth
- the width of the key columnpublic PropertiesShowPanelFactory()
public PropertiesShowPanelFactory(List<JButton> buttons)
buttons
- list of buttonspublic PropertiesShowPanelFactory(JButton button)
button
- the buttonpublic PropertiesShowPanelFactory(int keyWidth, List<JButton> buttons, int numOfGeneralButtons)
keyWidth
- the width of the column containing the keysbuttons
- the list of buttons to be displayednumOfGeneralButtons
- of general buttons (will be displayed separately), has to be in
[0, size of buttons list]public void sep(String separator)
separator
- name of the separatorpublic void app(String label, Component component)
label
- the label to be addedcomponent
- the associated (input) componentpublic void app(String label, Object object)
label
- the labelobject
- the associated information, Object.toString()
will be usedpublic void app(String label, Component component, int rowSpan)
label
- the labelcomponent
- the associated componentrowSpan
- the number of rows to be spanned (>=1)public void app(String label, Component component, int rowSpan, String rowHeight)
label
- the labelcomponent
- the associated componentrowSpan
- the number of rows to be spanned (>=1)rowHeight
- the row heightpublic JPanel constructPanel()
public void appPreview(JComponent component)
component
- the component containing the previewCopyright © 2012. All Rights Reserved.