de.jaret.util.ui.timebars.model
Interface TimeBarModelListener

All Known Implementing Classes:
TimeBarViewerDelegate

public interface TimeBarModelListener

Interface for listening to changes in the data of a TimeBarModel.

Version:
$Id: TimeBarModelListener.java 800 2008-12-27 22:27:33Z kliem $
Author:
Peter Kliem

Method Summary
 void elementAdded(TimeBarModel model, TimeBarRow row, de.jaret.util.date.Interval element)
          A new element was added to a row.
 void elementChanged(TimeBarModel model, TimeBarRow row, de.jaret.util.date.Interval element)
          An element in a row has changed.
 void elementRemoved(TimeBarModel model, TimeBarRow row, de.jaret.util.date.Interval element)
          An element was removed from a row.
 void headerChanged(TimeBarModel model, TimeBarRow row, java.lang.Object newHeader)
          The header of a row changed.
 void modelDataChanged(TimeBarModel model)
          Unspecific or multiple changes occured in the model.
 void rowAdded(TimeBarModel model, TimeBarRow row)
          The model was enlarged by a new row.
 void rowDataChanged(TimeBarModel model, TimeBarRow row)
          Unspecific change in the data of a row.
 void rowRemoved(TimeBarModel model, TimeBarRow row)
          The model was reduced by a row.
 

Method Detail

modelDataChanged

void modelDataChanged(TimeBarModel model)
Unspecific or multiple changes occured in the model. Should not be used without the need to signal a huge change of data.

Parameters:
model - the model of which the data changed

rowAdded

void rowAdded(TimeBarModel model,
              TimeBarRow row)
The model was enlarged by a new row.

Parameters:
model - the changed model
row - the added row

rowRemoved

void rowRemoved(TimeBarModel model,
                TimeBarRow row)
The model was reduced by a row.

Parameters:
model - the changed model
row - the removed row

rowDataChanged

void rowDataChanged(TimeBarModel model,
                    TimeBarRow row)
Unspecific change in the data of a row.

Parameters:
model - the changed model
row - the row of which the data has changed

elementAdded

void elementAdded(TimeBarModel model,
                  TimeBarRow row,
                  de.jaret.util.date.Interval element)
A new element was added to a row.

Parameters:
model - the changed model
row - the changed row
element - the added element

elementRemoved

void elementRemoved(TimeBarModel model,
                    TimeBarRow row,
                    de.jaret.util.date.Interval element)
An element was removed from a row.

Parameters:
model - the changed model
row - the changed row
element - the removed element

elementChanged

void elementChanged(TimeBarModel model,
                    TimeBarRow row,
                    de.jaret.util.date.Interval element)
An element in a row has changed.

Parameters:
model - the changed model
row - the changed row
element - the element that changed

headerChanged

void headerChanged(TimeBarModel model,
                   TimeBarRow row,
                   java.lang.Object newHeader)
The header of a row changed.

Parameters:
model - the changed model
row - the changed row
newHeader - the changed header


Copyright © 2012. All Rights Reserved.