|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp3j.gui.panels.PropertiesShowPanelFactory
public class PropertiesShowPanelFactory
Panel to conveniently display the properties of a PPPM entity. Created: August 25, 2008
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 PropertiesShowPanelFactory(List<JButton> buttons, int numOfGeneralButtons)
buttons
- the list of buttons to be displayednumOfGeneralButtons
- of general buttons (will be displayed separately), has to be in
[0, size of buttons list]Method Detail |
---|
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 preview
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |