public interface IlvDashboardContainer
IlvDashboardContainer to create a container that
holds and displays an IlvDashboardDiagram instance for a
Dashboard Editor application.
Implementations of this interface typically extend a Swing component
capable of displaying multiple subcomponents containing different
IlvDashboardDiagram instances. An example base component is
JTabbedPane.
The following example shows how to implement this class:
public class dashContainerImpl extends JDesktopPane implements IlvDashboardContainer
{
public dashContainerImpl() {
super();
}
public void addDashboardDiagram(IlvDashboardDiagram diagram) {
JInternalFrame iframe = new JInternalFrame("diagram", true , true , true , true);
iframe.addVetoableChangeListener(...);
iframe.getContentPane().add(diagram);
diagram.addPropertyChangeListener(...);
iframe.addInternalFrameListener(...);
iframe.setSize(..., ...);
add(iframe);
iframe.setVisible(true);
}
public void removeDashboardDiagram(IlvDashboardDiagram diagram) {
...
}
}
Note: the default implementation of this class for a
Dashboard Editor application is IlvDashboardTabbedPane.
IlvDashboardTabbedPane,
IlvDashboardDiagram| Modifier and Type | Method and Description |
|---|---|
void |
addDashboardDiagram(IlvDashboardDiagram diagram)
Add
diagram to this container instance. |
IlvDashboardDiagram |
getSelectedDashboardDiagram()
Returns the currently selected
IlvDashboardDiagram instance. |
void |
removeDashboardDiagram(IlvDashboardDiagram diagram)
Remove
diagram from this container instance. |
void |
setSelectedDashboardDiagram(IlvDashboardDiagram diagram)
Selects the
diagram. |
void addDashboardDiagram(IlvDashboardDiagram diagram)
diagram to this container instance.diagram - The new dashboard diagram to be added.void removeDashboardDiagram(IlvDashboardDiagram diagram)
diagram from this container instance.diagram - The IlvDashboardDiagram instance to be
removed.IlvDashboardDiagram getSelectedDashboardDiagram()
IlvDashboardDiagram instance.IlvDashboardDiagram instance.void setSelectedDashboardDiagram(IlvDashboardDiagram diagram)
diagram.diagram - The dashboard diagram to be selected.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.