|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.ErrorStatusUpdater
public class ErrorStatusUpdater
Field Summary | |
---|---|
private boolean |
active
Indicates if listening for focus changes. |
private static String |
ERROR_MESSAGE
Status label client property used to indicate if an error is showing. |
private Icon |
errorIcon
The error icon to use. |
private static String |
FOCUS_OWNER
Property for the focus owner changes. |
private static String |
FOCUSED_WINDOW
Property for the focused window changes. |
private Icon |
normalIcon
The normal icon if no error is set. |
private JLabel |
statusLabel
The status label to modify. |
private Window |
window
The window watched. |
Constructor Summary | |
---|---|
ErrorStatusUpdater(org.jdesktop.application.ResourceMap resourceMap,
Window window,
JLabel statusLabel)
Creates and registers this error status updater. |
Method Summary | |
---|---|
private void |
clearError(JLabel label)
Clears the error message showing on the given label. |
void |
dispose()
Deregisters this error status updater. |
void |
propertyChange(PropertyChangeEvent event)
|
private void |
showError(JLabel label,
String errorMessage)
Displays an error message on the given label. |
void |
showError(String message)
Shows an error message. |
private boolean |
showingError(JLabel label)
Check if the label shows an error. |
private void |
update(Component component)
Updates the status label according to the error state of the specified component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String FOCUSED_WINDOW
"focusedWindow"
private static final String FOCUS_OWNER
"focusOwner"
private static final String ERROR_MESSAGE
"errorStatusMessage"
private final Window window
private final JLabel statusLabel
private final Icon errorIcon
private final Icon normalIcon
private boolean active
Constructor Detail |
---|
public ErrorStatusUpdater(org.jdesktop.application.ResourceMap resourceMap, Window window, JLabel statusLabel)
resourceMap
- the resource map to use for configuration.window
- the window to watch.statusLabel
- the status label to use.Method Detail |
---|
private boolean showingError(JLabel label)
label
- the label to check.
true
if it displays an error message.private void showError(JLabel label, String errorMessage)
label
- the label to use.errorMessage
- the message to display.private void clearError(JLabel label)
label
- the label to modify.private void update(Component component)
component
- the component to inspect.public void dispose()
public void showError(String message)
message
- the message to show.public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG