|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.w3c.jwput.gui.JWGUI
Winie's Graphical User Interface
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
protected javax.swing.JPanel |
cards
|
protected java.io.OutputStream |
errlog
|
static java.lang.String |
ERRLOG_FILE
|
protected java.io.File |
errlogfile
|
static javax.swing.Icon |
errorIcon
|
static java.lang.String |
FILE_HISTORY_FILE
|
static java.lang.String |
FILE_HISTORY_P
|
protected History |
fileHistory
|
protected javax.swing.JFrame |
frame
|
protected boolean |
hidepopups
|
static int |
HISTORY_SIZE
|
protected JWGet |
jwget
|
static java.lang.String |
JWGET_P
|
static java.util.Properties |
jwprops
|
protected JWPut |
jwput
|
static java.lang.String |
JWPUT_P
|
static java.lang.String |
JWUI_P
|
protected java.awt.CardLayout |
layout
|
static java.lang.String |
LOG_FILE
|
protected LogDialog |
logD
|
protected java.io.File |
logfile
|
static javax.swing.Icon |
messageIcon
|
protected java.io.OutputStream |
outlog
|
protected PasswordDialog |
pdialog
|
protected JWPreferences |
prefs
|
protected boolean |
progressbar
|
protected java.util.Hashtable |
props
|
static javax.swing.Icon |
questionIcon
|
protected boolean |
showlogs
|
protected StatusBar |
status
|
static java.lang.String |
SYNCH_FILE
|
static java.lang.String |
SYNCH_FILE_URL_P
|
protected SynchFileURL |
synchfileurl
|
static java.lang.String |
URL_HISTORY_FILE
|
static java.lang.String |
URL_HISTORY_P
|
protected History |
urlHistory
|
protected boolean |
userhidepopups
|
static javax.swing.Icon |
winieIcon
|
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 org.w3c.jwput.JWUI |
ABORT_OPTION,
APPROVE_OPTION,
CANCEL_OPTION,
ERROR_OPTION |
Fields inherited from interface org.w3c.jwput.JWOptions |
ACCEPT_LANGUAGE_P,
BACKUP_P,
DEF_TRIES,
ETAGS_DB,
FALSE_P,
HEADER_PREFIX,
HIDE_POPUPS_P,
HOMEDIR_P,
LOAD_DIR_P,
MIME_PREFIX,
MIMEDEF_P,
OVERWRITE_P,
PASSWORD_P,
PROGRESS_BAR_P,
PROMPT_P,
PROXY_HOST_P,
PROXY_PORT_P,
PROXY_SET_P,
PUT_CVS_P,
QUIET_P,
REC_P,
SAVE_DIR_P,
SOCKS_HOST_P,
SOCKS_PORT_P,
TRIES_P,
TRUE_P,
USER_AGENT_P,
USER_P,
VERBOSE_P,
WINIEDIR,
WPUTDIR,
WPUTRC |
Constructor Summary | |
JWGUI(javax.swing.JFrame frame)
Constructor |
Method Summary | |
int |
ask(java.lang.String[] message,
java.lang.String[] question)
Ask a question to the user. |
int |
askQuestion(java.lang.String question)
Ask a question to the user. |
int |
askQuestion(java.lang.String[] message,
java.lang.String question)
Ask a question to the user. |
int |
askQuestion(java.lang.String[] message,
java.lang.String[] question)
Ask a question to the user. |
int |
askQuestion(java.lang.String message,
java.lang.String question)
Ask a question to the user. |
protected void |
build(java.util.Hashtable props)
|
void |
displayError(java.lang.String msg)
Display an error message |
void |
displayError(java.lang.String[] msg,
java.lang.String title)
Display a error message (on several lines) |
void |
displayError(java.lang.String msg,
java.lang.String title)
Display an error message |
protected void |
displayLog(java.lang.String log)
|
protected void |
displayLog(java.lang.String[] log)
|
void |
displayMessage(java.lang.String msg)
Display a message |
void |
displayMessage(java.lang.String[] msg,
java.lang.String title)
Display a message (on several lines) |
void |
displayMessage(java.lang.String[] msg,
java.lang.String title,
javax.swing.Icon icon)
Display a message (on several lines) |
void |
displayMessage(java.lang.String msg,
java.lang.String title)
Display a message |
void |
errlog(java.lang.String log)
Log an error |
protected void |
exit()
|
java.lang.String[] |
getAuthentication(java.lang.String realm,
java.lang.String message,
boolean firstime)
Get a username and a password |
protected javax.swing.JComponent |
getDAVComponent(java.util.Hashtable props)
|
protected javax.swing.JComponent |
getDeleteComponent(java.util.Hashtable props)
|
java.io.OutputStream |
getErrlogStream()
Get a Stream on the errlog. |
protected javax.swing.Icon |
getErrorIcon()
|
java.lang.String |
getFile(java.lang.String title,
java.lang.String message)
Get a File from the user. |
java.lang.String |
getFile(java.lang.String title,
java.lang.String[] message)
Get a File from the user. |
protected javax.swing.Icon |
getIcon(java.lang.String name)
|
java.util.Properties |
getJWProperties()
Get the default user properties |
protected javax.swing.JComponent |
getLoadComponent(java.util.Hashtable props)
|
java.io.OutputStream |
getLogStream()
Get a Stream on the log. |
protected javax.swing.JMenuBar |
getMenuBar()
Get the MenuBar. |
java.io.InputStream |
getMonitoredInputStream(java.io.InputStream in,
java.lang.String message,
int length)
Get a monitored inputstream |
protected javax.swing.Icon |
getMsgIcon()
|
protected java.util.Hashtable |
getProperties()
|
protected javax.swing.Icon |
getQuestionIcon()
|
protected javax.swing.JComponent |
getSaveComponent(java.util.Hashtable props)
|
protected StatusBar |
getStatusBar()
|
java.lang.String |
getString(java.lang.String message)
Get a String from the user. |
java.lang.String |
getString(java.lang.String[] message)
Get a String from the user. |
protected java.util.Properties |
getUserProperties()
|
protected javax.swing.Icon |
getWinieIcon()
|
void |
hidelogs()
Hide the log to the User (and still write in the log stream) |
void |
hidePopups()
No message popup |
protected void |
initialize()
|
void |
log(java.lang.String log)
Log a string |
protected void |
log(java.lang.String[] log)
|
static void |
main(java.lang.String[] args)
Main |
protected void |
savePreferences(java.util.Properties prefs)
|
void |
setCursor(int cursor)
Set The Cursor. |
void |
setStatus(java.lang.String stat)
|
void |
showlogs()
Show the log to the User (and still write in the log stream) |
void |
showPopups()
Display message popups |
protected void |
showPreferences()
|
protected boolean |
showProgressBar()
|
protected void |
switchUploadDownload()
|
void |
sync()
Flush the logs (log and errlog) |
static void |
unBoldSpecificFonts()
|
void |
updateProperties(java.util.Properties props)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
print,
printAll,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
isLightweight,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
processComponentEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String URL_HISTORY_P
public static final java.lang.String FILE_HISTORY_P
public static final java.lang.String SYNCH_FILE_URL_P
public static final java.lang.String JWPUT_P
public static final java.lang.String JWGET_P
public static final java.lang.String JWUI_P
public static final java.lang.String URL_HISTORY_FILE
public static final java.lang.String FILE_HISTORY_FILE
public static final java.lang.String SYNCH_FILE
public static final java.lang.String LOG_FILE
public static final java.lang.String ERRLOG_FILE
public static final int HISTORY_SIZE
public static java.util.Properties jwprops
public static javax.swing.Icon winieIcon
public static javax.swing.Icon messageIcon
public static javax.swing.Icon errorIcon
public static javax.swing.Icon questionIcon
protected JWPut jwput
protected JWGet jwget
protected History urlHistory
protected History fileHistory
protected SynchFileURL synchfileurl
protected java.util.Hashtable props
protected java.awt.CardLayout layout
protected javax.swing.JFrame frame
protected javax.swing.JPanel cards
protected PasswordDialog pdialog
protected JWPreferences prefs
protected LogDialog logD
protected StatusBar status
protected java.io.OutputStream outlog
protected java.io.OutputStream errlog
protected java.io.File logfile
protected java.io.File errlogfile
protected boolean showlogs
protected boolean hidepopups
protected boolean userhidepopups
protected boolean progressbar
Constructor Detail |
public JWGUI(javax.swing.JFrame frame)
the
- parent JFrameMethod Detail |
public static void unBoldSpecificFonts()
public void setCursor(int cursor)
cursor
- The Cursor typeprotected void initialize()
public void updateProperties(java.util.Properties props)
protected java.util.Hashtable getProperties()
public java.util.Properties getJWProperties()
public void hidePopups()
public void showPopups()
public void showlogs()
public void hidelogs()
protected void build(java.util.Hashtable props)
protected StatusBar getStatusBar()
protected void switchUploadDownload()
protected javax.swing.Icon getWinieIcon()
protected javax.swing.Icon getMsgIcon()
protected javax.swing.Icon getErrorIcon()
protected javax.swing.Icon getQuestionIcon()
protected javax.swing.Icon getIcon(java.lang.String name)
protected javax.swing.JComponent getDeleteComponent(java.util.Hashtable props)
protected javax.swing.JComponent getLoadComponent(java.util.Hashtable props)
protected javax.swing.JComponent getSaveComponent(java.util.Hashtable props)
protected javax.swing.JComponent getDAVComponent(java.util.Hashtable props)
protected javax.swing.JMenuBar getMenuBar()
protected java.util.Properties getUserProperties()
protected void exit()
protected void showPreferences()
protected void savePreferences(java.util.Properties prefs)
public java.lang.String[] getAuthentication(java.lang.String realm, java.lang.String message, boolean firstime)
firstime
- is is the first time we ask for a password?public java.lang.String getString(java.lang.String message)
message
- the message to displaypublic java.lang.String getString(java.lang.String[] message)
message
- the message to displaypublic java.lang.String getFile(java.lang.String title, java.lang.String message)
message
- the message to displaypublic java.lang.String getFile(java.lang.String title, java.lang.String[] message)
message
- the message to displaypublic int askQuestion(java.lang.String question)
question
- the Questionpublic int askQuestion(java.lang.String message, java.lang.String question)
message
- a message to display before the questionquestion
- the Questionpublic int askQuestion(java.lang.String[] message, java.lang.String question)
question
- the Questionmessage
- a message to display before the question (several lines)public int askQuestion(java.lang.String[] message, java.lang.String[] question)
question
- the Question (several lines)message
- a message to display before the question (several lines)public int ask(java.lang.String[] message, java.lang.String[] question)
question
- the Question (several lines)message
- a message to display before the question (several lines)public void displayError(java.lang.String msg)
msg
- the error messagepublic void displayError(java.lang.String msg, java.lang.String title)
msg
- the error messagepublic void displayError(java.lang.String[] msg, java.lang.String title)
msg
- the messagepublic void displayMessage(java.lang.String msg)
msg
- the messagepublic void displayMessage(java.lang.String msg, java.lang.String title)
msg
- the messagetitle
- the dialog titlepublic void displayMessage(java.lang.String[] msg, java.lang.String title)
msg
- the messagetitle
- the dialog titlepublic void displayMessage(java.lang.String[] msg, java.lang.String title, javax.swing.Icon icon)
msg
- the messagetitle
- the dialog titleicon
- the Icon to displaypublic void setStatus(java.lang.String stat)
protected void displayLog(java.lang.String[] log)
protected void displayLog(java.lang.String log)
protected void log(java.lang.String[] log)
public void log(java.lang.String log)
the
- String to logpublic void errlog(java.lang.String log)
the
- String to logpublic void sync()
public java.io.OutputStream getLogStream()
public java.io.OutputStream getErrlogStream()
protected boolean showProgressBar()
public java.io.InputStream getMonitoredInputStream(java.io.InputStream in, java.lang.String message, int length)
in
- the inputstream to monitormessage
- the message to display during monitoringlength
- the number of byte to be readpublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |