update copyright
[fedora-idea.git] / plugins / ui-designer / src / com / intellij / uiDesigner / radComponents / RadAtomicComponent.java
blobb7d47974301930dc6bbffd000fb12ed380a73bd6
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.uiDesigner.radComponents;
18 import com.intellij.openapi.module.Module;
19 import com.intellij.uiDesigner.XmlWriter;
20 import com.intellij.uiDesigner.palette.Palette;
21 import org.jetbrains.annotations.NotNull;
23 /**
24 * @author Anton Katilin
25 * @author Vladimir Kondratyev
27 public class RadAtomicComponent extends RadComponent {
28 public RadAtomicComponent(final Module module, final Class aClass, final String id){
29 super(module, aClass, id);
32 public RadAtomicComponent(@NotNull final Class aClass, @NotNull final String id, final Palette palette) {
33 super(null, aClass, id, palette);
36 public void write(final XmlWriter writer) {
37 writer.startElement("component");
38 try{
39 writeId(writer);
40 writeClass(writer);
41 writeBinding(writer);
42 writeConstraints(writer);
43 writeProperties(writer);
44 }finally{
45 writer.endElement(); // component