All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alkacon.acacia.client.I_EntityRenderer Maven / Gradle / Ivy

Go to download

A GWT based resource editor. This component is used as a part of OpenCms, an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.

The newest version!
/*
 * This library is part of the Acacia Editor -
 * an open source inline and form based content editor for GWT.
 *
 * Copyright (c) Alkacon Software GmbH (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software, please see the
 * company website: http://www.alkacon.com
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package com.alkacon.acacia.client;

import com.alkacon.acacia.shared.TabInfo;
import com.alkacon.geranium.client.ui.TabbedPanel;
import com.alkacon.vie.shared.I_Entity;

import java.util.List;

import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Panel;

/**
 * Renders an entity into a widget.

*/ public interface I_EntityRenderer { /** * Returns a copy of this renderer which has been configured with the given configuration string.

* * @param configuration the configuration string * * @return the configured copy of the renderer */ public I_EntityRenderer configure(String configuration); /** * Gets the name of the renderer (should be unique for each renderer class).

* * @return the renderer name */ public String getName(); /** * Renders the given entity into a form with tabs.

* * @param entity the entity to render * @param tabInfos the tab infos * @param context the context widget panel * @param parentHandler the parent attribute handler * @param attributeIndex the attribute index * * @return the tabbed panel */ public TabbedPanel renderForm( I_Entity entity, List tabInfos, Panel context, I_AttributeHandler parentHandler, int attributeIndex); /** * Renders a single attribute value. Used for inline editing to show a fragment of the form.

* * @param parentEntity the parent entity * @param attributeHandler the attribute handler * @param attributeIndex the value index * @param context the parent widget */ void renderAttributeValue( I_Entity parentEntity, AttributeHandler attributeHandler, int attributeIndex, Panel context); /** * Renders the given entity into a form.

* * @param entity the entity to render * @param context the context widget panel * @param parentHandler the parent attribute handler * @param attributeIndex the attribute index */ void renderForm(I_Entity entity, Panel context, I_AttributeHandler parentHandler, int attributeIndex); /** * Injects editing widgets into the given DOM context to enable editing of the given entity.

* * @param entity the entity to render * @param formParent formParent the form parent widget * @param updateHandler handles updates on the HTML required due to entity data changes */ void renderInline(I_Entity entity, I_InlineFormParent formParent, I_InlineHtmlUpdateHandler updateHandler); /** * Injects editing widgets into the given DOM context to enable editing of the given entity attribute.

* * @param parentEntity the parent entity * @param attributeName the attribute name * @param formParent the form parent widget * @param updateHandler handles updates on the HTML required due to entity data changes * @param minOccurrence the minimum occurrence of this attribute * @param maxOccurrence the maximum occurrence of this attribute */ void renderInline( I_Entity parentEntity, String attributeName, I_InlineFormParent formParent, I_InlineHtmlUpdateHandler updateHandler, int minOccurrence, int maxOccurrence); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy