use of org.eclipse.nebula.widgets.nattable.ui.mode.ConfigurableModeEventHandler in project nebula.widgets.nattable by eclipse.
the class NatTable method initInternalListener.
protected void initInternalListener() {
this.modeSupport = new ModeSupport(this);
this.modeSupport.registerModeEventHandler(Mode.NORMAL_MODE, new ConfigurableModeEventHandler(this.modeSupport, this));
this.modeSupport.switchMode(Mode.NORMAL_MODE);
addPaintListener(this);
addFocusListener(new FocusListener() {
@Override
public void focusLost(final FocusEvent arg0) {
redraw();
}
@Override
public void focusGained(final FocusEvent arg0) {
redraw();
}
});
addListener(SWT.Resize, new Listener() {
@Override
public void handleEvent(final Event e) {
doCommand(new ClientAreaResizeCommand(NatTable.this));
redraw();
}
});
}
Aggregations