org.keridwen.core.data.model.progress
Interface Progressable

All Known Subinterfaces:
NodeReader<T>, NodeWriter, TreeReader, TreeWriter
All Known Implementing Classes:
DefaultTreeReader, DefaultTreeWriter

public interface Progressable


Method Summary
 void addProgressableListener(ProgressableListener listener)
          Adds a ProgressableListener.
 void clearProgressableListener()
          Clears the list of listeners.
 int getProgress()
          Gets the current progress of the Progressable.
 ControllableState getState()
          Gets the controllable state.
 boolean isDetermined()
          Checks whether the progress is determined.
 void removeProgressableListener(ProgressableListener listener)
          Removes a ProgressableListener.
 

Method Detail

getProgress

int getProgress()
Gets the current progress of the Progressable.

Returns:
the progress in percents.

isDetermined

boolean isDetermined()
Checks whether the progress is determined.

Returns:
true if the progress is determined, false otherwise.

getState

ControllableState getState()
Gets the controllable state.

Returns:
the controllable current state

addProgressableListener

void addProgressableListener(ProgressableListener listener)
Adds a ProgressableListener.

Parameters:
listener - the ProgressableListener to add.

removeProgressableListener

void removeProgressableListener(ProgressableListener listener)
Removes a ProgressableListener.

Parameters:
listener - the ProgressableListener to remove.

clearProgressableListener

void clearProgressableListener()
Clears the list of listeners.



Copyright © 2010-2013 Artenum. All Rights Reserved.