OGS Java API Spec

ogs.core
Class Modifiers

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.core.Modifiers
All Implemented Interfaces:
EventListener

public class Modifiers
extends Object

A list of modifiers.


Field Summary
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Modifiers()
           
 
Method Summary
 void addModifier(Modifier modifier)
          Add a modifier to this list of modifiers.
 int getValue()
          Determine the total value of all modifiers in this list.
 void handleEvent(Modifier.Event event)
          Update the total value when a modifier changes value.
 void removeModifier(Modifier modifier)
          Remove a modifier from this list of modifiers.
 
Methods inherited from class ogs.support.Object
addListener, handleEvent, notifyListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Modifiers

public Modifiers()
Method Detail

addModifier

public void addModifier(Modifier modifier)
Add a modifier to this list of modifiers. The total value is updated accordingly and observers are notified.

Parameters:
modifier - A modifier.

removeModifier

public void removeModifier(Modifier modifier)
Remove a modifier from this list of modifiers. The total value is updated accordingly and observers are notified.

Parameters:
modifier - A modifier.

getValue

public int getValue()
Determine the total value of all modifiers in this list.

Returns:
Total value of all modifiers in this list.

handleEvent

public void handleEvent(Modifier.Event event)
Update the total value when a modifier changes value.

Parameters:
event - An event.

OGS Java API Spec