Class ObservableArray<V>
java.lang.Object
ch.ladestation.connectncharge.util.mvcbase.ObservableArray<V>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ObservableArray
Default Constructor- Parameters:
initialValues
- the initial array
-
-
Method Details
-
onChange
Registers a new observer (aka 'listener')- Parameters:
listener
- specifies what needs to be done whenever the value is changed
-
getValues
It's ok to make this public.- Returns:
- the value managed by this ObservableValues
-
getValue
It's ok to make this public.- Parameters:
position
-- Returns:
- the value managed by this ObservableValue
-
toString
Giving the array out as a String
-