org.formaria.editor.project.pages
Interface IStylePalette

All Superinterfaces:
ComponentSelectListener, StyleListener
All Known Implementing Classes:
StylePalette, StylePalette

public interface IStylePalette
extends ComponentSelectListener, StyleListener

Copyright (c) Formaria Ltd., 1998-2007

See license.txt for license details


Method Summary
 void addStyleListener(StyleListener l)
          Set a listener for style changes
 void dispose()
           
 void setFocus()
           
 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.
 void update()
          Force the editor to refresh itself.
 

Method Detail

setFocus

void setFocus()

dispose

void dispose()

setSelectedComponents

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 -

addStyleListener

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

Parameters:
listener - the new listener

styleChanged

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

update

void update()
Force the editor to refresh itself.