| javax.swing.JPanel net.xoetrope.builder.editor.XuiEditor
XuiEditor | public class XuiEditor extends JPanel implements CommandListener,ProjectListener,XPageListListener,ComponentSelectListener,StyleListener,EventHandlerEditor,ToolbarListener,EditorComponentListener,ChangeListener(Code) | | The main editor class, responsible for constucting the editor, menus, toolbars etc...
Copyright (c) Xoetrope Ltd., 2002-2003
$Revision: 1.20 $
License: see license.txt
|
Method Summary | |
public void | addPlugin() | public void | addPluginEditor(XEditorPlugin plugin) | public void | addPluginMenu(XEditorPlugin plugin) | public void | addPluginPanel(XEditorPlugin plugin) | public void | addPluginToolbar(XEditorPlugin plugin) | public void | addPropertiesListener(PropertiesListener listener) | protected void | bundleProject() Bundle the current project into a jar file for distribution. | protected void | compileProject() | public void | componentAdded() | public void | editCopy() | public void | editCut() | public void | editDelete() | public void | editPaste() | protected void | exitProject(boolean allowCancel) | public JFrame | getFrame() | public XGuidePane | getGuidePane() | public XEditorMenu | getMenu() | public XMessageArea | getMessageArea() | public Dimension | getMinimumSize() | public static XPageHolder | getPageHolder() | public XToolPalette | getToolPalette() | public void | loadFrames(boolean showFrames) | public void | loadPage(String pageName, String target, int pageWidth, int pageHeight) | public static void | main(String args) | protected void | newPage() | protected void | newProject() | public void | openProject(String fileName) | protected void | openProject() | public void | pluginPanelActivated() | public void | pluginPanelDeactivated() | public void | processCommand(String command, ActionEvent evt, boolean selected) | public void | processCommand(int command, ActionEvent evt, boolean selected) | public void | processPluginCommand(int command, AWTEvent evt, boolean selected) | public void | projectLoaded(XEditorProject project) Respond to the project loading by updating the UI components - menus, toolbars etc... | public void | projectUpdated() | protected void | registerHelpers() | public void | removePlugin() | protected void | removePluginEditor() | public boolean | removePluginMenu(XEditorPlugin plugin) | public boolean | removePluginPanel(XEditorPlugin plugin) | public void | removePluginToolbar(XEditorPlugin plugin) | public void | reparsePageXml() Reparse the page XML if it has changed. | protected void | saveProject() | public void | setNewComponent(Component c) | public void | setPendingComponentName(String name) | public void | setSelectedComponents(Vector selectedComponents) | protected void | setXml(int view) | protected void | setupGuiEditor() | protected void | setupProject(String projectPath) | protected void | setupTextEditor() | protected void | setupXmlEditor(int type) | public void | showEventHandler(XPageResource page, Component source, String methodName, long mask) | public void | showMessageArea(boolean forceDisplay) Show or hide the message area. | public void | showPageEventHandler(XPageResource page, String methodName) | public void | stateChanged(ChangeEvent e) | public void | styleChanged(String name, XStyle style) | public void | toolbarClicked(String c) |
pendingComponent | protected int pendingComponent(Code) | | |
xmlEditorvalidationEditorstaticDataEditor | protected XSourceEditor xmlEditorvalidationEditorstaticDataEditor(Code) | | |
addPlugin | public void addPlugin()(Code) | | Add a plugin and setup its components
|
addPluginPanel | public void addPluginPanel(XEditorPlugin plugin)(Code) | | Add a tab panel for the plugin
Parameters: plugin - the new plugin |
addPluginToolbar | public void addPluginToolbar(XEditorPlugin plugin)(Code) | | Add the plugin toolbar
|
bundleProject | protected void bundleProject()(Code) | | Bundle the current project into a jar file for distribution.
|
compileProject | protected void compileProject()(Code) | | |
componentAdded | public void componentAdded()(Code) | | |
editCopy | public void editCopy()(Code) | | |
editCut | public void editCut()(Code) | | |
editDelete | public void editDelete()(Code) | | |
editPaste | public void editPaste()(Code) | | |
exitProject | protected void exitProject(boolean allowCancel)(Code) | | Shutdown the project
Parameters: allowCancel - on system exit there is no way to prevent the application window from disappearing, so cancel is inappropriate |
getFrame | public JFrame getFrame()(Code) | | Get a reference to the message area
|
getMessageArea | public XMessageArea getMessageArea()(Code) | | Get a reference to the message area
|
getToolPalette | public XToolPalette getToolPalette()(Code) | | Get the toolbar/palette
a reference to th toolbar |
loadFrames | public void loadFrames(boolean showFrames)(Code) | | Load a frameset
Parameters: showFrames - true to show the frames |
loadPage | public void loadPage(String pageName, String target, int pageWidth, int pageHeight)(Code) | | |
main | public static void main(String args)(Code) | | The main entry point to the editor
Parameters: args - the project takes no arguments so far and is not used |
newPage | protected void newPage()(Code) | | Create a new screen by popping up a dialog
|
newProject | protected void newProject()(Code) | | |
openProject | protected void openProject()(Code) | | Show the open dialog and open the selected project
|
pluginPanelActivated | public void pluginPanelActivated()(Code) | | A tabbar belonging to a plugin has been activated
|
pluginPanelDeactivated | public void pluginPanelDeactivated()(Code) | | The plugin pane has been deactivated
|
processCommand | public void processCommand(String command, ActionEvent evt, boolean selected)(Code) | | Process menu and toolbar commands
Parameters: command - the command id Parameters: evt - the original event Parameters: selected - the selected state of the toolbar or menu item or false if no state exists |
processCommand | public void processCommand(int command, ActionEvent evt, boolean selected)(Code) | | Process menu and toolbar commands
Parameters: command - the command id Parameters: evt - the original event Parameters: selected - the selected state of the toolbar or menu item or false if no state exists |
processPluginCommand | public void processPluginCommand(int command, AWTEvent evt, boolean selected)(Code) | | Process a menu commands for a plugin
Parameters: command - the command id Parameters: evt - the original event Parameters: selected - the selected state of the toolbar or menu item or false if no state exists |
projectLoaded | public void projectLoaded(XEditorProject project)(Code) | | Respond to the project loading by updating the UI components - menus, toolbars etc...
Parameters: project - |
projectUpdated | public void projectUpdated()(Code) | | The project has been updated
|
registerHelpers | protected void registerHelpers()(Code) | | |
removePlugin | public void removePlugin()(Code) | | Remove a plugin and setup its components
|
removePluginEditor | protected void removePluginEditor()(Code) | | |
removePluginMenu | public boolean removePluginMenu(XEditorPlugin plugin)(Code) | | Remove the plugin's menu
|
removePluginToolbar | public void removePluginToolbar(XEditorPlugin plugin)(Code) | | Remove the plugin toolbar
|
reparsePageXml | public void reparsePageXml()(Code) | | Reparse the page XML if it has changed.
|
saveProject | protected void saveProject()(Code) | | Save the project
|
setPendingComponentName | public void setPendingComponentName(String name)(Code) | | Set the name of the component selected for addition
Parameters: name - the component name |
setSelectedComponents | public void setSelectedComponents(Vector selectedComponents)(Code) | | Coordinate the response to a component selection
Parameters: selectedComponents - the list of selected components |
setXml | protected void setXml(int view)(Code) | | Update the displayed XML
Parameters: view - - XEditorMenu.ID_MENU_VIEW_SOURCE to view the page xml
- XEditorMenu.ID_MENU_VIEW_VALIDATIONS to view the validations xml
- XEditorMenu.ID_MENU_VIEW_DATA to view the static data xml
|
setupGuiEditor | protected void setupGuiEditor()(Code) | | Setup the RHS of the editor
|
setupProject | protected void setupProject(String projectPath)(Code) | | |
setupTextEditor | protected void setupTextEditor()(Code) | | |
setupXmlEditor | protected void setupXmlEditor(int type)(Code) | | Add another tab for XML display
Parameters: type - - XEditorMenu.ID_MENU_VIEW_SOURCE to view the page xml
- XEditorMenu.ID_MENU_VIEW_VALIDATIONS to view the validations xml
- XEditorMenu.ID_MENU_VIEW_DATA to view the static data xml
|
showEventHandler | public void showEventHandler(XPageResource page, Component source, String methodName, long mask)(Code) | | Show the Java source code at the point of the specified method
Parameters: page - the page resource that owns the method Parameters: source - the component that initiates the event Parameters: methodName - the response method name Parameters: mask - the event mask |
showMessageArea | public void showMessageArea(boolean forceDisplay)(Code) | | Show or hide the message area.
Parameters: forceDisplay - true to force disply, false to toggle display on or off |
stateChanged | public void stateChanged(ChangeEvent e)(Code) | | The tabbar selection has changed
Parameters: e - the change event |
|
|