|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface View
Describes a user interface view element.
There are two types of views:
Views can be embedded in other views. An embedded view does not serve as a toplevel view but
rather only exists as content in a parent view (see the related methods isEmbedded()
,
getParentView()
and setParentView(View)
).
Method Summary | |
---|---|
void |
attach(ViewContext context)
Attaches this object to the specified context. |
boolean |
canClose()
Prompts the view to save unsaved changes before closing. |
void |
detach(ViewContext context)
Detaches this object from the specified context. |
JComponent |
getContentPane()
Returns the content pane of this view. |
JComponent |
getDefaultFocusComponent()
Returns the component that should receive the focus once this view is activated. |
Icon |
getIcon()
Returns the icon of this view. |
View |
getParentView()
Returns the parent view or null if this is a toplevel view. |
String |
getTitle()
Returns the title of this view. |
boolean |
isEmbedded()
Check if this view is embedded in another view. |
void |
setParentView(View view)
Sets the view this view is embedded in. |
Method Detail |
---|
void attach(ViewContext context)
context
- the context to attach the object to.void detach(ViewContext context)
context
- the context to attach the object to.boolean isEmbedded()
If this view is embedded the he parent view (getParentView()
is set to a
non-null
value. If embedded the view is not a fully functional toplevel view, but
rather its content pane is embedded in the parent view.
true
if this view is embedded in another view,
false
if this view is a toplevel view.getParentView()
View getParentView()
null
if this is a toplevel view.
The parent view is only set if this view is embedded in another view. If embedded the view is not a fully functional toplevel view, but rather its content pane is embedded in the parent view.
null
.void setParentView(View view)
The parent view is only set if this view is embedded in another view. If embedded the view is not a fully functional toplevel view, but rather its content pane is embedded in the parent view.
view
- the parent view to set.String getTitle()
Icon getIcon()
JComponent getContentPane()
JComponent getDefaultFocusComponent()
boolean canClose()
true
if the view may be closed, false
otherwise.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG