|
7 | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | * you may not use this file except in compliance with the License. |
9 | 9 | * You may obtain a copy of the License at |
10 | | - * |
| 10 | + * |
11 | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
12 | | - * |
| 12 | + * |
13 | 13 | * Unless required by applicable law or agreed to in writing, software |
14 | 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
15 | 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
34 | 34 | import gwt.material.design.client.constants.Axis; |
35 | 35 | import gwt.material.design.client.constants.CssName; |
36 | 36 | import gwt.material.design.client.constants.IconType; |
| 37 | +import gwt.material.design.client.constants.StatusDisplayType; |
37 | 38 | import gwt.material.design.client.ui.MaterialIcon; |
38 | 39 | import gwt.material.design.client.ui.html.Div; |
39 | 40 |
|
@@ -84,6 +85,7 @@ public class MaterialStep extends MaterialWidget implements HasActive, HasTitle, |
84 | 85 | private ActiveMixin<MaterialStep> activeMixin; |
85 | 86 | private Axis axis = Axis.HORIZONTAL; |
86 | 87 | private State state; |
| 88 | + private StatusDisplayType displayType; |
87 | 89 |
|
88 | 90 | public MaterialStep() { |
89 | 91 | super(Document.get().createDivElement(), AddinsCssName.STEP); |
@@ -237,6 +239,16 @@ public void clearSuccessText() { |
237 | 239 | removeStyleName(AddinsCssName.SUCCESS); |
238 | 240 | } |
239 | 241 |
|
| 242 | + @Override |
| 243 | + public void setStatusDisplayType(StatusDisplayType displayType) { |
| 244 | + this.displayType = displayType; |
| 245 | + } |
| 246 | + |
| 247 | + @Override |
| 248 | + public StatusDisplayType getStatusDisplayType() { |
| 249 | + return displayType; |
| 250 | + } |
| 251 | + |
240 | 252 | protected void applyIconStatus(MaterialIcon icon, String description) { |
241 | 253 | iconError.removeFromParent(); |
242 | 254 | iconSuccess.removeFromParent(); |
|
0 commit comments