|
|||||||||
| 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.PagePanel
public class PagePanel
UI support for editing the a page. Opens the the XML in a separate window
Copyright (c) Formaria Ltd., 2002-2003
$Revision: 1.60 $
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 java.lang.String |
DEFAULT_COMPONENT_INSPECTOR_MODE
|
static java.lang.String |
DEFAULT_COMPONENT_PALETTE_MODE
|
static java.lang.String |
DEFAULT_COMPONENT_PROPERTIES_MODE
|
static java.lang.String |
DEFAULT_LAYER_PALETTE_MODE
|
static java.lang.String |
DEFAULT_STYLE_PALETTE_MODE
|
static int |
MODE_VISUAL
|
static int |
MODE_XML
|
protected int |
xmlEditorHash
|
| 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 org.formaria.editor.project.pages.IPagePanel |
|---|
NO_OPTION, YES_OPTION |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PagePanel(java.lang.Object parent,
EditorProject project,
java.lang.String name,
java.lang.String builder)
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object component,
java.lang.Object constraint)
Add a component to the container |
void |
componentChanged()
|
IComponentInspector |
createInspector()
|
ILayerPalette |
createLayerPalette()
|
IComponentPalette |
createPalette()
|
IComponentProperties |
createPropertiesPanel()
|
IStylePalette |
createStylePalette()
|
java.lang.Object |
getChild(int i)
|
int |
getChildCount()
|
PageResource |
getCurrentPage()
|
ILayerManager |
getLayerManager()
|
int |
getMode()
|
Notifiable |
getNotifiable()
|
javax.swing.JPanel |
getPageContainer()
|
PageDesigner |
getPageDesigner()
|
EditorProject |
getProject()
Get the project to which this page belongs. |
javax.swing.JComponent |
getToolbarRepresentation()
|
javax.swing.JComponent |
getVisualRepresentation()
|
int |
getXmlEditorHash()
Get the hash code of the xml text |
void |
hideComponents(boolean isClosing)
|
boolean |
isModified()
|
boolean |
isXmlDirty()
|
void |
regenerateXml()
|
void |
remove(java.lang.Object o)
Remove an object from the container |
boolean |
reparsePageXml(PageResource pageRes,
java.lang.String pageName)
Reparse the page XML if it has changed. |
boolean |
reparsePageXml(java.lang.String pageName)
|
void |
setAllModified(java.lang.String pageName,
java.lang.String ext)
|
void |
setMode(int mode)
|
void |
setModified(boolean newState)
|
void |
showComponents()
|
int |
showConfirmDialog(java.lang.Object parent,
java.lang.String message,
java.lang.String title,
int type)
|
void |
showEventHandler(PageResource page,
java.awt.Component source,
java.lang.String methodName,
java.lang.Class klass,
boolean ctrlDown)
Show the Java source code at the point of the specified method |
void |
showEventHandler(PageResource page,
java.awt.Component source,
java.lang.String methodName,
long mask,
boolean ctrlDown)
Show the Java source code at the point of the specified method |
void |
showPage(int pageIdx)
|
void |
showPageEventHandler(PageResource page,
java.lang.String methodName,
boolean ctrlDown)
|
void |
updatePageEditor()
|
void |
updateXmlEditor(java.lang.String xml)
|
| 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, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, 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.editor.project.pages.IPagePanel |
|---|
doLayout, getComponent, getComponentCount, validate |
| Field Detail |
|---|
public static java.lang.String DEFAULT_COMPONENT_PROPERTIES_MODE
public static java.lang.String DEFAULT_COMPONENT_INSPECTOR_MODE
public static java.lang.String DEFAULT_COMPONENT_PALETTE_MODE
public static java.lang.String DEFAULT_STYLE_PALETTE_MODE
public static java.lang.String DEFAULT_LAYER_PALETTE_MODE
protected int xmlEditorHash
public static final int MODE_VISUAL
public static final int MODE_XML
| Constructor Detail |
|---|
public PagePanel(java.lang.Object parent,
EditorProject project,
java.lang.String name,
java.lang.String builder)
| Method Detail |
|---|
public void setMode(int mode)
public int getMode()
public void showPage(int pageIdx)
showPage in interface IPagePanelpublic EditorProject getProject()
IPagePanel
getProject in interface IPagePanelpublic IComponentPalette createPalette()
createPalette in interface IPagePanelpublic IComponentInspector createInspector()
createInspector in interface IPagePanelpublic IComponentProperties createPropertiesPanel()
createPropertiesPanel in interface IPagePanelpublic IStylePalette createStylePalette()
createStylePalette in interface IPagePanelpublic ILayerPalette createLayerPalette()
createLayerPalette in interface IPagePanel
public void setAllModified(java.lang.String pageName,
java.lang.String ext)
setAllModified in interface IPagePanelpublic boolean isXmlDirty()
public void updatePageEditor()
updatePageEditor in interface IPagePanelpublic void updateXmlEditor(java.lang.String xml)
updateXmlEditor in interface IPagePanelpublic void regenerateXml()
regenerateXml in interface IPagePanelpublic void setModified(boolean newState)
setModified in interface ModifiablesetModified in interface IPagePanelpublic boolean isModified()
isModified in interface Modifiablepublic Notifiable getNotifiable()
getNotifiable in interface Modifiablepublic javax.swing.JComponent getVisualRepresentation()
public javax.swing.JComponent getToolbarRepresentation()
public void showComponents()
showComponents in interface IPagePanelpublic void hideComponents(boolean isClosing)
hideComponents in interface IPagePanelpublic boolean reparsePageXml(java.lang.String pageName)
public boolean reparsePageXml(PageResource pageRes,
java.lang.String pageName)
public void showEventHandler(PageResource page,
java.awt.Component source,
java.lang.String methodName,
long mask,
boolean ctrlDown)
showEventHandler in interface EventHandlerEditorpage - the page resource that owns the methodsource - the component that initiates the eventmethodName - the response method namemask - the event mask
public void showEventHandler(PageResource page,
java.awt.Component source,
java.lang.String methodName,
java.lang.Class klass,
boolean ctrlDown)
showEventHandler in interface EventHandlerEditorpage - the page resource that owns the methodsource - the component that initiates the eventmethodName - the response method nameklass - the event class
public void showPageEventHandler(PageResource page,
java.lang.String methodName,
boolean ctrlDown)
showPageEventHandler in interface EventHandlerEditorpublic int getChildCount()
getChildCount in interface IPagePanelpublic java.lang.Object getChild(int i)
getChild in interface IPagePanelpublic PageResource getCurrentPage()
public void componentChanged()
public javax.swing.JPanel getPageContainer()
getPageContainer in interface IPagePanelpublic PageDesigner getPageDesigner()
public ILayerManager getLayerManager()
getLayerManager in interface IPagePanel
public void add(java.lang.Object component,
java.lang.Object constraint)
add in interface IPagePanelcomponent - the component to addconstraint - the layout constraintpublic void remove(java.lang.Object o)
remove in interface IPagePanelo - the component to removepublic int getXmlEditorHash()
getXmlEditorHash in interface IPagePanel
public int showConfirmDialog(java.lang.Object parent,
java.lang.String message,
java.lang.String title,
int type)
showConfirmDialog in interface IPagePanel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||