001/** 002 * Copyright 2013 John Ericksen 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of 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, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.androidtransfuse.model.manifest; 017 018import javax.xml.bind.annotation.XmlAttribute; 019 020 021/** 022 * attributes: 023 * android:resizeable=["true"| "false"] 024 * android:smallScreens=["true" | "false"] 025 * android:normalScreens=["true" | "false"] 026 * android:largeScreens=["true" | "false"] 027 * android:xlargeScreens=["true" | "false"] 028 * android:anyDensity=["true" | "false"] 029 * android:requiresSmallestWidthDp="integer" 030 * android:compatibleWidthLimitDp="integer" 031 * android:largestWidthLimitDp="integer" 032 * 033 * @author John Ericksen 034 */ 035public class SupportsScreens extends ManifestBase { 036 037 private Boolean resizeable; 038 private Boolean smallScreen; 039 private Boolean normalScreens; 040 private Boolean largeScreens; 041 private Boolean xlargeScreens; 042 private Boolean anyDensity; 043 private String requiresSmallestWidthDp; 044 private String compatibleWidthLimitDp; 045 private String largestWidthLimitDp; 046 047 @XmlAttribute(name = "resizeable", namespace = ManifestNamespaceMapper.ANDROID_URI) 048 public Boolean getResizeable() { 049 return resizeable; 050 } 051 052 public void setResizeable(Boolean resizeable) { 053 this.resizeable = resizeable; 054 } 055 056 @XmlAttribute(name = "smallScreens", namespace = ManifestNamespaceMapper.ANDROID_URI) 057 public Boolean getSmallScreen() { 058 return smallScreen; 059 } 060 061 public void setSmallScreen(Boolean smallScreen) { 062 this.smallScreen = smallScreen; 063 } 064 065 @XmlAttribute(name = "normalScreens", namespace = ManifestNamespaceMapper.ANDROID_URI) 066 public Boolean getNormalScreens() { 067 return normalScreens; 068 } 069 070 public void setNormalScreens(Boolean normalScreens) { 071 this.normalScreens = normalScreens; 072 } 073 074 @XmlAttribute(name = "largeScreens", namespace = ManifestNamespaceMapper.ANDROID_URI) 075 public Boolean getLargeScreens() { 076 return largeScreens; 077 } 078 079 public void setLargeScreens(Boolean largeScreens) { 080 this.largeScreens = largeScreens; 081 } 082 083 @XmlAttribute(name = "xlargeScreens", namespace = ManifestNamespaceMapper.ANDROID_URI) 084 public Boolean getXlargeScreens() { 085 return xlargeScreens; 086 } 087 088 public void setXlargeScreens(Boolean xlargeScreens) { 089 this.xlargeScreens = xlargeScreens; 090 } 091 092 @XmlAttribute(name = "anyDensity", namespace = ManifestNamespaceMapper.ANDROID_URI) 093 public Boolean getAnyDensity() { 094 return anyDensity; 095 } 096 097 public void setAnyDensity(Boolean anyDensity) { 098 this.anyDensity = anyDensity; 099 } 100 101 @XmlAttribute(name = "requiresSmallestWidthDp", namespace = ManifestNamespaceMapper.ANDROID_URI) 102 public String getRequiresSmallestWidthDp() { 103 return requiresSmallestWidthDp; 104 } 105 106 public void setRequiresSmallestWidthDp(String requiresSmallestWidthDp) { 107 this.requiresSmallestWidthDp = requiresSmallestWidthDp; 108 } 109 110 @XmlAttribute(name = "compatibleWidthLimitDp", namespace = ManifestNamespaceMapper.ANDROID_URI) 111 public String getCompatibleWidthLimitDp() { 112 return compatibleWidthLimitDp; 113 } 114 115 public void setCompatibleWidthLimitDp(String compatibleWidthLimitDp) { 116 this.compatibleWidthLimitDp = compatibleWidthLimitDp; 117 } 118 119 @XmlAttribute(name = "largestWidthLimitDp", namespace = ManifestNamespaceMapper.ANDROID_URI) 120 public String getLargestWidthLimitDp() { 121 return largestWidthLimitDp; 122 } 123 124 public void setLargestWidthLimitDp(String largestWidthLimitDp) { 125 this.largestWidthLimitDp = largestWidthLimitDp; 126 } 127}