/* * $Id: StyleHandler.java,v 1.3 2002/04/06 19:07:39 tryggvil Exp $ * * Copyright (C) 2001 Idega hf. All Rights Reserved. * * This software is the proprietary information of Idega hf. * Use is subject to license terms. * */ package com.idega.builder.handler; import java.util.List; import com.idega.core.builder.presentation.ICPropertyHandler; import com.idega.presentation.IWContext; import com.idega.presentation.PresentationObject; import com.idega.presentation.ui.TextInput; import com.idega.util.CoreConstants; /** * @author <a href="tryggvi@idega.is">Tryggvi Larusson</a> * @version 1.0 */ public class StyleClassHandler implements ICPropertyHandler { /** * */ public StyleClassHandler() { } /** * */ public List getDefaultHandlerTypes() { return(null); } /** * */ public PresentationObject getHandlerObject(String name, String value, IWContext iwc, boolean oldGenerationHandler, String instanceId, String method) { TextInput input = new TextInput(name); if (value != null) { input.setValue(value); } input.setStyleClass(CoreConstants.BUILDER_PORPERTY_SETTER_STYLE_CLASS); return(input); } /** * */ public void onUpdate(String values[], IWContext iwc) { } }