public class Dashboard extends Object implements DashboardService, LifeCycle
| Modifier and Type | Field and Description |
|---|---|
(package private) Map<String,JComponent> |
components |
protected JFrame |
frame |
protected Integer |
height |
protected String |
title |
protected Integer |
width |
| Constructor and Description |
|---|
Dashboard() |
| Modifier and Type | Method and Description |
|---|---|
String |
addWidget(String id,
JComponent widget)
Adds the provided widget to the dashboard.
|
void |
finish() |
Integer |
getHeight() |
String |
getTitle() |
Integer |
getWidth() |
void |
init(ApplicationContext context) |
void |
reset() |
void |
setHeight(Integer height) |
void |
setTitle(String title) |
void |
setWidth(Integer width) |
protected JFrame frame
protected String title
protected Integer width
protected Integer height
final Map<String,JComponent> components
public void reset()
throws Exception
reset in interface ServiceExceptionService.reset()public String addWidget(String id, JComponent widget)
DashboardServiceaddWidget in interface DashboardServiceDashboardService.addWidget(java.lang.String,
javax.swing.JComponent)public void init(ApplicationContext context) throws Exception
public void finish()
throws Exception
finish in interface LifeCycleExceptionLifeCycle.finish()public String getTitle()
public void setTitle(String title)
title - the title to setpublic Integer getWidth()
public void setWidth(Integer width)
width - the width to setpublic Integer getHeight()
public void setHeight(Integer height)
height - the height to setCopyright © 2018. All rights reserved.