public class UIStatementsAspect
extends java.lang.Object
GenericFrame
APIs emitted at conversion (and associated with 4GL UI statements),
it will save the UI statement currently being executed, to distinguish between external calls
of these APIs (from legacy converted code) and from internal P2J calls (for example,
GenericFrame.view(com.goldencode.p2j.util.handle)
is called internally in some cases).
When one of these APIs is executed, GenericFrame.setStatement(com.goldencode.p2j.ui.UIStatement)
will save the passed
UIStatement
, only if one is not already being executed - thus calls external from
P2J code will have priority over internal P2J calls.
Constructor and Description |
---|
UIStatementsAspect() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
disable(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around
GenericFrame.disable() statements, to set the
UIStatement.DISABLE . |
java.lang.Object |
display(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around
GenericFrame.display(com.goldencode.p2j.util.handle) statements, to set the
UIStatement.DISPLAY . |
java.lang.Object |
enable(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around
GenericFrame.enable(com.goldencode.p2j.ui.GenericWidget<?>[], com.goldencode.p2j.util.handle) statements, to set the UIStatement.ENABLE . |
java.lang.Object |
hide(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around
GenericFrame.hide(com.goldencode.p2j.util.handle) statements, to set the UIStatement.HIDE . |
java.lang.Object |
promptFor(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around
GenericFrame.promptFor(com.goldencode.p2j.ui.FrameElement[], com.goldencode.p2j.util.handle) statements, to set the
UIStatement.PROMPT_FOR . |
java.lang.Object |
set(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around
GenericFrame.set(com.goldencode.p2j.ui.FrameElement[], com.goldencode.p2j.util.handle) statements, to set the UIStatement.SET . |
private java.lang.Object |
statementWorker(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint,
UIStatement stmt)
A worker to set and restore the UI statement used by the current frame.
|
java.lang.Object |
update(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around
GenericFrame.update(com.goldencode.p2j.ui.FrameElement[], com.goldencode.p2j.util.handle) statements,
to set the UIStatement.UPDATE . |
java.lang.Object |
view(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
Triggered around
GenericFrame.view(com.goldencode.p2j.util.handle) statements, to set the UIStatement.VIEW . |
public java.lang.Object view(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint) throws java.lang.Throwable
GenericFrame.view(com.goldencode.p2j.util.handle)
statements, to set the UIStatement.VIEW
.thisJoinPoint
- A join point reference.java.lang.Throwable
- Any exceptions are untouched propagated out.public java.lang.Object hide(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint) throws java.lang.Throwable
GenericFrame.hide(com.goldencode.p2j.util.handle)
statements, to set the UIStatement.HIDE
.thisJoinPoint
- A join point reference.java.lang.Throwable
- Any exceptions are untouched propagated out.public java.lang.Object display(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint) throws java.lang.Throwable
GenericFrame.display(com.goldencode.p2j.util.handle)
statements, to set the
UIStatement.DISPLAY
.thisJoinPoint
- A join point reference.java.lang.Throwable
- Any exceptions are untouched propagated out.public java.lang.Object enable(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint) throws java.lang.Throwable
GenericFrame.enable(com.goldencode.p2j.ui.GenericWidget<?>[], com.goldencode.p2j.util.handle)
statements, to set the UIStatement.ENABLE
.thisJoinPoint
- A join point reference.java.lang.Throwable
- Any exceptions are untouched propagated out.public java.lang.Object disable(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint) throws java.lang.Throwable
GenericFrame.disable()
statements, to set the
UIStatement.DISABLE
.thisJoinPoint
- A join point reference.java.lang.Throwable
- Any exceptions are untouched propagated out.public java.lang.Object set(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint) throws java.lang.Throwable
GenericFrame.set(com.goldencode.p2j.ui.FrameElement[], com.goldencode.p2j.util.handle)
statements, to set the UIStatement.SET
.thisJoinPoint
- A join point reference.java.lang.Throwable
- Any exceptions are untouched propagated out.public java.lang.Object promptFor(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint) throws java.lang.Throwable
GenericFrame.promptFor(com.goldencode.p2j.ui.FrameElement[], com.goldencode.p2j.util.handle)
statements, to set the
UIStatement.PROMPT_FOR
.thisJoinPoint
- A join point reference.java.lang.Throwable
- Any exceptions are untouched propagated out.public java.lang.Object update(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint) throws java.lang.Throwable
GenericFrame.update(com.goldencode.p2j.ui.FrameElement[], com.goldencode.p2j.util.handle)
statements,
to set the UIStatement.UPDATE
.thisJoinPoint
- A join point reference.java.lang.Throwable
- Any exceptions are untouched propagated out.private java.lang.Object statementWorker(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint, UIStatement stmt) throws java.lang.Throwable
thisJoinPoint
- A join point reference.stmt
- The 4GL UIStatement
associated with the GenericFrame
API.java.lang.Throwable
- Any exceptions are untouched propagated out.