Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright 2012-04-26 Werner Randelshofer
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.monte.media
Interface StateModel

All Known Subinterfaces:
  ColorCyclePlayer, Player

All Known Implementing Classes:
  AbstractPlayer, ANIMPlayer, PBMPlayer, SEQPlayer

    public interface StateModel

Generic interface for Objects with state.

Version:
  1.0 1999-10-19
Author:
  Werner Randelshofer, Hausmatt 10, CH-6405 Immensee, Switzerland

Method Summary
`void` | `addStateListener(StateListener listener)` Adds a listener that wants to be notified about state changes of the model.
`int` | `getState()` Returns the current state of the model.
`void` | `removeStateListener(StateListener listener)` Removes a listener.

Method Detail

### addStateListener

    void addStateListener(StateListener listener)

  Adds a listener that wants to be notified about state changes of the model.

### removeStateListener

    void removeStateListener(StateListener listener)

  Removes a listener.

### getState

    int getState()

  Returns the current state of the model.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright 2012-04-26 Werner Randelshofer
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD