java.lang.Object | |
↳ | com.neomades.app.ScreenParams |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ScreenParams()
Create Screen parameters object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
contains(String key)
Checks if the key is contained into this
ScreenParams object. | ||||||||||
boolean |
getBoolean(String key)
Returns the value associated with the key, or false (for boolean) if not
exist.
| ||||||||||
float |
getFloat(String key)
Returns the value associated with the key, or 0 (for float) if not exist.
| ||||||||||
int |
getInt(String key)
Returns the value associated with the key, or 0 (for integer) if not exist.
| ||||||||||
long |
getLong(String key)
Returns the value associated with the key, or 0 (for long) if not exist.
| ||||||||||
Object | getObject(String key) | ||||||||||
String |
getString(String key)
Get the corresponding value of the key
| ||||||||||
boolean |
isEmpty()
Returns if this
ScreenParams object does not contain any key. | ||||||||||
Enumeration |
keys()
Returns an enumeration of the keys in this ScreenParams.
| ||||||||||
ScreenParams |
putBoolean(String key, boolean value)
Inserts key-value content.
| ||||||||||
ScreenParams |
putFloat(String key, float value)
Inserts key-value content.
| ||||||||||
ScreenParams |
putInt(String key, int value)
Inserts key-value content.
| ||||||||||
ScreenParams |
putLong(String key, long value)
Inserts key-value content.
| ||||||||||
ScreenParams | putObject(String key, Object value) | ||||||||||
ScreenParams |
putString(String key, String value)
Inserts key-value content.
| ||||||||||
void |
remove(String key)
Removes the corresponding key-value pair or does nothing if the key does not
exist.
| ||||||||||
void |
setTransitionIn(Transition transition)
Sets the transition that will be triggered when the screen associated with
this
ScreenParams is opening. | ||||||||||
void |
setTransitionOut(Transition transition)
Sets the transition that will be triggered when the screen associated with
this
ScreenParams is closing. | ||||||||||
int |
size()
Returns the number of keys contained in this
ScreenParams . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create Screen parameters object.
Checks if the key is contained into this ScreenParams
object.
key | the key to find |
---|
Returns the value associated with the key, or false (for boolean) if not exist.
key | the key name |
---|
Returns the value associated with the key, or 0 (for float) if not exist.
key | the key name |
---|
Returns the value associated with the key, or 0 (for integer) if not exist.
key | the key name |
---|
Returns the value associated with the key, or 0 (for long) if not exist.
key | the key name |
---|
This method is deprecated.
Since NeoMAD 4.5. Do not pass Object
as
ScreenParams
. Memory problems or crashes may occur
sometimes on some platforms. Use other "put" methods that use
String
or primitive types and build again your complex
object with that.
Get the corresponding value of the key
key | key of the element |
---|
Get the corresponding value of the key
key | key of the element |
---|
Returns if this ScreenParams
object does not contain any key.
Returns an enumeration of the keys in this ScreenParams.
Inserts key-value content.
key | key of the element |
---|---|
value | value of the element |
NullPointerException | if key is null |
---|
Inserts key-value content.
key | key of the element |
---|---|
value | value of the element |
NullPointerException | if key is null |
---|
Inserts key-value content.
key | key of the element |
---|---|
value | value of the element |
NullPointerException | if key is null |
---|
Inserts key-value content.
key | key of the element |
---|---|
value | value of the element |
NullPointerException | if key is null |
---|
This method is deprecated.
Since NeoMAD 4.5. Do not pass Object
as
ScreenParams
. Memory problems or crashes may occur
sometimes on some platforms. Use other "put" methods that use
String
or primitive types and build again your complex
object with that.
Inserts key-value content.
key | key of the element |
---|---|
value | value of the element |
NullPointerException | if key or value is null |
---|
Inserts key-value content.
key | key of the element |
---|---|
value | value of the element |
NullPointerException | if key or value is null |
---|
Removes the corresponding key-value pair or does nothing if the key does not exist.
key | an existing key |
---|
NullPointerException | if the key is null |
---|
Sets the transition that will be triggered when the screen associated with
this ScreenParams
is opening.
transition | the transition to run when entering the screen |
---|
Sets the transition that will be triggered when the screen associated with
this ScreenParams
is closing.
transition | the transition to run when closing the screen |
---|
Returns the number of keys contained in this ScreenParams
.