org.formaria.editor.project.pages
Interface IPagePanel

All Known Implementing Classes:
PagePanel, PagePanel, PagePanel

public interface IPagePanel


Field Summary
static int NO_OPTION
           
static int YES_OPTION
           
 
Method Summary
 void add(java.lang.Object component, java.lang.Object comp)
          Add a component to the container
 IComponentInspector createInspector()
           
 ILayerPalette createLayerPalette()
           
 IComponentPalette createPalette()
           
 IComponentProperties createPropertiesPanel()
           
 IStylePalette createStylePalette()
           
 void doLayout()
          Causes this container to lay out its components.
 java.lang.Object getChild(int idx)
           
 int getChildCount()
           
 java.lang.Object getComponent(int idx)
           
 int getComponentCount()
           
 ILayerManager getLayerManager()
           
 javax.swing.JPanel getPageContainer()
           
 EditorProject getProject()
          Get the project to which this page belongs.
 int getXmlEditorHash()
           
 void hideComponents(boolean isClosing)
           
 void regenerateXml()
           
 void remove(java.lang.Object o)
          Remove an object from the container
 void setAllModified(java.lang.String pageName, java.lang.String ext)
           
 void setModified(boolean state)
           
 void showComponents()
           
 int showConfirmDialog(java.lang.Object parent, java.lang.String message, java.lang.String title, int type)
           
 void showPage(int pageIdx)
           
 void updatePageEditor()
           
 void updateXmlEditor(java.lang.String xml)
           
 void validate()
          Validates this container and all of its subcomponents.
 

Field Detail

YES_OPTION

static final int YES_OPTION
See Also:
Constant Field Values

NO_OPTION

static final int NO_OPTION
See Also:
Constant Field Values
Method Detail

remove

void remove(java.lang.Object o)
Remove an object from the container

Parameters:
o - the component to remove

doLayout

void doLayout()
Causes this container to lay out its components. Most programs should not call this method directly, but should invoke the validate method instead.

Since:
JDK1.1
See Also:
LayoutManager#layoutContainer, #setLayout, validate()

validate

void validate()
Validates this container and all of its subcomponents.

The validate method is used to cause a container to lay out its subcomponents again. It should be invoked when this container's subcomponents are modified (added to or removed from the container, or layout-related information changed) after the container has been displayed.

See Also:
#add(java.awt.Component), Component#invalidate, JComponent.revalidate()

add

void add(java.lang.Object component,
         java.lang.Object comp)
Add a component to the container

Parameters:
component - the container instance
comp - the component to add

getComponentCount

int getComponentCount()

getComponent

java.lang.Object getComponent(int idx)

setAllModified

void setAllModified(java.lang.String pageName,
                    java.lang.String ext)

setModified

void setModified(boolean state)

getXmlEditorHash

int getXmlEditorHash()

getChildCount

int getChildCount()

getChild

java.lang.Object getChild(int idx)

getPageContainer

javax.swing.JPanel getPageContainer()

getLayerManager

ILayerManager getLayerManager()

regenerateXml

void regenerateXml()

createStylePalette

IStylePalette createStylePalette()

createPalette

IComponentPalette createPalette()

createInspector

IComponentInspector createInspector()

createPropertiesPanel

IComponentProperties createPropertiesPanel()

createLayerPalette

ILayerPalette createLayerPalette()

showComponents

void showComponents()

hideComponents

void hideComponents(boolean isClosing)

updateXmlEditor

void updateXmlEditor(java.lang.String xml)

updatePageEditor

void updatePageEditor()

showConfirmDialog

int showConfirmDialog(java.lang.Object parent,
                      java.lang.String message,
                      java.lang.String title,
                      int type)

showPage

void showPage(int pageIdx)

getProject

EditorProject getProject()
Get the project to which this page belongs.