View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  
20  package org.apache.myfaces.tobago.internal.component;
21  
22  import org.apache.myfaces.tobago.layout.MeasureList;
23  import org.apache.myfaces.tobago.layout.SegmentJustify;
24  
25  /**
26   * {@link org.apache.myfaces.tobago.internal.taglib.component.SegmentLayoutTagDeclaration}
27   *
28   * @since 3.0.0
29   */
30  public abstract class AbstractUISegmentLayout extends AbstractUILayoutBase {
31  
32    public static final String COMPONENT_FAMILY = "org.apache.myfaces.tobago.SegmentLayout";
33  
34    @Override
35    public String toString() {
36      final StringBuilder builder = new StringBuilder(getClass().getSimpleName());
37      if (getExtraSmall() != null) {
38        builder.append("\n        extraSmall=");
39        builder.append(getExtraSmall());
40      }
41      if (getSmall() != null) {
42        builder.append("\n        small=");
43        builder.append(getSmall());
44      }
45      if (getMedium() != null) {
46        builder.append("\n        medium=");
47        builder.append(getMedium());
48      }
49      if (getLarge() != null) {
50        builder.append("\n        large=");
51        builder.append(getLarge());
52      }
53      if (getLarge() != null) {
54        builder.append("\n        extraLarge=");
55        builder.append(getExtraLarge());
56      }
57      return builder.toString();
58    }
59  
60    public abstract MeasureList getExtraSmall();
61  
62    public abstract MeasureList getSmall();
63  
64    public abstract MeasureList getMedium();
65  
66    public abstract MeasureList getLarge();
67  
68    public abstract MeasureList getExtraLarge();
69  
70    public abstract String getMarginExtraSmall();
71  
72    public abstract String getMarginSmall();
73  
74    public abstract String getMarginMedium();
75  
76    public abstract String getMarginLarge();
77  
78    public abstract String getMarginExtraLarge();
79  
80    public abstract SegmentJustify getJustify();
81  }