org.openpermis.editor.policy.view
Interface View

All Known Subinterfaces:
Editor, Tool
All Known Implementing Classes:
AbstractEditor, AbstractToolView, AbstractView, ActionEditor, AuthorityEditor, ContextView, DecisionTool, DomainEditor, ObligationEditor, PolicyView, ProblemListTool, RecentFilesTool, RoleAssignmentRuleEditor, RoleAssignmentRuleListTool, RoleHierarchyEditor, RoleHierarchyListTool, TargetAccessRuleEditor, TargetAccessRuleListTool, TargetEditor

public interface View

Describes a user interface view element.

There are two types of views:

Since:
0.1.0

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.
 Icon getIcon()
          Returns the icon of this view.
 String getTitle()
          Returns the title of this view.
 

Method Detail

attach

void attach(ViewContext context)
Attaches this object to the specified context.

Parameters:
context - the context to attach the object to.
Since:
0.1.0

detach

void detach(ViewContext context)
Detaches this object from the specified context.

Parameters:
context - the context to attach the object to.
Since:
0.1.0

getTitle

String getTitle()
Returns the title of this view.

Returns:
the title of this view.
Since:
0.1.0

getIcon

Icon getIcon()
Returns the icon of this view.

Returns:
the icon of this view.
Since:
0.1.0

getContentPane

JComponent getContentPane()
Returns the content pane of this view.

Returns:
the content pane of this view.
Since:
0.1.0

canClose

boolean canClose()
Prompts the view to save unsaved changes before closing.

Returns:
true if the view may be closed, false otherwise.
Since:
0.1.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:11
Copyright (c) 2002-2007 Ergon Informatik AG