public class ProfileSetup extends Object implements IApplicationSetup, com.sibvisions.apps.projx.event.type.app.IAfterOpenWorkScreenListener, com.sibvisions.apps.projx.event.type.app.IBeforeCloseWorkScreenListener, ICloseable
ProfileSetup handles loading and saving of profiles.| Constructor and Description |
|---|
ProfileSetup()
Constructs a new
ProfileSetup. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterOpenWorkScreen(com.sibvisions.apps.projx.event.type.app.WorkScreenEvent pEvent)
Invoked after a work-screen was opened.
|
void |
apply(IApplication pApplication) |
void |
beforeCloseWorkScreen(com.sibvisions.apps.projx.event.type.app.WorkScreenEvent pEvent)
Invoked before a work-screen was closed.
|
void |
close() |
void |
debug(Object... pInfo)
Logs debug information.
|
void |
getAllComponentProfiles(IComponent pComponent,
XmlNode pXmlProfile,
List<IComponentProfile> pComponentProfiles)
Gets the profile for the given component and all its subcomponents.
|
String |
getComponentKey(IComponent pComponent)
Gets a reproducible name of the component.
|
protected void |
getComponentProfile(IComponent pComponent,
XmlNode pXmlProfile,
List<IComponentProfile> pComponentProfiles)
Gets the profile for the given component.
|
XmlNode |
getWorkScreenProfile(com.sibvisions.apps.projx.ProjX pApplication,
IWorkScreen pWorkScreen)
Gets the profile for a given work screen.
|
void |
setAllComponentProfiles(IComponent pComponent,
HashMap<String,XmlNode> pXmlProfile,
List<IComponentProfile> pComponentProfiles)
Set the profile for the given component and all its subcomponents.
|
void |
setComponentProfile(IComponent pComponent,
HashMap<String,XmlNode> pXmlProfile,
List<IComponentProfile> pComponentProfiles)
Set the profile for a given component.
|
void |
setWorkScreenProfile(com.sibvisions.apps.projx.ProjX pApplication,
IWorkScreen pWorkScreen,
XmlNode pWorkScreenProfile)
Sets the work screen profile for the given work screen.
|
public void apply(IApplication pApplication)
apply in interface IApplicationSetuppublic void close()
close in interface ICloseablepublic String getComponentKey(IComponent pComponent)
pComponent - the componentpublic void setWorkScreenProfile(com.sibvisions.apps.projx.ProjX pApplication,
IWorkScreen pWorkScreen,
XmlNode pWorkScreenProfile)
pApplication - the applicationpWorkScreen - the work screenpWorkScreenProfile - the profilepublic void setComponentProfile(IComponent pComponent, HashMap<String,XmlNode> pXmlProfile, List<IComponentProfile> pComponentProfiles)
pComponent - the componentpXmlProfile - the profilepComponentProfiles - the IComponentProfile implementations.public void setAllComponentProfiles(IComponent pComponent, HashMap<String,XmlNode> pXmlProfile, List<IComponentProfile> pComponentProfiles)
pComponent - the componentpXmlProfile - the profilepComponentProfiles - the IComponentProfile implementations.public XmlNode getWorkScreenProfile(com.sibvisions.apps.projx.ProjX pApplication, IWorkScreen pWorkScreen)
pApplication - the application.pWorkScreen - the work screenprotected void getComponentProfile(IComponent pComponent, XmlNode pXmlProfile, List<IComponentProfile> pComponentProfiles)
pComponent - the componentpXmlProfile - the profile to fill in.pComponentProfiles - the IComponentProfile implementations.public void getAllComponentProfiles(IComponent pComponent, XmlNode pXmlProfile, List<IComponentProfile> pComponentProfiles)
pComponent - the componentpXmlProfile - the profile to fill in.pComponentProfiles - the IComponentProfile implementations.public final void debug(Object... pInfo)
pInfo - the debug informationpublic void afterOpenWorkScreen(com.sibvisions.apps.projx.event.type.app.WorkScreenEvent pEvent)
afterOpenWorkScreen in interface com.sibvisions.apps.projx.event.type.app.IAfterOpenWorkScreenListenerpEvent - the screen eventpublic void beforeCloseWorkScreen(com.sibvisions.apps.projx.event.type.app.WorkScreenEvent pEvent)
throws Throwable
beforeCloseWorkScreen in interface com.sibvisions.apps.projx.event.type.app.IBeforeCloseWorkScreenListenerpEvent - the screen eventThrowable - if saving profile failsCopyright © 2020 SIB Visions GmbH. All Rights Reserved.