public class PageByWeakRefInstruction extends Object implements Instruction
InstructionExecutor
to jump to a Page
. The target Page
instance is held as a WeakReference
within this class.
A typical execution result of this instruction would be to display the target page to the user in some fashion.
Constructor and Description |
---|
PageByWeakRefInstruction(Page page)
Creates a new instance pointing to the given
Page . |
public static final String TYPE
public PageByWeakRefInstruction(Page page)
Page
.page
- this instruction's target Page
. The instruction will retain a
WeakReference
to it. Must not be null
.public String getType()
getType
in interface Instruction
public Page getPage()
Page
to jump to, or null
if the WeakReference
returns
null
. This is usually the case when the Page
was garbage
collected.Copyright © 2024 levigo holding gmbh. All rights reserved.