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.addins.client.splitpanel.js; 021 022import gwt.material.design.addins.client.splitpanel.constants.Dock; 023import gwt.material.design.client.constants.Axis; 024import jsinterop.annotations.JsOverlay; 025import jsinterop.annotations.JsPackage; 026import jsinterop.annotations.JsProperty; 027import jsinterop.annotations.JsType; 028 029/** 030 * Options for split panel component 031 * 032 * @author kevzlou7979 033 */ 034@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL) 035public class JsSplitPanelOptions { 036 037 038 private JsSplitPanelOptions() {} 039 040 @JsOverlay 041 final static public JsSplitPanelOptions create() { 042 JsSplitPanelOptions options = new JsSplitPanelOptions(); 043 options.thickness = "8px"; 044 options.barPosition = 0.5; 045 options.dock = Dock.LEFT.getCssName(); 046 options.orientation = Axis.HORIZONTAL.getCssName(); 047 return options; 048 } 049 050 @JsProperty 051 public double barPosition; 052 053 @JsProperty 054 public String thickness; 055 056 @JsProperty 057 public double rightMax; 058 059 @JsProperty 060 public double rightMin; 061 062 @JsProperty 063 public double leftMax; 064 065 @JsProperty 066 public double leftMin; 067 068 @JsProperty 069 public double topMax; 070 071 @JsProperty 072 public double topMin; 073 074 @JsProperty 075 public double bottomMin; 076 077 @JsProperty 078 public double bottomMax; 079 080 @JsProperty 081 public String dock; 082 083 @JsProperty 084 public String orientation; 085}