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

java.lang.Object
  extended by ViewPart
      extended by org.formaria.editor.eclipse.project.pages.ComponentPalette
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, ComponentSelectListener, EditorComponentListener, IComponentPalette

public class ComponentPalette
extends ViewPart
implements IComponentPalette


Constructor Summary
ComponentPalette()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addToolbarListener(ToolbarSelectionListener l)
           
 void componentAdded()
           
 void createPartControl(Composite parent)
           
 void dispose()
           
static IComponentPalette getDefault()
           
 void refresh()
          Refresh the list of components registered via extra component factories.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPalette

public ComponentPalette()
Method Detail

createPartControl

public void createPartControl(Composite parent)

setFocus

public void setFocus()

dispose

public void dispose()

getDefault

public static IComponentPalette getDefault()

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

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

addToolbarListener

public void addToolbarListener(ToolbarSelectionListener l)
Specified by:
addToolbarListener in interface IComponentPalette

refresh

public void refresh()
Refresh the list of components registered via extra component factories.

Specified by:
refresh in interface IComponentPalette

setPageDesigner

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