public class GEvent extends Object
Constructor and Description |
---|
GEvent()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(GComponent source)
Adds a GComponent to the list of sources.
|
boolean |
contains(GComponent... componentList)
Checks if any of the components in componentList is already in the source list.
|
GComponent |
getFinalSource()
Gets the component origin of the event.
|
GComponent |
getLocalSource()
Gets the source corresponding to the immediate child of the caller component..
|
String |
getSourceListAsString()
Returns the source list as an string.
|
boolean |
isEntryType()
Getter for the event type.
|
boolean |
isOrigin(GComponent... componentList)
Deprecated.
|
boolean |
isSource(GComponent... componentList)
Deprecated.
|
void |
setEntryType(boolean inputType)
Setter for the event type.
|
void |
setRank(int rank)
Sets the rank of the source being currently treated with regard to the sourceList.
|
public void add(GComponent source)
source
- component to add to the list of sources.public void setRank(int rank)
rank
- to set.public GComponent getLocalSource()
public boolean isSource(GComponent... componentList)
componentList
- list of components to check if any of them is source of the event within the immediate child
of the component where the invocation is done.public GComponent getFinalSource()
public boolean isOrigin(GComponent... componentList)
componentList
- list of components to check if any of them is the origin of the event.public boolean contains(GComponent... componentList)
componentList
- list of components to check if it is already in the source list.public String getSourceListAsString()
public boolean isEntryType()
public void setEntryType(boolean inputType)
inputType
- true if the event is an entry (f.i.: changing a numeric value of a GEntryReal), false
otherwise (f.i.: changing the unit in a GEntryReal)Copyright © 2024. All rights reserved.