| javax.swing.JDialog com.xoetrope.carousel.services.dialog.NewRouteDlg
NewRouteDlg | public class NewRouteDlg extends JDialog implements ActionListener,ItemListener(Code) | | Dialog to allow developer to create their own custom ServiceProxy classes.
These can subclass the ServiceProxy class directly or subclass any of the
existing classes
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.6 $
author: val |
Constructor Summary | |
public | NewRouteDlg() Creates a new instance of NewRouteDlg and obtain a reference to the current
XEditorProject. |
btnOKbtnCancelbtnAddAttribbtnRemoveAttrib | JButton btnOKbtnCancelbtnAddAttribbtnRemoveAttrib(Code) | | |
currentProject | protected XEditorProject currentProject(Code) | | The owner project and the context in which this object operates.
|
lstAttribslstInheritedAttribs | JList lstAttribslstInheritedAttribs(Code) | | |
okClicked | boolean okClicked(Code) | | |
NewRouteDlg | public NewRouteDlg()(Code) | | Creates a new instance of NewRouteDlg and obtain a reference to the current
XEditorProject.
|
centerScreen | public void centerScreen()(Code) | | Center the dialog
|
changeClassName | public void changeClassName(String path, String packageName, String className)(Code) | | When a template file is created we need to change the class name and the
ctor. These are specified in the source by 'NEW_CLASS_NAME',
'PROJECT_PACKAGE_NAME'
Parameters: path - The path to the copied file Parameters: packageName - The name of the package to be set in the new file Parameters: className - The name of the new class |
createSourceFile | public void createSourceFile()(Code) | | If the create checkbox is selected copy the ServiceProxy template file to
the appropriate package and change the class and package names
|
getAttribs | public String[] getAttribs()(Code) | | Retrieve an array of the custom attribs for this newly defined ServiceProxy
String array containing the custom attributes |
itemStateChanged | public void itemStateChanged(ItemEvent ie)(Code) | | Handle changes in the selection of the base class. Clear the inherited
attribs model and populate it with attributes from the selected route
definition.
|
setupNewRoute | public boolean setupNewRoute(RouteManager routeManager, String baseClass)(Code) | | Method to be called from the RouteDataEditor class. The screen is
constructed, the combos are populated, the dialog is set to modal and
then set to visible. When OK or Cancel are clicked the result of that
click is passed back to the calling class.
Parameters: routeManager - the RouteManager object for the current projects true if OK was clicked otherwise false |
|
|