|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.formaria.editor.project.pages.PageDesigner
public class PageDesigner
A panel to allow visual editing of the page. Opens the Java source code (if any) in a separate window.
Copyright (c) Formaria Ltd., 2002-2007
$Revision: 1.77 $
License: see License.txt
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
ID_MENU_ALIGN_BOTTOM
|
static int |
ID_MENU_ALIGN_CENTER
|
static int |
ID_MENU_ALIGN_LEFT
|
static int |
ID_MENU_ALIGN_RIGHT
|
static int |
ID_MENU_ALIGN_TOP
|
static int |
ID_MENU_ARRANGE_BACK
|
static int |
ID_MENU_ARRANGE_BOTTOM
|
static int |
ID_MENU_ARRANGE_FORWARD
|
static int |
ID_MENU_ARRANGE_TOP
|
static int |
ID_MENU_COPY
|
static int |
ID_MENU_CUT
|
static int |
ID_MENU_DELETE
|
static int |
ID_MENU_JUSTIFY_HORZ
|
static int |
ID_MENU_JUSTIFY_VERT
|
static int |
ID_MENU_PASTE
|
static int |
ID_MENU_SHOW_INSITU
|
static int |
ID_MENU_SHOW_MENU
|
static int |
ID_MENU_SNAP
|
static int |
ID_MENU_SNAP_GRID
|
static int |
ID_MENU_SNAP_GUIDES
|
static int |
ID_MENU_SNAP_SIBLINGS
|
static int |
ID_MENU_SPACE_HORZ
|
static int |
ID_MENU_SPACE_VERT
|
protected java.util.Hashtable |
managerObjects
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PageDesigner(PagePanel owner)
Creates a new instance of PageDesigner |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Respond to events such as menu selections |
void |
addComponentSelectionListener(ComponentSelectListener listener)
|
void |
addEditorComponentListener(EditorComponentListener listener)
|
void |
addListeners(java.awt.Container page,
boolean isRoot)
|
java.awt.Component |
addNewComponent(java.awt.Component comp,
java.awt.Point pt,
boolean addMultiple)
|
java.awt.Component |
addNewComponent(java.awt.Component comp,
java.awt.Point pt,
boolean addMultiple,
java.lang.String pendingComp)
|
ContentHolder |
addTarget(java.lang.String name,
java.lang.Object constraint,
int preferredWidth,
int preferredHeight,
java.util.Hashtable params)
Add a new frame or target area to a frameset |
void |
alignSelectedComponents(int command)
Change the component alignment |
void |
cancelTimer()
Cancel the delayed hiding of the in-situ editing |
boolean |
canPaste()
|
void |
checkProject(EditorProject project)
Check the project |
void |
clearSelectedComponents()
|
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
void |
componentSized()
Update the state to reflect changes to the components |
void |
componentSized(boolean realign)
Update the state to reflect changes to the components |
void |
copy()
Add all of the selected components to the componentClipboard Vector. |
void |
cut()
Call copy which adds all of the selected components to the componentClipboard Vector. |
void |
deleteSelection()
Delete the selected items |
java.lang.Object |
displayDecoration(PageSupport page,
java.lang.String constraint)
Display a window decoration, for example a toolbar |
java.lang.Object |
displayPage(PageSupport page)
Called when a page has been added with the PageManager |
java.lang.Object |
displayPage(PageSupport page,
java.lang.Object attributes)
Called when a page needs to be displayed. |
java.lang.Object |
displayPage(PageSupport page,
java.lang.String target)
Called when a page needs to be displayed. |
java.lang.Object |
displayPage(PageSupport page,
java.lang.String target,
java.lang.Object attributes)
Called when a page needs to be displayed. |
void |
doAlignSelectedComponents(int command,
java.util.Vector selComps)
Change the component alignment for a single container |
void |
editDefaultProperty()
|
MenuEditor |
findMenuEditor()
Get the menu editor belonging to a pagePanel |
java.lang.Object |
findTarget(java.lang.String name)
Get a named frame/target from the current frameset |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
PageResource |
getContentPage()
Get the name of the page in the content panel |
void |
getContextMenu(javax.swing.JPopupMenu popupMenu,
java.awt.AWTEvent evt)
|
java.lang.String |
getCurrentPageExtension()
|
java.lang.String |
getCurrentPageName()
|
static IEditorUtility |
getEditorUtility()
|
GuidePane |
getGuidePane()
Get the guide pane |
int |
getInSituMode()
Get the in-situ editing mode |
java.lang.String |
getJavaFileName()
Get the name of the java source file for this page |
java.lang.String |
getJavaFileName(java.lang.String className)
Get the name of the source code file |
int |
getLastMousePressedButton()
Get the last mouse pressed button identifier |
ILayerManager |
getLayerManager()
Get the layer manager |
java.awt.Dimension |
getMinimumSize()
|
int |
getNumTargets()
Get the number of frame/target from the current frameset |
java.lang.Object |
getObject(java.lang.String key)
Get a manager object |
PagePanel |
getOwnerPage()
Get the owner page |
PageResource |
getPageResource()
Get the current page |
java.awt.Dimension |
getPreferredSize()
|
java.util.Vector |
getSelectedComponents()
|
EditorComponentFactory |
getStyleFactory()
Get the style factory |
java.lang.annotation.Target |
getTarget(java.awt.Component cont)
Get the target area parent for a component |
java.lang.annotation.Target |
getTarget(int idx)
Get the target area parent for a component |
boolean |
hasGuides()
|
boolean |
hasPasteContent()
Check that there are items to paste |
protected void |
hideInSituMode()
Clear the in-situ editing mode |
boolean |
isAddingComponent()
|
boolean |
isStaticMethod(java.lang.String methodName)
Is this a static method reference |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
PageResource |
loadPage(java.lang.String pageName,
java.lang.String ext,
java.lang.String target,
int pageWidth,
int pageHeight)
Load a page into the named area |
boolean |
locateMethod(java.lang.String methodName,
boolean addNewMethod,
PageResource ownerPageRes,
boolean ctrlDown)
Locates the method specified by the parameter methodName. |
void |
menuCanceled(javax.swing.event.MenuEvent e)
|
void |
menuDeselected(javax.swing.event.MenuEvent e)
|
void |
menuSelected(javax.swing.event.MenuEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent evt)
|
void |
mouseDragged(java.awt.event.MouseEvent evt)
|
void |
mouseEntered(java.awt.event.MouseEvent evt)
|
void |
mouseExited(java.awt.event.MouseEvent evt)
|
void |
mouseMoved(java.awt.event.MouseEvent evt)
|
void |
mousePressed(java.awt.event.MouseEvent evt)
|
void |
mouseReleased(java.awt.event.MouseEvent evt)
|
protected void |
moveComponent(int mode)
Change the z-order of a component |
void |
openPageSource(boolean activate)
Open the Java source code for the current page. |
void |
openPageSource(PageResource pageResource,
boolean activate)
Open the Java source code for the current page. |
void |
paste()
first check that the componentClipboard is not null and then effectively clone each component found in it. |
void |
projectInitialized(EditorProject project)
Notification of project initialized. |
void |
projectLoaded(EditorProject project)
Notification of a project load |
void |
projectUpdated(EditorProject project)
The project has been updated |
void |
removeAllTargets()
Remove all frames/targets from the current frameset |
void |
removeListeners(java.awt.Container page)
|
void |
reselectComponents()
Tells the page designer to reselect the components to reflect changes which may have to be reflected in the properties table. |
void |
resetListeners()
Reset the page listeners after a build |
void |
resetProject(java.lang.String moduleName,
EditorProject project)
Inform a project that it should reset any object references it has stored |
void |
resetStyles()
|
void |
saveProject(EditorProject project)
Notification the project is being saved |
void |
selectAllIntersecting(java.awt.Container parent,
java.awt.Rectangle rect,
boolean cutSelection)
Add all the components intersecting the rectangle to the current selection |
void |
selectComponent(java.awt.Component selection,
boolean init)
|
void |
setCurrentPageModified()
Mark the current page as modified |
static void |
setEditorUtility(IEditorUtility eu,
boolean isEclipse)
|
void |
setEventHandlerEditor(EventHandlerEditor ehe)
|
void |
setLastMousePressedButton(int b)
Set the last mouse pressed button identifier |
protected void |
setModified(java.awt.Component comp)
Set the NetBeans cookies and objects as modified for the referenced component |
void |
setMouseDownLocation(java.awt.Point p)
Set the location of the popup menu |
void |
setObject(java.lang.String key,
java.lang.Object obj)
Set the manager object |
void |
setPage(Page page)
|
void |
setScreen(java.lang.String name,
java.lang.String ext,
java.lang.String methodName,
boolean create)
First set the current source in the Project. |
void |
setupFrameset(java.util.Hashtable params)
Setup frameset. |
protected void |
showDialog(Page dialog)
Show the dialog in design mode. |
void |
showGuides(boolean showGuides)
|
protected void |
showInSituMode(java.awt.Component c,
java.awt.Point p)
Show the rollover in-situ editing |
void |
showLaf(boolean showSystemLaf)
Use the system look and feel. |
void |
showMenu()
Call copy which adds all of the selected components to the componentClipboard Vector. |
void |
sizeGuidePane()
Change the size of the guide pane to match that of this window |
void |
startTimer()
|
void |
textValueChanged(java.awt.event.TextEvent e)
|
int |
toggleInSituMode()
Move to the next in-situ editing mode |
void |
toolSelected(java.lang.String comp,
EditorComponentAdapter eca)
Notification that a tool was selected |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.formaria.aria.PageDisplay |
|---|
doLayout |
| Field Detail |
|---|
public static final int ID_MENU_CUT
public static final int ID_MENU_COPY
public static final int ID_MENU_PASTE
public static final int ID_MENU_DELETE
public static final int ID_MENU_SHOW_MENU
public static final int ID_MENU_SHOW_INSITU
public static final int ID_MENU_SNAP
public static final int ID_MENU_SNAP_GRID
public static final int ID_MENU_SNAP_GUIDES
public static final int ID_MENU_SNAP_SIBLINGS
public static final int ID_MENU_ALIGN_LEFT
public static final int ID_MENU_ALIGN_RIGHT
public static final int ID_MENU_ALIGN_TOP
public static final int ID_MENU_ALIGN_BOTTOM
public static final int ID_MENU_ALIGN_CENTER
public static final int ID_MENU_JUSTIFY_HORZ
public static final int ID_MENU_JUSTIFY_VERT
public static final int ID_MENU_SPACE_HORZ
public static final int ID_MENU_SPACE_VERT
public static final int ID_MENU_ARRANGE_BOTTOM
public static final int ID_MENU_ARRANGE_BACK
public static final int ID_MENU_ARRANGE_FORWARD
public static final int ID_MENU_ARRANGE_TOP
protected java.util.Hashtable managerObjects
| Constructor Detail |
|---|
public PageDesigner(PagePanel owner)
| Method Detail |
|---|
public java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic void showGuides(boolean showGuides)
public void sizeGuidePane()
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void addComponentSelectionListener(ComponentSelectListener listener)
public void addEditorComponentListener(EditorComponentListener listener)
public void setPage(Page page)
public void addListeners(java.awt.Container page,
boolean isRoot)
public void removeListeners(java.awt.Container page)
public java.lang.Object displayPage(PageSupport page)
displayPage in interface PageDisplaypage - The Page which has been loaded.
public java.lang.Object displayPage(PageSupport page,
java.lang.Object attributes)
page - the new pagetarget - the name of the target area to updateattribs - attributes for use by the new page / taregt
public void menuCanceled(javax.swing.event.MenuEvent e)
menuCanceled in interface javax.swing.event.MenuListenerpublic void menuDeselected(javax.swing.event.MenuEvent e)
menuDeselected in interface javax.swing.event.MenuListenerpublic void menuSelected(javax.swing.event.MenuEvent e)
menuSelected in interface javax.swing.event.MenuListenerpublic boolean canPaste()
public boolean hasGuides()
public boolean isAddingComponent()
public void openPageSource(boolean activate)
public void openPageSource(PageResource pageResource,
boolean activate)
public void showMenu()
public MenuEditor findMenuEditor()
public void cut()
public void copy()
public void paste()
public boolean hasPasteContent()
public void setMouseDownLocation(java.awt.Point p)
p - the pointpublic void deleteSelection()
public void getContextMenu(javax.swing.JPopupMenu popupMenu,
java.awt.AWTEvent evt)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenerpublic void focusGained(java.awt.event.FocusEvent e)
public void focusLost(java.awt.event.FocusEvent e)
public void textValueChanged(java.awt.event.TextEvent e)
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListener
public java.awt.Component addNewComponent(java.awt.Component comp,
java.awt.Point pt,
boolean addMultiple)
public java.awt.Component addNewComponent(java.awt.Component comp,
java.awt.Point pt,
boolean addMultiple,
java.lang.String pendingComp)
protected void setModified(java.awt.Component comp)
comp - the new/modified componentpublic void setCurrentPageModified()
public void alignSelectedComponents(int command)
command - the menu id used to invoke the option
public void doAlignSelectedComponents(int command,
java.util.Vector selComps)
command - the menu id used to invoke the optionuseParent - align within parentpublic void componentSized()
componentSized in interface SizerListenerpublic void componentSized(boolean realign)
realign - true to realign the components to the guides and gridpublic void reselectComponents()
public void toolSelected(java.lang.String comp,
EditorComponentAdapter eca)
ToolbarSelectionListener
toolSelected in interface ToolbarSelectionListenercomp - the key that identifies the toolpublic void mouseExited(java.awt.event.MouseEvent evt)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent evt)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased in interface java.awt.event.MouseListener
public void selectAllIntersecting(java.awt.Container parent,
java.awt.Rectangle rect,
boolean cutSelection)
rect - the selection rectanglepublic void mousePressed(java.awt.event.MouseEvent evt)
mousePressed in interface java.awt.event.MouseListenerpublic void editDefaultProperty()
protected void hideInSituMode()
public void startTimer()
public void cancelTimer()
public int toggleInSituMode()
public int getInSituMode()
protected void showInSituMode(java.awt.Component c,
java.awt.Point p)
public java.lang.String getCurrentPageName()
public java.lang.String getCurrentPageExtension()
public void mouseMoved(java.awt.event.MouseEvent evt)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseDragged(java.awt.event.MouseEvent evt)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked in interface java.awt.event.MouseListener
public void selectComponent(java.awt.Component selection,
boolean init)
public PageResource getContentPage()
public ILayerManager getLayerManager()
public PageResource loadPage(java.lang.String pageName,
java.lang.String ext,
java.lang.String target,
int pageWidth,
int pageHeight)
pageName - the page nameext - the file extensiontarget - the name of the target areapageWidth - the page widthpageHeight - the page heightprotected void showDialog(Page dialog)
dialog - the dialog class instancepublic java.lang.String getJavaFileName(java.lang.String className)
public java.lang.Object displayDecoration(PageSupport page,
java.lang.String constraint)
displayDecoration in interface PageDisplaypage - the new pageconstraint - a value controlling how and where the decoration is
displayed, this value is application type specific
public void showLaf(boolean showSystemLaf)
showSystemLaf - true to use the system look and feel, otherwise use the Java look and feelpublic GuidePane getGuidePane()
public PagePanel getOwnerPage()
public PageResource getPageResource()
public void projectInitialized(EditorProject project)
ProjectListener
projectInitialized in interface ProjectListenerproject - the editor project just initializedpublic void projectLoaded(EditorProject project)
ProjectListener
projectLoaded in interface ProjectListenerproject - the editor project just loadedpublic void setLastMousePressedButton(int b)
b - the button indexpublic int getLastMousePressedButton()
public void projectUpdated(EditorProject project)
projectUpdated in interface ProjectListenerpublic void saveProject(EditorProject project)
ProjectListener
saveProject in interface ProjectListenerproject - the editor project to savepublic void checkProject(EditorProject project)
ProjectListener
checkProject in interface ProjectListenerproject - the editor project to check
public void resetProject(java.lang.String moduleName,
EditorProject project)
ProjectListener
resetProject in interface ProjectListenermoduleName - the name of the module that caused/required the reloadproject - the editor project to checkpublic void resetStyles()
public void resetListeners()
public java.util.Vector getSelectedComponents()
public void clearSelectedComponents()
public ContentHolder addTarget(java.lang.String name,
java.lang.Object constraint,
int preferredWidth,
int preferredHeight,
java.util.Hashtable params)
PageDisplay
addTarget in interface PageDisplayname - the frame nameconstraint - the BorderlayoutConstraintpreferredWidth - the preferred widthpreferredHeight - the preferred heightparams - extra parameters for the target
public java.lang.Object displayPage(PageSupport page,
java.lang.String target)
PageDisplay
displayPage in interface PageDisplaypage - the new pagetarget - the name of the target area to update
public java.lang.Object displayPage(PageSupport page,
java.lang.String target,
java.lang.Object attributes)
PageDisplay
displayPage in interface PageDisplaypage - the new pagetarget - the name of the target area to update
public void setEventHandlerEditor(EventHandlerEditor ehe)
public java.lang.String getJavaFileName()
public void setScreen(java.lang.String name,
java.lang.String ext,
java.lang.String methodName,
boolean create)
name - The name of the screen we are trying to loadext - the file name extensionmethodName - the name of the methodcreate - If true create a template file for the source if not found.
public boolean locateMethod(java.lang.String methodName,
boolean addNewMethod,
PageResource ownerPageRes,
boolean ctrlDown)
methodName - The name of the method we are looking for.addNewMethod - If true create the method if not found.pageRes - the page resources that owns the method or null
public boolean isStaticMethod(java.lang.String methodName)
methodName - the method name
public EditorComponentFactory getStyleFactory()
public java.lang.annotation.Target getTarget(java.awt.Component cont)
public java.lang.annotation.Target getTarget(int idx)
getTarget in interface PageDisplayidx - the target area
public void removeAllTargets()
PageDisplay
removeAllTargets in interface PageDisplaypublic java.lang.Object findTarget(java.lang.String name)
PageDisplay
findTarget in interface PageDisplayname - the name of the frame
public void setupFrameset(java.util.Hashtable params)
setupFrameset in interface PageDisplayparams - the framset parameters if anypublic int getNumTargets()
getNumTargets in interface PageDisplayprotected void moveComponent(int mode)
mode - the ordering modepublic java.lang.Object getObject(java.lang.String key)
key - the name of the object e.g. "Routes", "Services"
public void setObject(java.lang.String key,
java.lang.Object obj)
key - the name of the object e.g. "Routes", "Services"obj - the object instance
public static void setEditorUtility(IEditorUtility eu,
boolean isEclipse)
public static IEditorUtility getEditorUtility()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||