|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.AbstractMouseInputEditor
public abstract class AbstractMouseInputEditor
Abstract base class implementation for MouseInputEditor that
provides convenient support for the necessary listener implementation.
| Constructor Summary | |
|---|---|
AbstractMouseInputEditor()
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener inputEditorListener)
Adds a ChangeListener instance that will be notified if the MouseInputEditor.isEditing() state of this instance changes. |
protected void |
fireStateChanged()
Helper method that notifies interested listeners when the state of this instance has changed. |
boolean |
isEditing()
Determines whether this instance is currently "editing". |
boolean |
isEnabled()
Returns whether this editor is deemed enabled. |
boolean |
isInterestedInEvents()
Returns true iff this editor is enabled. |
void |
removeChangeListener(ChangeListener inputEditorListener)
Removes a ChangeListener instance that was notified if the MouseInputEditor.isEditing() state of this instance changes. |
void |
setEnabled(boolean enabled)
Sets whether this editor is deemed enabled. |
void |
startEditing()
Used by clients to programmatically start the editing process. |
void |
stopEditing()
Called by clients to stop the editing process cleanly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface y.view.MouseInputEditor |
|---|
mouse2DEventHappened, startsEditing |
| Constructor Detail |
|---|
public AbstractMouseInputEditor()
| Method Detail |
|---|
public boolean isEnabled()
interested in events.
public void setEnabled(boolean enabled)
interested in events.
enabled - whether to enable this editorpublic boolean isInterestedInEvents()
true iff this editor is enabled.
isInterestedInEvents in interface MouseInputEditorMouseInputEditor.startsEditing(Mouse2DEvent),
MouseInputEditor.mouse2DEventHappened(Mouse2DEvent)public boolean isEditing()
MouseInputEditor
isEditing in interface MouseInputEditorpublic void startEditing()
MouseInputEditor
startEditing in interface MouseInputEditorpublic void stopEditing()
MouseInputEditor
stopEditing in interface MouseInputEditorprotected void fireStateChanged()
public void addChangeListener(ChangeListener inputEditorListener)
MouseInputEditorMouseInputEditor.isEditing() state of this instance changes.
addChangeListener in interface MouseInputEditorinputEditorListener - the listener to notify of state changespublic void removeChangeListener(ChangeListener inputEditorListener)
MouseInputEditorMouseInputEditor.isEditing() state of this instance changes.
removeChangeListener in interface MouseInputEditorinputEditorListener - the listener to notify of state changes
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||