|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openpermis.editor.policy.gui.HeaderPane
public class HeaderPane
Header pane for use in dialogs.
Shaded header pane that includes an icon, title and a descriptive text. This header pane is similar to the SwingX JXHeader except that it behaves correctly on all platforms and resizes correctly if it is smaller than the preferred size.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
HeaderPane(org.jdesktop.application.ResourceMap resourceMap,
String icon,
String title,
String description)
Creates a new header pane for the specified values. |
Method Summary | |
---|---|
protected Icon |
getIcon(String key)
Returns an icon for the specified key. |
protected String |
getTranslation(String key)
Returns a translation for the specified key. |
void |
paintComponent(Graphics g)
|
void |
setDescription(String key)
Sets the description displayed. |
void |
setIcon(String key)
Sets the icon displayed. |
void |
setTitle(String key)
Sets the title displayed. |
protected void |
updateDisplay()
Revalidates and optionally repaints the header pane. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HeaderPane(org.jdesktop.application.ResourceMap resourceMap, String icon, String title, String description)
resourceMap
- the resource map used for translations and icon lookups.icon
- key of the icon to display.title
- key of the title to display.description
- key of the description.Method Detail |
---|
protected void updateDisplay()
protected String getTranslation(String key)
key
- the key for which to return the translation.
protected Icon getIcon(String key)
Automatically scales the icon to a predefined size.
key
- the key for which to return the icon.
public void setTitle(String key)
key
- the key of the title to display.public void setDescription(String key)
key
- the key of the description to display.public void setIcon(String key)
key
- the key of the icon to display.public void paintComponent(Graphics g)
paintComponent
in class JComponent
|
![]() |
||||||||
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