Search in sources :

Example 16 with DevelopmentException

use of com.haulmont.cuba.core.global.DevelopmentException in project cuba by cuba-platform.

the class WindowLoader method createComponent.

@Override
public void createComponent() {
    resultComponent = createComponent(factory);
    resultComponent.setId(windowId);
    Element layoutElement = element.element("layout");
    if (layoutElement == null)
        throw new DevelopmentException("Missing required 'layout' element");
    createSubComponents(resultComponent, layoutElement);
}
Also used : Element(org.dom4j.Element) DevelopmentException(com.haulmont.cuba.core.global.DevelopmentException) GuiDevelopmentException(com.haulmont.cuba.gui.GuiDevelopmentException)

Aggregations

DevelopmentException (com.haulmont.cuba.core.global.DevelopmentException)16 MetaClass (com.haulmont.chile.core.model.MetaClass)4 Element (org.dom4j.Element)3 InputStream (java.io.InputStream)2 Datatype (com.haulmont.chile.core.datatypes.Datatype)1 MetaPropertyPath (com.haulmont.chile.core.model.MetaPropertyPath)1 View (com.haulmont.cuba.core.global.View)1 ViewProperty (com.haulmont.cuba.core.global.ViewProperty)1 GuiDevelopmentException (com.haulmont.cuba.gui.GuiDevelopmentException)1 Component (com.haulmont.cuba.gui.components.Component)1 Window (com.haulmont.cuba.gui.components.Window)1 AppWorkArea (com.haulmont.cuba.gui.components.mainwindow.AppWorkArea)1 FoldersPane (com.haulmont.cuba.gui.components.mainwindow.FoldersPane)1 TopLevelWindowAttachListener (com.haulmont.cuba.gui.components.mainwindow.TopLevelWindowAttachListener)1 UserIndicator (com.haulmont.cuba.gui.components.mainwindow.UserIndicator)1 WebWindow (com.haulmont.cuba.web.gui.WebWindow)1 WebAppWorkArea (com.haulmont.cuba.web.gui.components.mainwindow.WebAppWorkArea)1 PresentationEditor (com.haulmont.cuba.web.gui.components.presentations.PresentationEditor)1 IOException (java.io.IOException)1 InputStreamReader (java.io.InputStreamReader)1