org.formaria.editor.eclipse.project.pages
Class ComponentProperties

java.lang.Object
  extended by ViewPart
      extended by org.formaria.editor.eclipse.project.pages.ComponentProperties
All Implemented Interfaces:
ComponentSelectListener, EditorComponentListener, IComponentProperties, StyleListener

public class ComponentProperties
extends ViewPart
implements IComponentProperties


Constructor Summary
ComponentProperties()
           
 
Method Summary
 void addStyleListener(StyleListener l)
          Set a listener for style changes
 void componentAdded()
           
 void createPartControl(Composite parent)
           
 void dispose()
           
static IComponentProperties getDefault()
           
 void setEventHandlerEditor(EventHandlerEditor ehe)
           
 void setFocus()
           
 void setNewComponent(java.awt.Component c)
           
 void setPageDesigner(PageDesigner pd)
           
 void setSelectedComponents(IPagePanel currentPagePanel, java.util.Vector selectedComponents, boolean contentsChanged)
          Called when a component has been selected
 void styleChanged(java.lang.String styleName, Style newStyle)
          Called when a style is changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentProperties

public ComponentProperties()
Method Detail

createPartControl

public void createPartControl(Composite parent)

setFocus

public void setFocus()

dispose

public void dispose()

getDefault

public static IComponentProperties getDefault()

setPageDesigner

public void setPageDesigner(PageDesigner pd)
Specified by:
setPageDesigner in interface IComponentProperties

setSelectedComponents

public void setSelectedComponents(IPagePanel currentPagePanel,
                                  java.util.Vector selectedComponents,
                                  boolean contentsChanged)
Called when a component has been selected

Specified by:
setSelectedComponents in interface ComponentSelectListener
Parameters:
selectedComponents -

componentAdded

public void componentAdded()
Specified by:
componentAdded in interface EditorComponentListener

setNewComponent

public void setNewComponent(java.awt.Component c)
Specified by:
setNewComponent in interface EditorComponentListener

setEventHandlerEditor

public void setEventHandlerEditor(EventHandlerEditor ehe)
Specified by:
setEventHandlerEditor in interface IComponentProperties

addStyleListener

public void addStyleListener(StyleListener l)
Set a listener for style changes

Specified by:
addStyleListener in interface IComponentProperties
Parameters:
listener - the new listener

styleChanged

public void styleChanged(java.lang.String styleName,
                         Style newStyle)
Called when a style is changed. This allows the editor to reset the components visually.

Specified by:
styleChanged in interface StyleListener
Parameters:
styleName - the name of the style which has been changed
newStyle - The new XStyle