|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkieker.webgui.web.beans.view.CockpitEditorBean
@Component @Scope(value="view") public final class CockpitEditorBean
The CockpitEditorBean
contains the necessary data behind an instance of the cockpit editor.
The class is a Spring managed bean with view scope to make sure that one user (even in one session) can open multiple projects at a time without causing any
problems.
Constructor Summary | |
---|---|
CockpitEditorBean()
Creates a new instance of this class. |
Method Summary | |
---|---|
void |
addDisplayToView(kieker.analysis.model.analysisMetaModel.MIDisplay display)
This method adds the given display to the currently active view. |
void |
addView(NewViewBean newViewBean)
This method adds a new view to the project. |
void |
copyView(CopyViewBean copyViewBean)
Copies a view. |
void |
deleteView(kieker.analysis.model.analysisMetaModel.MIView view)
Deletes the given view from the model. |
void |
editView(EditViewBean editViewBean)
Edits an existing view. |
kieker.analysis.model.analysisMetaModel.MIView |
getActiveView()
|
org.primefaces.component.dashboard.Dashboard |
getDashboard()
|
String |
getDescription(kieker.analysis.model.analysisMetaModel.MIDisplay display)
This method can be used to get the description of a MIDisplay . |
kieker.analysis.model.analysisMetaModel.MIProject |
getProject()
|
String |
getProjectName()
|
Collection<Object> |
getProperties()
This is a dummy method returning just a collection of null objects. |
kieker.analysis.model.analysisMetaModel.MIDisplayConnector |
getSelectedNode()
|
kieker.analysis.model.analysisMetaModel.MIView |
getSelectedView()
|
void |
handleReorder(org.primefaces.event.DashboardReorderEvent event)
This handler should be executed when the user moves an element within the dashboard. |
void |
initalize()
This method initializes the bean by using the current project name to load the project. |
boolean |
isUnsavedModification()
|
void |
nodeSelected()
This is the event if a node has been clicked and should be selected. |
void |
saveProject(boolean overwriteNewerProject)
This method tries to save the current project and informs the user about success or fail. |
void |
setActiveView(kieker.analysis.model.analysisMetaModel.MIView view)
Sets the active view and updates the dashboard. |
void |
setDashboard(org.primefaces.component.dashboard.Dashboard dashboard)
Setter for the property dashboard . |
void |
setProjectName(String newName)
|
void |
setSelectedView(kieker.analysis.model.analysisMetaModel.MIView view)
|
void |
updateName()
Performs an update on the dashboard once a name has been changed. |
void |
validateDisplayConnectorName(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent toValidate,
Object value)
This method is used as a validator for new display connector names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CockpitEditorBean()
Method Detail |
---|
public void initalize()
public boolean isUnsavedModification()
public Collection<Object> getProperties()
public kieker.analysis.model.analysisMetaModel.MIView getSelectedView()
public void setSelectedView(kieker.analysis.model.analysisMetaModel.MIView view)
public kieker.analysis.model.analysisMetaModel.MIView getActiveView()
public void setActiveView(kieker.analysis.model.analysisMetaModel.MIView view)
view
- The new view.public void deleteView(kieker.analysis.model.analysisMetaModel.MIView view)
view
- The view to be removed.public void copyView(CopyViewBean copyViewBean)
copyViewBean
- The bean containing the necessary data to copy the view.public void editView(EditViewBean editViewBean)
editViewBean
- The bean containing the necessary data to edit the view.public void addView(NewViewBean newViewBean)
newViewBean
- The bean containing the necessary data to create the view.public org.primefaces.component.dashboard.Dashboard getDashboard()
public void setDashboard(org.primefaces.component.dashboard.Dashboard dashboard)
dashboard
.
dashboard
- The new value for the property.public kieker.analysis.model.analysisMetaModel.MIProject getProject()
public void setProjectName(String newName)
public String getProjectName()
public kieker.analysis.model.analysisMetaModel.MIDisplayConnector getSelectedNode()
public void updateName()
public String getDescription(kieker.analysis.model.analysisMetaModel.MIDisplay display)
MIDisplay
. Currently it is a little bit expensive to search for the description.
display
- The display whose description should be extracted.
public void saveProject(boolean overwriteNewerProject)
overwriteNewerProject
- This flag determines whether a newer project should be overwritten.public void addDisplayToView(kieker.analysis.model.analysisMetaModel.MIDisplay display)
display
- The display which should be added to the current view.public void handleReorder(org.primefaces.event.DashboardReorderEvent event)
event
- The move event.public void validateDisplayConnectorName(javax.faces.context.FacesContext context, javax.faces.component.UIComponent toValidate, Object value)
context
- The context of the validation.toValidate
- The components which has be validated.value
- The new value.public void nodeSelected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |