ToolbarSpacerPeer.java :  » Scripting » echo3ext20 » org » sgodden » echo » ext20 » peers » Java Open Source

Java Open Source » Scripting » echo3ext20 
echo3ext20 » org » sgodden » echo » ext20 » peers » ToolbarSpacerPeer.java
/* =================================================================
# 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.
#
# 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
#
# ================================================================= */
package org.sgodden.echo.ext20.peers;

import nextapp.echo.app.Component;
import nextapp.echo.app.util.Context;
import nextapp.echo.webcontainer.AbstractComponentSynchronizePeer;
import nextapp.echo.webcontainer.Service;
import nextapp.echo.webcontainer.WebContainerServlet;
import nextapp.echo.webcontainer.service.JavaScriptService;

import org.sgodden.echo.ext20.ToolbarSpacer;

@SuppressWarnings({"unchecked"})
public class ToolbarSpacerPeer
        extends AbstractComponentSynchronizePeer {

//    protected static final Service TOOLBAR_SPACER_SERVICE = JavaScriptService.forResource("EchoExt20.ToolbarSpacer",
//            "org/sgodden/echo/ext20/resource/js/Ext20.ToolbarSpacer.js");
//
//    static {
//        WebContainerServlet.getServiceRegistry().add(TOOLBAR_SPACER_SERVICE);
//    }

    public Class getComponentClass() {
        return ToolbarSpacer.class;
    }

    public String getClientComponentType(boolean shortType) {
        return shortType ? "E2TS" : "Ext20ToolbarSeparator";
    }

    /**
     * @see nextapp.echo.webcontainer.ComponentSynchronizePeer#init(Context)
     */
    @Override
    public void init(Context context, Component c) {
        super.init(context, c);
        //ServerMessage serverMessage = (ServerMessage) context.get(ServerMessage.class);
        //serverMessage.addLibrary(PANEL_SERVICE.getId());
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.