root / client / src / com / gonnatrak / client / layout / command / ShowSingleWidgetCommand.java @ 1

View | Annotate | Download

1
/**
2
 * Created by Andrey Khalzov
3
 * 22.12.2008 18:21:33
4
 */
5
package com.gonnatrak.client.layout.command;
6
7
import com.gonnatrak.client.Mediator;
8
import com.gonnatrak.client.layout.*;
9
10
public class ShowSingleWidgetCommand extends AbstractMainWidgetLayoutCommand {
11
12
    public ShowSingleWidgetCommand(Mediator mediator) {
13
        super(mediator);
14
    }
15
16
    @Override
17
    public void executeForCenterBottomLayout(CenterBottomLayout currentMainWidgetLayout) {
18
        applyLayout(SingleLayout.getInstance());
19
    }
20
21
    @Override
22
    public void executeForCenterBottomLayout(CenterBottomRightLayout currentMainWidgetLayout) {
23
        applyLayout(SingleLayout.getInstance());
24
    }
25
26
    @Override
27
    public void executeForLeftCenterBottomLayout(LeftCenterBottomLayout currentMainWidgetLayout) {
28
        applyLayout(SingleLayout.getInstance());
29
    }
30
31
    @Override
32
    public void executeForLeftCenterBottomRightLayout(LeftCenterBottomRightLayout currentMainWidgetLayout) {
33
        applyLayout(SingleLayout.getInstance());
34
    }
35
}