|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.form; import org.openide.nodes.Node; /** * * @author Ian Formanek */ public abstract class CodeGenerator { /** * initializes a CodeGenerator for a given FormModel * @param formModel a FormModel object */ public abstract void initialize(FormModel formModel); /** * Alows the code generator to provide synthetic properties for specified * component which are specific to the code generation method. E.g. a * JavaCodeGenerator will return variableName property, as it generates * global Java variable for every component * @param component The RADComponent for which the properties are to be * obtained */ public Node.Property[] getSyntheticProperties(RADComponent component) { return new Node.Property[0]; } /** * Generates the specified event handler, if it does not exist yet. * @param handlerName The name of the event handler * @param paramTypes the list of event handler parameter types * @param bodyText the body text of the event handler or null for default *(empty) one * @return true if the event handler have not existed yet and was creaated, * false otherwise */ // public abstract boolean generateEventHandler(String handlerName, // String[] paramTypes, // String[] exceptTypes, // String bodyText); /** * Changes the text of the specified event handler, if it already exists. * @param handlerName The name of the event handler * @param paramTypes the list of event handler parameter types * @param bodyText the new body text of the event handler or null for default *(empty) one * @return true if the event handler existed and was modified, false * otherwise */ // public abstract boolean changeEventHandler(final String handlerName, // final String[] paramTypes, // final String[] exceptTypes, // final String bodyText); /** * Removes the specified event handler - removes the whole method together * with the user code! * @param handlerName The name of the event handler */ // public abstract boolean deleteEventHandler(String handlerName); /** * Renames the specified event handler to the given new name. * @param oldHandlerName The old name of the event handler * @param newHandlerName The new name of the event handler * @param paramTypes the list of event handler parameter types */ // public abstract boolean renameEventHandler(String oldHandlerName, // String newHandlerName, // String[] exceptTypes, // String[] paramTypes); /** * Gets the body (text) of event handler of given name. * @param handlerName name of the event handler * @return text of the event handler body */ // public abstract String getEventHandlerText(String handlerName); /** Focuses the specified event handler in the editor. */ // public abstract void gotoEventHandler(String handlerName); /** * Returns whether the specified event handler is empty (with no user * code). Empty handlers can be deleted without user confirmation. * @return true if the event handler exists and is empty */ // public boolean isEventHandlerEmpty(String handlerName) { // return false; // } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.