blob: 5c4af6241cb8c00d551c2d14505676d85501d986 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018, 2019 Obeo
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.sirius.server.diagram.internal.entities;
import java.util.ArrayList;
import org.eclipse.sprotty.SNode;
/**
* A Sirius list container with a flat based style.
*
* @author sbegaudeau
*/
public class SiriusListFlatContainerNode extends SNode {
/**
* The type of the {@link SiriusListFlatContainerNode}.
*/
private static final String TYPE = "node:listflatcontainer"; //$NON-NLS-1$
/**
* The style of the node.
*/
private String style;
/**
* The constructor.
*
* @param identifier
* The identifier
*/
public SiriusListFlatContainerNode(String identifier) {
this.setId(identifier);
this.setType(TYPE);
this.setLayout("vbox"); //$NON-NLS-1$
this.setChildren(new ArrayList<>());
}
/**
* Return the style.
*
* @return the style
*/
public String getStyle() {
return this.style;
}
/**
* Sets the style.
*
* @param style
* the style to set
*/
public void setStyle(String style) {
this.style = style;
}
}