@Override public void onCheckIn() { super.onCheckIn(); AdviserManager.getInstance().removeAdviser(this.m_watcherContainerAdviser); this.m_align = null; this.m_target = null; this.m_watcherContainerAdviser = null; MasterRootContainer.getInstance().removeEventListener(Events.RESIZED, this, false); }
@Override public void onCheckOut() { super.onCheckOut(); this.setVisible(true); this.m_useTargetPositionning = true; this.m_align = Alignment9.NORTH; this.m_watcherContainerAdviser = new WatcherContainerAdviser(); MasterRootContainer.getInstance().addEventListener(Events.RESIZED, this, false); }
protected final int getHalfDisplayHeight() { return MasterRootContainer.getInstance().getHeight() / 2; }