|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.controller.dialog.ValidateFeedDialog
Class displays a Dialog prompting for a URL / Path to an existing newsfeed. A "validate"-button calls the RSSOwlFeedValidtor to validate the given feed. Errors and warnings are given out to a table.
Field Summary | |
private Thread |
animator
|
private org.eclipse.swt.widgets.TableColumn |
columnLevel
|
private org.eclipse.swt.widgets.TableColumn |
columnLine
|
(package private) org.eclipse.swt.widgets.TableColumn |
columnMessage
|
private org.eclipse.swt.widgets.Composite |
composite
|
(package private) org.eclipse.swt.widgets.MenuItem |
copyItem
|
private static int |
DIALOG_HEIGHT
Height of the dialog in DLUs |
private static int |
DIALOG_WIDTH
Width of the dialog in DLUs |
private String |
feedPath
|
(package private) org.eclipse.swt.widgets.Text |
feedPathInput
|
static String |
FORMAT_RSS_0_91
Newsfeed format: RSS 0.91 |
static String |
FORMAT_RSS_0_92
Newsfeed format: RSS 0.92 |
static String |
FORMAT_RSS_2_0
Newsfeed format: RSS 2.0 |
static int |
LEVEL_ERROR
Level: XML Error |
static int |
LEVEL_OK
Level: XML Valid |
static int |
LEVEL_WARNING
Level: XML Warning |
(package private) org.eclipse.swt.custom.CLabel |
messageLabel
|
(package private) org.eclipse.swt.widgets.Table |
messageTable
|
(package private) org.eclipse.swt.widgets.Button |
overrideDTDCheck
|
private org.eclipse.swt.widgets.Shell |
parent
|
(package private) FeedValidator |
rssOwlFeedValidator
|
(package private) org.eclipse.swt.widgets.Combo |
selectFormat
|
(package private) org.eclipse.swt.widgets.Shell |
shell
|
private String |
title
|
(package private) org.eclipse.swt.widgets.Button |
validateButton
|
(package private) boolean |
validating
|
Constructor Summary | |
ValidateFeedDialog(String dialogTitle,
String feedPath)
Creates an input dialog with Validate and Stop button. |
Method Summary | |
void |
addMessage(int level,
String message,
int line)
Add an error / warning or OK message into the table |
private void |
clearMessageLabel()
Clear the message label |
(package private) void |
clearResults()
Clear the message label and the result table |
private void |
createDialogArea()
Create the dialog components |
void |
finishValidation(String feedFormat)
Finish / Stop the running validation |
void |
open()
Display the dialog |
void |
performValidation()
Perform the validation and use the feedPath from the input field |
(package private) void |
performValidation(String feedPath)
Perform the validation and use the given feedPath from the input field |
(package private) void |
setMessage(String message)
Set a message to the messageLabel and the search image |
(package private) void |
setStatusPoints(int number)
Set a number of points to the status message |
(package private) void |
setValidateButtonState(boolean validating)
Set the status of the validate button. |
private void |
startStatusMessageAnimate()
Start a thread to animate the status message |
(package private) void |
stopStatusMessageAnimate()
Stop the animation on the status message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String FORMAT_RSS_0_91
public static final String FORMAT_RSS_0_92
public static final String FORMAT_RSS_2_0
public static final int LEVEL_ERROR
public static final int LEVEL_OK
public static final int LEVEL_WARNING
private static final int DIALOG_HEIGHT
private static final int DIALOG_WIDTH
private Thread animator
private org.eclipse.swt.widgets.TableColumn columnLevel
private org.eclipse.swt.widgets.TableColumn columnLine
private org.eclipse.swt.widgets.Composite composite
private String feedPath
private org.eclipse.swt.widgets.Shell parent
private String title
org.eclipse.swt.widgets.TableColumn columnMessage
org.eclipse.swt.widgets.MenuItem copyItem
org.eclipse.swt.widgets.Text feedPathInput
org.eclipse.swt.custom.CLabel messageLabel
org.eclipse.swt.widgets.Table messageTable
org.eclipse.swt.widgets.Button overrideDTDCheck
FeedValidator rssOwlFeedValidator
org.eclipse.swt.widgets.Combo selectFormat
org.eclipse.swt.widgets.Shell shell
org.eclipse.swt.widgets.Button validateButton
boolean validating
Constructor Detail |
public ValidateFeedDialog(String dialogTitle, String feedPath)
dialogTitle
- the dialog titlefeedPath
- To preset the feedPath input fieldMethod Detail |
public void addMessage(int level, String message, int line)
level
- The level of the messagemessage
- The message to displayline
- The linenumber where the message occured or -1 if no line is
availablepublic void finishValidation(String feedFormat)
feedFormat
- Human readable name of the validated feedpublic void open()
public void performValidation()
private void clearMessageLabel()
private void createDialogArea()
private void startStatusMessageAnimate()
void clearResults()
void performValidation(String feedPath)
feedPath
- The URL / Path to a newsfeed for validaitonvoid setMessage(String message)
message
- The messagevoid setStatusPoints(int number)
number
- The number of pointsvoid setValidateButtonState(boolean validating)
validating
- TRUE if validatingvoid stopStatusMessageAnimate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |