|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FunctionComponent
A (GUI-)component which supports the concept of functions. FunctionComponents are organized in a hierarchical structure, like civquest.quadmap.fieldview
Method Summary | |
---|---|
void |
afterEvent(Point position)
Is called by the FunctionManager each time after an input-event was processed. |
void |
beforeEvent(Point position)
Is called by the FunctionManager each time before an input-event is processed. |
FunctionAction |
getFunctionAction(String functionName)
Returns a reference to a NEW Action-object assigned to the given function-name, if this FunctionComponent knows about such a function itself, null otherwise. |
PositionInfo |
getPositionInfo()
Returns an object with some position-information, including the last mouse-position. |
FunctionComponent |
getSubComponent(String name)
Returns the direct sub-FunctionComponent with the given name (relative to this FunctionComponent), if it exists, null otherwise. |
Method Detail |
---|
FunctionAction getFunctionAction(String functionName)
Note that subsequent calls to this function must return different Action-objects!!! NOTE: If only a sub-function-component knows that function, returning something != null is not required. However, in some cases (field-views in CivQuest), a value != null will be returned in that case.
functionName
- name of the function
PositionInfo getPositionInfo()
FunctionComponent getSubComponent(String name)
name
- name of the sub-function-component to be returned
void afterEvent(Point position)
position
- DOCUMENT ME!void beforeEvent(Point position)
position
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |