|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.ui.dialogs.property.PropertiesEditorPresenter
public class PropertiesEditorPresenter
Presenter (according to Model-View-Presenter design pattern) for IPropertiesEditorView
.
Constructor Summary | |
---|---|
PropertiesEditorPresenter(IPropertiesEditorView view,
IPresentationElement<? extends IElement> model,
org.eclipse.gef.commands.CommandStack commandStack)
Constructor. |
Method Summary | |
---|---|
static void |
createAndShowEditor(IPresentationElement<? extends IElement> model,
org.eclipse.gef.commands.CommandStack commandStack)
Creates and shows properties editor. |
void |
onAddEvent(String propertyDisplayName)
Handle Add event - add new property with given name. |
boolean |
onMarkAsLabelEvent(PropertyTreeEntry entry,
boolean flag)
Handles Mark-as-Label event. |
void |
onOkEvent()
Handle OK event: save properties and disposes view. |
void |
onRemoveEvent(PropertyTreeEntry entry)
Handle Remove event: removes given entry if this is possible. |
void |
open()
Opens associated view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesEditorPresenter(IPropertiesEditorView view, IPresentationElement<? extends IElement> model, org.eclipse.gef.commands.CommandStack commandStack)
view
- viewmodel
- modelcommandStack
- GEF command stackMethod Detail |
---|
public void open()
public static void createAndShowEditor(IPresentationElement<? extends IElement> model, org.eclipse.gef.commands.CommandStack commandStack)
model
- presentation element for which properties will be showncommandStack
- GEF command stackpublic void onOkEvent()
public void onRemoveEvent(PropertyTreeEntry entry)
entry
- entry to remove.public void onAddEvent(String propertyDisplayName)
propertyDisplayName
- display name of new property. The property name is create by convertPropertyName(String)
method.public boolean onMarkAsLabelEvent(PropertyTreeEntry entry, boolean flag)
entry
- entry which contains property to be marked as labelflag
- flag which indicates if property is to be added or removed from label
true
if operation is successful
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |