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, boolean createUndoAction)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.java.util.concurrent.CompletableFuture<java.lang.String>getEffectivePipeSelectionAppearance()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()voidinsertProperty(InsertPropertyChange change)voidremoveChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)voidremoveProperty(RemovePropertyChange change, boolean createUndoAction)voidrenameProperty(RenamePropertyChange change, boolean createUndoAction)voidsendRaw(java.lang.String protocol, java.lang.String payloadJson)voidwriteProperties(WritePropertiesChange change)voidwriteProperty(WritePropertyChange change, boolean createUndoAction)
-
-
-
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)
-
getEffectivePipeSelectionAppearance
java.util.concurrent.CompletableFuture<java.lang.String> getEffectivePipeSelectionAppearance()
-
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()
-
writeProperty
void writeProperty(WritePropertyChange change, boolean createUndoAction)
-
writeProperties
void writeProperties(WritePropertiesChange change)
-
insertProperty
void insertProperty(InsertPropertyChange change)
-
renameProperty
void renameProperty(RenamePropertyChange change, boolean createUndoAction)
-
removeProperty
void removeProperty(RemovePropertyChange change, boolean createUndoAction)
-
removeChildPropertyConfigs
void removeChildPropertyConfigs(java.lang.String componentIndexPath, PropertyType scope, java.lang.String propertyPath)
-
alterPropertyConfig
void alterPropertyConfig(PropertyConfigChange change, boolean createUndoAction)
-
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)
-
-