| java.lang.Object net.xoetrope.xui.XProject net.xoetrope.builder.editor.XEditorProject
XEditorProject | public class XEditorProject extends XProject implements Runnable(Code) | | Maintains project information
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
$Revision: 1.19 $
License: license.txt
|
Method Summary | |
public void | addPage(String name) | public XPageResource | addPage(String newPageName, String className) | public void | addProjectListener(ProjectListener listener) | public void | addPropertiesListener(PropertiesListener listener) | protected void | buildDirectories(String packagePath) | public void | bundleProject() | protected void | changePropertiesFile(String width, String height, String initScreen, String appTitle, boolean useFrames, String newPackageName) Change the necessary values of the properties file. | public void | createNewProject(String newPath, String newPackageName, String width, String height, String[] frameSizes, String initScreen, String appTitle, boolean useFrames, boolean isSwing, String[] frameNames) | public void | createProjectFile() Called when the create button on the NewProject dialog is clicked. | public void | doCompile(XMessageArea msgArea) | public void | fireProjectLoaded() | public void | fireProjectUpdated() | public String | getClassPath() | public XuiEditor | getEditor() | public JFrame | getFrame() | public int | getMode() Gets the editor mode. | public String | getPackageName() | public XPageResource | getPageResource(String name) | public Hashtable | getPageResources() | public String | getPath() | public XPluginManager | getPluginManager() | public XResourceManager | getResourceManager() Gets an instance of the resource manager. | public String | getStartupFilePath() | public XStyleFactory | getStyleFactory() | public XStyleManager | getStyleManager() Get a reference to the XStyleManager. | public XmlElement | getValidation(String validationName) | public boolean | getValidationExists(String validationName) | public String[] | getValidations() | public boolean | hasFrames() | public boolean | hasProject() | public void | initialise(String path) | public boolean | isSwingClient() | public void | loadPageResources() Open the Project path and iterate the 'pages' folder. | public void | openProject(String newPath) Read the project file.
Create a new EditorClassLoader and set the relevant project paths. | public void | reloadPageResources() | public void | removeAllPages() | public void | removePage(String pageName) | public void | replacePage(String pageName, XPage updatedPage) | public void | run() | public void | save() Save the current project. | protected void | savePlugins() | protected void | saveStartupFiles() | public void | setFrameset(String framesSet) | public void | setJavaSource(String screenName, String src) | public void | setMode(int newMode) Sets the editor mode. | public void | setPath(String p) | public void | setStartupParam(String key, String value) | public void | setStartupProperty(String fieldName, String fieldValue) | public void | shutDown() Shut down the project. |
DEVELOPER_MODE | final public static int DEVELOPER_MODE(Code) | | |
EXPERT_MODE | final public static int EXPERT_MODE(Code) | | |
NOVICE_MODE | final public static int NOVICE_MODE(Code) | | |
XEditorProject | public XEditorProject(XuiEditor editor)(Code) | | Create a new projects
Parameters: editor - the main editor object |
addPage | public void addPage(String name)(Code) | | Add a new Screen to the Hashtable with the key of the name parameter
Parameters: name - |
addPage | public XPageResource addPage(String newPageName, String className)(Code) | | Add a new page to the project
Parameters: newPageName - the new page name Parameters: className - the base class name or null if the default is to be used the new page |
buildDirectories | protected void buildDirectories(String packagePath)(Code) | | |
bundleProject | public void bundleProject()(Code) | | |
changePropertiesFile | protected void changePropertiesFile(String width, String height, String initScreen, String appTitle, boolean useFrames, String newPackageName)(Code) | | Change the necessary values of the properties file.
Parameters: path - The path to the properties file. |
createProjectFile | public void createProjectFile()(Code) | | Called when the create button on the NewProject dialog is clicked. A file
with the extension '.xui' is written to the project path.
|
fireProjectLoaded | public void fireProjectLoaded()(Code) | | |
fireProjectUpdated | public void fireProjectUpdated()(Code) | | |
getClassPath | public String getClassPath()(Code) | | Get the path for compiled classes
|
getMode | public int getMode()(Code) | | Gets the editor mode. The mode controls what features are available in the
editor
a constant value indicating the mode |
getPackageName | public String getPackageName()(Code) | | Get the default package name
the package name |
getPageResource | public XPageResource getPageResource(String name)(Code) | | Gets the Screen object stored in the Hashtable under the 'name' parameter
Parameters: name - the name of the screen we're looking up the Screen associated with the 'name' parameter |
getPageResources | public Hashtable getPageResources()(Code) | | Get the pages Hashtable
the pages Hashtable |
getPath | public String getPath()(Code) | | Get the Project path
the Project path |
getResourceManager | public XResourceManager getResourceManager()(Code) | | Gets an instance of the resource manager. A new instance is created if required
the XResourceManager instance |
getStartupFilePath | public String getStartupFilePath()(Code) | | Returns the path to the startup file so that plugins can set project info
String containing the path to the project file |
getStyleManager | public XStyleManager getStyleManager()(Code) | | Get a reference to the XStyleManager. A new instance is created if required
the style manager since: 1.03 |
getValidationExists | public boolean getValidationExists(String validationName)(Code) | | |
hasFrames | public boolean hasFrames()(Code) | | Has the project got a frameset
true if frames are in use, otherwise returns false |
hasProject | public boolean hasProject()(Code) | | |
initialise | public void initialise(String path)(Code) | | Setup the project
Parameters: path - the path to the new project's root directory |
isSwingClient | public boolean isSwingClient()(Code) | | Check if the application is swing application
true if this is a swing application |
loadPageResources | public void loadPageResources()(Code) | | Open the Project path and iterate the 'pages' folder. Call the addScreen
function for each file found. Then call the openSourceFile method to store
the source content with the parameter false so as not to create the file if
it doesn't already exist.
|
openProject | public void openProject(String newPath)(Code) | | Read the project file.
Create a new EditorClassLoader and set the relevant project paths. Set the
XEditorResourceManager customClassLoader to the new ClassLoader. Call
loadpages to refresh the Project pages.
Parameters: path - the path to the new project |
reloadPageResources | public void reloadPageResources()(Code) | | Reopen the loaded pages
|
removeAllPages | public void removeAllPages()(Code) | | Remove all page resources from the project
|
removePage | public void removePage(String pageName)(Code) | | Remove a page resource from the project
Parameters: pageName - |
replacePage | public void replacePage(String pageName, XPage updatedPage)(Code) | | Replace a page resource from the project with an updated version
Parameters: pageName - the page name Parameters: updatedPage - the updated version of this page |
save | public void save()(Code) | | Save the current project.
|
savePlugins | protected void savePlugins()(Code) | | |
saveStartupFiles | protected void saveStartupFiles()(Code) | | |
setFrameset | public void setFrameset(String framesSet)(Code) | | Set the frameset name for the project
Parameters: framesSet - |
setMode | public void setMode(int newMode)(Code) | | Sets the editor mode. The mode controls what features are available in the
editor
Parameters: newMode - this can be one of the following values - NOVICE_MODE - for a minimal user interface and only simple operations
- EXPERT_MODE - for a fulll user interface and all operations
- DEVELOPER_MODE - for the expert interface plus experimental options and possibly unstable features
|
setPath | public void setPath(String p)(Code) | | Set the path of the Project
Parameters: p - the path of the Project |
setStartupParam | public void setStartupParam(String key, String value)(Code) | | Change or add a startup property
Parameters: key - the object key Parameters: value - the object value |
setStartupProperty | public void setStartupProperty(String fieldName, String fieldValue)(Code) | | Change the startup property, the associated properties file is saved on
each change
Parameters: fieldName - the name or key of the property to change. Parameters: fieldValue - the value to place in the file. |
shutDown | public void shutDown()(Code) | | Shut down the project. Notifies the plugins of the shutdown.
|
|
|