pl.edu.agh.cast.ui.dialogs.property
Interface IPropertiesEditorView

All Known Implementing Classes:
PropertiesEditorDialog

public interface IPropertiesEditorView

An interface which describes view of properties editor.

Author:
AGH CAST Team

Method Summary
 void dispose()
          Disposes view.
 void initialize(PropertiesEditorPresenter presenter)
          Initializes view.
 void open()
          Opens view.
 void refresh()
          Refreshes the view after model changes.
 void setInput(PropertyTreeEntry input)
          Sets input for the view.
 void showAtLeastOneLabelMustBeMarkedMessage()
          Shows message: 'At least one property must be marked as label'.
 void showCannotRemoveBuiltinPropertyMessage(String name)
          Shows message: 'Cannot remove built-in property'.
 void showCannotRemoveCategoryMessage()
          Shows message: 'Cannot remove category'.
 void showPropertyAlreadyExistsMessage(String name)
          Shows message: 'Property already exists'.
 boolean showRemovePropertyQuestion(String name)
          Shows question: 'Do you want to remove property?'.
 

Method Detail

initialize

void initialize(PropertiesEditorPresenter presenter)
Initializes view.

Parameters:
presenter - presenter for this view view

open

void open()
Opens view.


dispose

void dispose()
Disposes view.


setInput

void setInput(PropertyTreeEntry input)
Sets input for the view.

Parameters:
input - model for this view

refresh

void refresh()
Refreshes the view after model changes.


showCannotRemoveCategoryMessage

void showCannotRemoveCategoryMessage()
Shows message: 'Cannot remove category'.


showCannotRemoveBuiltinPropertyMessage

void showCannotRemoveBuiltinPropertyMessage(String name)
Shows message: 'Cannot remove built-in property'.

Parameters:
name - property name

showRemovePropertyQuestion

boolean showRemovePropertyQuestion(String name)
Shows question: 'Do you want to remove property?'.

Parameters:
name - property name
Returns:
true if end-user agrees

showPropertyAlreadyExistsMessage

void showPropertyAlreadyExistsMessage(String name)
Shows message: 'Property already exists'.

Parameters:
name - property name

showAtLeastOneLabelMustBeMarkedMessage

void showAtLeastOneLabelMustBeMarkedMessage()
Shows message: 'At least one property must be marked as label'.



Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.