use of org.netxms.ui.eclipse.topology.widgets.SubnetAddressMap in project netxms by netxms.
the class AddressMap method createTabContent.
/* (non-Javadoc)
* @see org.netxms.ui.eclipse.objectview.objecttabs.ObjectTab#createTabContent(org.eclipse.swt.widgets.Composite)
*/
@Override
protected void createTabContent(Composite parent) {
scroller = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
addressMap = new SubnetAddressMap(scroller, SWT.NONE, getViewPart(), new VisibilityValidator() {
@Override
public boolean isVisible() {
return isActive();
}
});
scroller.setContent(addressMap);
scroller.setExpandVertical(true);
scroller.setExpandHorizontal(true);
scroller.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
scroller.setMinSize(addressMap.computeSize(SWT.DEFAULT, SWT.DEFAULT));
}
});
}
Aggregations