|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.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(javax.swing.event.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(javax.swing.event.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 MouseInputEditor
MouseInputEditor.startsEditing(Mouse2DEvent)
,
MouseInputEditor.mouse2DEventHappened(Mouse2DEvent)
public boolean isEditing()
MouseInputEditor
isEditing
in interface MouseInputEditor
public void startEditing()
MouseInputEditor
startEditing
in interface MouseInputEditor
public void stopEditing()
MouseInputEditor
stopEditing
in interface MouseInputEditor
protected void fireStateChanged()
public void addChangeListener(javax.swing.event.ChangeListener inputEditorListener)
MouseInputEditor
MouseInputEditor.isEditing()
state of this instance changes.
addChangeListener
in interface MouseInputEditor
inputEditorListener
- the listener to notify of state changespublic void removeChangeListener(javax.swing.event.ChangeListener inputEditorListener)
MouseInputEditor
MouseInputEditor.isEditing()
state of this instance changes.
removeChangeListener
in interface MouseInputEditor
inputEditorListener
- the listener to notify of state changes
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |