001/*
002 * #%L
003 * GwtMaterial
004 * %%
005 * Copyright (C) 2015 - 2017 GwtMaterialDesign
006 * %%
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 * You may obtain a copy of the License at
010 * 
011 *      http://www.apache.org/licenses/LICENSE-2.0
012 * 
013 * Unless required by applicable law or agreed to in writing, software
014 * distributed under the License is distributed on an "AS IS" BASIS,
015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016 * See the License for the specific language governing permissions and
017 * limitations under the License.
018 * #L%
019 */
020package gwt.material.design.client.js;
021
022import jsinterop.annotations.JsMethod;
023import jsinterop.annotations.JsOverlay;
024import jsinterop.annotations.JsProperty;
025import jsinterop.annotations.JsType;
026
027@JsType
028public class SmartScrollBlock {
029
030    @JsProperty String[] dirs;
031    @JsProperty boolean up;
032    @JsProperty boolean down;
033    @JsProperty boolean left;
034    @JsProperty boolean right;
035    @JsProperty boolean x;
036
037    public SmartScrollBlock(boolean x) {
038        this.x = x;
039    }
040
041    public String[] getDirs() {
042        return dirs;
043    }
044
045    public void setDirs(String[] dirs) {
046        this.dirs = dirs;
047    }
048
049    @JsMethod
050    public boolean isUp() {
051        return up;
052    }
053
054    public void setUp(boolean up) {
055        this.up = up;
056    }
057
058    @JsMethod
059    public boolean isDown() {
060        return down;
061    }
062
063    public void setDown(boolean down) {
064        this.down = down;
065    }
066
067    @JsMethod
068    public boolean isLeft() {
069        return left;
070    }
071
072    public void setLeft(boolean left) {
073        this.left = left;
074    }
075
076    @JsMethod
077    public boolean isRight() {
078        return right;
079    }
080
081    public void setRight(boolean right) {
082        this.right = right;
083    }
084
085    @JsMethod
086    public boolean isX() {
087        return x;
088    }
089
090    public void setX(boolean x) {
091        this.x = x;
092    }
093
094    @JsMethod
095    public boolean isY() {
096        return !x;
097    }
098
099    public void setY(boolean y) {
100        this.x = !y;
101    }
102}