public class EditingLayer extends AbstractSystemLayer implements MouseListener, ITimelineObjectEditorListener
ITimelineObjectEditor
interface. Editors can be
registered in the AbstractGanttChart
. The layer will manage the
editors in such a way that always only one editor is visible at any time.alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE
Constructor and Description |
---|
EditingLayer(LayerContainer lc)
Constructs a new editing layer.
|
Modifier and Type | Method and Description |
---|---|
void |
editingCanceled(ChangeEvent e)
Callback method that gets invoked if the user canceled the editing of a
timeline object.
|
void |
editingStopped(ChangeEvent e)
Callback method that gets invoked if the user stopped the editing of a
timeline object.
|
TimelineObjectPath |
getEditedTimelineObject()
Returns the path to the currently edited timeline object.
|
Component |
getEditorComponent()
Returns the user interface component that is currently being used to edit
a timeline object.
|
ITimelineObjectEditor |
getTimelineObjectEditor()
Returns the currently used timeline object editor.
|
boolean |
isEditing()
Returns TRUE if a timeline object is currently being edited.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
removeEditor()
Discards the editor object and frees the real estate.
|
addPropertyChangeListener, getAlpha, getDateline, getEventline, getGanttChart, getHeight, getLayerContainer, getLayerPolicyProvider, getModel, getName, getStartRow, getTimeAt, getTimeline, getTimeLocation, getTimeSpanUsed, getToolTipText, getTreeTable, getTreeTablePolicyProvider, getWidth, isVisible, paintLayer, removePropertyChangeListener, repaint, repaint, repaint, setAlpha, setVisible, tearDown
public EditingLayer(LayerContainer lc)
lc
- the layer container to which the editing layer belongspublic void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void removeEditor()
getTimelineObjectEditor()
public Component getEditorComponent()
public boolean isEditing()
public ITimelineObjectEditor getTimelineObjectEditor()
public TimelineObjectPath getEditedTimelineObject()
public void editingStopped(ChangeEvent e)
ITimelineObjectEditorListener
editingStopped
in interface ITimelineObjectEditorListener
e
- the change event with information about the source of the
callback callpublic void editingCanceled(ChangeEvent e)
ITimelineObjectEditorListener
editingCanceled
in interface ITimelineObjectEditorListener
e
- the change event with information about the source of the
callback callCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.