001 /* 002 * Copyright 2002-2008 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 005 * use this file except in compliance with the License. You may obtain a copy of 006 * the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 013 * License for the specific language governing permissions and limitations under 014 * the License. 015 */ 016 package org.springframework.richclient.application.docking.vldocking; 017 018 import org.springframework.richclient.application.support.DefaultViewDescriptor; 019 020 import com.vlsolutions.swing.docking.DockingConstants; 021 022 /** 023 * @author Rogan Dawes 024 */ 025 public class VLDockingViewDescriptor extends DefaultViewDescriptor { 026 027 public static boolean DEFAULT_AUTOHIDEENABLED = false; 028 029 public static DockingConstants.Hide DEFAULT_AUTOHIDEBORDER = DockingConstants.HIDE_LEFT; 030 031 public static boolean DEFAULT_CLOSEENABLED = false; 032 033 public static boolean DEFAULT_FLOATENABLED = false; 034 035 public static boolean DEFAULT_MAXIMIZEENABLED = true; 036 037 private DockingConstants.Hide autoHideBorder = DEFAULT_AUTOHIDEBORDER; 038 039 private boolean autoHideEnabled = DEFAULT_AUTOHIDEENABLED; 040 041 private boolean closeEnabled = DEFAULT_CLOSEENABLED; 042 043 private boolean floatEnabled = DEFAULT_FLOATENABLED; 044 045 private boolean maximizeEnabled = DEFAULT_MAXIMIZEENABLED; 046 047 /** 048 * @return the autoHideBorder 049 */ 050 public DockingConstants.Hide getAutoHideBorder() { 051 return this.autoHideBorder; 052 } 053 054 /** 055 * @param autoHideBorder the autoHideBorder to set 056 */ 057 public void setAutoHideBorder(DockingConstants.Hide autoHideBorder) { 058 this.autoHideBorder = autoHideBorder; 059 } 060 061 /** 062 * @return the autoHideEnabled 063 */ 064 public boolean isAutoHideEnabled() { 065 return this.autoHideEnabled; 066 } 067 068 /** 069 * @param autoHideEnabled the autoHideEnabled to set 070 */ 071 public void setAutoHideEnabled(boolean autoHideEnabled) { 072 this.autoHideEnabled = autoHideEnabled; 073 } 074 075 /** 076 * @return the closeEnabled 077 */ 078 public boolean isCloseEnabled() { 079 return this.closeEnabled; 080 } 081 082 /** 083 * @param closeEnabled the closeEnabled to set 084 */ 085 public void setCloseEnabled(boolean closeEnabled) { 086 this.closeEnabled = closeEnabled; 087 } 088 089 /** 090 * @return the floatEnabled 091 */ 092 public boolean isFloatEnabled() { 093 return this.floatEnabled; 094 } 095 096 /** 097 * @param floatEnabled the floatEnabled to set 098 */ 099 public void setFloatEnabled(boolean floatEnabled) { 100 this.floatEnabled = floatEnabled; 101 } 102 103 /** 104 * @return the maximizeEnabled 105 */ 106 public boolean isMaximizeEnabled() { 107 return this.maximizeEnabled; 108 } 109 110 /** 111 * @param maximizeEnabled the maximizeEnabled to set 112 */ 113 public void setMaximizeEnabled(boolean maximizeEnabled) { 114 this.maximizeEnabled = maximizeEnabled; 115 } 116 117 }