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

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

public class ComponentProperties
extends TopComponent
implements ComponentSelectListener, EditorComponentListener, StyleListener, IComponentProperties


Method Summary
 void addStyleListener(StyleListener l)
          Set a listener for style changes
 java.util.List availableModes(java.util.List modes)
           
 boolean canClose()
           
 void componentAdded()
           
static ComponentProperties getDefault()
           
 int getPersistenceType()
           
 java.lang.String preferredID()
           
 java.lang.Object readResolve()
          Resolve to singleton instance
 void setEventHandlerEditor(EventHandlerEditor ehe)
           
 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.
protected  void updateTitle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static ComponentProperties getDefault()

availableModes

public java.util.List availableModes(java.util.List modes)

canClose

public boolean canClose()

updateTitle

protected void updateTitle()

readResolve

public java.lang.Object readResolve()
                             throws java.io.ObjectStreamException
Resolve to singleton instance

Throws:
java.io.ObjectStreamException

preferredID

public java.lang.String preferredID()

getPersistenceType

public int getPersistenceType()

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 Style