Advertisement
Guest User

Untitled

a guest
May 27th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. package org.uberfire.ext.layout.editor.client;
  2.  
  3. import java.util.Map;
  4.  
  5. import com.google.gwt.user.client.ui.Widget;
  6. import org.jboss.errai.common.client.api.RemoteCallback;
  7. import org.uberfire.backend.vfs.Path;
  8. import org.uberfire.ext.layout.editor.client.structure.EditorWidget;
  9. import org.uberfire.ext.layout.editor.client.util.LayoutDragComponent;
  10. import org.uberfire.ext.plugin.model.LayoutEditorModel;
  11. import org.uberfire.ext.plugin.model.PluginType;
  12. import org.uberfire.mvp.ParameterizedCommand;
  13.  
  14. public interface LayoutEditorPluginAPI {
  15.  
  16. void init( PluginType pluginType,
  17. String layoutName,
  18. LayoutDragComponent... layoutDragComponent );
  19.  
  20. Widget asWidget();
  21.  
  22. void load( PluginType pluginType,
  23. Path currentPath,
  24. ParameterizedCommand<LayoutEditorModel> loadCallBack );
  25.  
  26. void save( Path path,
  27. RemoteCallback<Path> saveSuccessCallback );
  28.  
  29. int getCurrentModelHash();
  30.  
  31. void addLayoutProperty( String key,
  32. String value );
  33.  
  34. String getLayoutProperty( String key );
  35.  
  36. Map<String, String> getLayoutComponentProperties( EditorWidget component );
  37.  
  38. void addComponentProperty( EditorWidget component,
  39. String htmlCode,
  40. String text );
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement