use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userEnabledAutoHide.
@Override
public void userEnabledAutoHide(ModeView modeView, TopComponent tc) {
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
ModeImpl mode = getModeForModeAccessor(modeAccessor);
String side = guessSlideSide(tc);
controllerHandler.userEnabledAutoHide(tc, mode, side);
}
use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userDisabledAutoHide.
// Sliding
@Override
public void userDisabledAutoHide(ModeView modeView, TopComponent tc) {
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
ModeImpl mode = getModeForModeAccessor(modeAccessor);
controllerHandler.userDisabledAutoHide(tc, mode);
}
use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userActivatedModeWindow.
@Override
public void userActivatedModeWindow(ModeView modeView) {
if (DEBUG) {
// NOI18N
debugLog("User activated mode window, mode=" + modeView);
}
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
ModeImpl mode = getModeForModeAccessor(modeAccessor);
controllerHandler.userActivatedModeWindow(mode);
}
use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userResizedModeBounds.
@Override
public void userResizedModeBounds(ModeView modeView, Rectangle bounds) {
if (DEBUG) {
// NOI18N
debugLog("User resized mode");
}
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
// XXX PENDING #39083 Investigate how it could happen.
if (modeAccessor != null) {
ModeImpl mode = getModeForModeAccessor(modeAccessor);
controllerHandler.userResizedModeBounds(mode, bounds);
}
}
use of org.netbeans.core.windows.ModeImpl in project netbeans-rcp-lite by outersky.
the class DefaultView method userChangedFrameStateMode.
@Override
public void userChangedFrameStateMode(ModeView modeView, int frameState) {
if (DEBUG) {
// NOI18N
debugLog("User changed frame state mode");
}
ModeAccessor modeAccessor = (ModeAccessor) hierarchy.getAccessorForView(modeView);
ModeImpl mode = getModeForModeAccessor(modeAccessor);
controllerHandler.userChangedFrameStateMode(mode, frameState);
}
Aggregations