|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationPage
An ApplicationPage
is a container for PageComponent
s.
Method Summary | ||
---|---|---|
void |
addPageComponentListener(PageComponentListener listener)
|
|
boolean |
close()
|
|
boolean |
close(PageComponent pageComponent)
|
|
boolean |
closeAllEditors()
|
|
PageComponent |
getActiveComponent()
|
|
String |
getId()
|
|
List<PageComponent> |
getPageComponents()
Returns the list of PageComponent s on this ApplicationPage . |
|
|
getView(String id)
Returns the View with the given id. |
|
ApplicationWindow |
getWindow()
|
|
void |
openEditor(Object editorInput)
|
|
void |
removePageComponentListener(PageComponentListener listener)
|
|
void |
setActiveComponent(PageComponent pageComponent)
|
|
View |
showView(String id)
Shows the View with the given id. |
|
View |
showView(String id,
Object input)
Shows the View with the given id, and passes the input to the View , by calling
View.setInput(Object) . |
Methods inherited from interface org.springframework.richclient.factory.ControlFactory |
---|
getControl |
Method Detail |
---|
String getId()
ApplicationWindow getWindow()
void addPageComponentListener(PageComponentListener listener)
void removePageComponentListener(PageComponentListener listener)
PageComponent getActiveComponent()
void setActiveComponent(PageComponent pageComponent)
View showView(String id)
View
with the given id.
If the View
is already opened, the view will be reused.
NOTE: this is NOT the same as calling this.showView(id, null)
.
id
- the view id, cannot be empty
View
that is shownView showView(String id, Object input)
View
with the given id, and passes the input to the View
, by calling
View.setInput(Object)
.
If the View
is already opened, the view will be reused.
id
- the view id, cannot be emptyinput
- the input, can be null
View
that is shown<T extends View> T getView(String id)
View
with the given id. Returns null
if no View
with the given id is
shown.
This method is "generified" to avoid extra casts when calling this method:
ApplicationPage page = ...; // get a reference to the ApplicationPage InitialView initialView = page.getView("initialView");
id
- the id, cannot be null
View
, or null
void openEditor(Object editorInput)
boolean closeAllEditors()
boolean close()
boolean close(PageComponent pageComponent)
List<PageComponent> getPageComponents()
PageComponent
s on this ApplicationPage
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |