public abstract class JPage extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
backPageIdentifier |
static String |
DEFAULT
Used to indicate which page we should start with.
|
static String |
FINISH
Used to indicate that we are done and the wizard should close
|
static String |
NEXT
Used to indicate that there is a next step to complete
|
protected String |
nextPageIdentifier |
protected String |
pageIdentifier
Identifier used to track this page in a work flow.
|
Constructor and Description |
---|
JPage()
Create a default page.
|
JPage(String id)
Create a page with the provided id.
|
Modifier and Type | Method and Description |
---|---|
JPanel |
createPanel()
Called to initialize the page for the first time.
|
void |
dispose()
Called when the workflow is completed (either in Finish, Canel or Error) giving the page a
chance to clean up any resources it is using such as a database connection.
|
String |
getBackPageIdentifier()
Identifier of the panel to use Back.
|
JWizard |
getJWizard() |
Map<String,JPage> |
getModel() |
String |
getNextPageIdentifier()
Identifier of the panel to use Next.
|
String |
getPageIdentifier() |
JPanel |
getPanel()
Access the JPanel - init will be used to create the panel the first time this method is
called.
|
boolean |
isValid()
Validation of page state; if the page isValid then the next or finish button will be enabled.
|
void |
postDisplayPanel()
Called just after the panel is displayed.
|
void |
preClosePanel()
Override this method to perform functionality just before the panel is to be hidden.
|
void |
preDisplayPanel()
Called just before the panel is to be displayed.
|
void |
setBackPageIdentifier(String backPageIdentifier) |
void |
setNextPageIdentifier(String nextPageIdentifier) |
void |
setPageIdentifier(String pageIdentifier) |
public static final String DEFAULT
public static final String FINISH
public static final String NEXT
protected String pageIdentifier
protected String backPageIdentifier
protected String nextPageIdentifier
public JPage()
public JPage(String id)
public final JPanel getPanel()
public String getPageIdentifier()
public void setPageIdentifier(String pageIdentifier)
public final JWizard getJWizard()
public String getNextPageIdentifier()
public void setNextPageIdentifier(String nextPageIdentifier)
public String getBackPageIdentifier()
public void setBackPageIdentifier(String backPageIdentifier)
public JPanel createPanel()
Please note this method will normally only be called once; even if the user clicks forwards and backwards to return to your page. It is only called if getPanel() returns null.
Calling this method directly will erase any previously constructed panel.
public void preDisplayPanel()
This is a good time to populate your fields with values; hook up any listeners and gernally muck about.
public void postDisplayPanel()
This is a good time to perform any animations or set the focus into one of the fields etc.
public boolean isValid()
If you need to call setNextPageIdentifier based on input this is the time to do it.
public void preClosePanel()
public void dispose()
Copyright © 1996–2019 Geotools. All rights reserved.