Interface DesignAdapter
-
- All Known Implementing Classes:
AbstractDesignAdapter,SessionPropsAdapter
public interface DesignAdapterContains methods and events that are used to design a view in the perspective workspace.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidalterEventConfig(EventConfigChange change)voidalterPropertyConfig(PropertyConfigChange change)voidalterScriptConfig(ScriptConfigChange change)voidalterViewPermissions(PermissionsConfig config)java.util.concurrent.CompletableFuture<ComponentDetails>getComponentDetails(java.lang.String componentIndexPath)DesignerContextgetContext()DeepSelectiongetDeepSelection()com.teamdev.jxbrowser.js.JsObjectgetDesignerComponentStore()Expected to be non-null iff the results ofgetDeepSelection()are non-null.com.google.common.eventbus.EventBusgetEventBus()Event bus that can be used to listen to the following event types:SelectionChangeEventDeepSelectionChangeEventDeepSelectionUpdateEventSelectionPropertyUpdateEventEditorShutdownEventComponentSelectiongetSelection()java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>getSymbolicPath(java.lang.String indexPath)ViewStructuregetViewStructure()voidremoveChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)voidremoveProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, int index)voidremoveProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String name)voidrenameProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String oldName, java.lang.String newName)voidsendRaw(java.lang.String protocol, java.lang.String payloadJson)voidwrite(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath, java.lang.String valueAsJson)
-
-
-
Method Detail
-
getContext
DesignerContext getContext()
-
getEventBus
com.google.common.eventbus.EventBus getEventBus()
Event bus that can be used to listen to the following event types:SelectionChangeEventDeepSelectionChangeEventDeepSelectionUpdateEventSelectionPropertyUpdateEventEditorShutdownEvent
-
getSymbolicPath
java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getSymbolicPath(java.lang.String indexPath)
-
getComponentDetails
java.util.concurrent.CompletableFuture<ComponentDetails> getComponentDetails(java.lang.String componentIndexPath)
-
getDeepSelection
@Nullable DeepSelection getDeepSelection()
-
getDesignerComponentStore
@Nullable com.teamdev.jxbrowser.js.JsObject getDesignerComponentStore()
Expected to be non-null iff the results ofgetDeepSelection()are non-null.- Returns:
- a reference to the designer component store, or null.
-
getSelection
ComponentSelection getSelection()
-
getViewStructure
ViewStructure getViewStructure()
-
write
void write(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath, java.lang.String valueAsJson)
-
renameProperty
void renameProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String oldName, java.lang.String newName)
-
removeProperty
void removeProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, java.lang.String name)
-
removeProperty
void removeProperty(java.lang.String componentIndexPath, PropertyType scope, java.lang.String pathToParent, int index)
-
removeChildPropertyConfigs
void removeChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)
-
alterPropertyConfig
void alterPropertyConfig(PropertyConfigChange change)
-
alterEventConfig
void alterEventConfig(EventConfigChange change)
-
alterScriptConfig
void alterScriptConfig(ScriptConfigChange change)
-
alterViewPermissions
void alterViewPermissions(PermissionsConfig config)
-
sendRaw
void sendRaw(java.lang.String protocol, java.lang.String payloadJson)
-
-