|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.ui.RulingInterface | +--sam.ui.text.RulingInterface
Text-based implementation of a ruling interface
Nested Class Summary |
Nested classes inherited from class sam.ui.RulingInterface |
RulingInterface.AccessMode |
Field Summary |
Fields inherited from class sam.ui.RulingInterface |
FILE, READABLE_DIRECTORY, READABLE_FILE, READABLE_FILE_OR_DIRECTORY, WRITABLE_DIRECTORY, WRITABLE_FILE |
Method Summary | |
protected java.lang.String |
choose(java.lang.String title,
java.lang.String[] values)
Prompts the user for entering a string. |
protected sam.cipher.Specification[] |
enterCiphers(java.lang.String title,
sam.cipher.Specification[] ciphers,
boolean canAddCiphers)
Prompts the user for entering the ciphers/passwords. |
protected java.io.File |
enterFileOrDirectory(java.lang.String title,
java.io.File suggestedValue,
RulingInterface.AccessMode mode)
Prompts the user for entering a file name. |
protected int |
enterInteger(java.lang.String title,
int suggestedValue,
int min,
int max)
Prompts the user for entering an integral number. |
protected java.lang.String |
enterString(java.lang.String title,
java.lang.String suggestedValue)
Prompts the user for entering a string. |
Methods inherited from class sam.ui.RulingInterface |
chooseCiphers, chooseInteger, chooseString, enterPasswords, getFileOrDirectory, getFileOrDirectory, getInteger, getString, test |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
protected java.lang.String enterString(java.lang.String title, java.lang.String suggestedValue)
RulingInterface
enterString
in class RulingInterface
title
- the title (or type) of the value to be chosensuggestedValue
- the suggested (yet invalid) value
In current implementation this will always be null
since this is the
only "invalid" String
protected int enterInteger(java.lang.String title, int suggestedValue, int min, int max)
RulingInterface
enterInteger
in class RulingInterface
title
- the title (or type) of the value to be chosensuggestedValue
- the suggested number to be returned if validmin
- the minimum allowed value, or Integer.MIN_VALUE
max
- the maximum allowed value, or Integer.MAX_VALUE
protected java.io.File enterFileOrDirectory(java.lang.String title, java.io.File suggestedValue, RulingInterface.AccessMode mode)
RulingInterface
enterFileOrDirectory
in class RulingInterface
title
- the title (or type) of the directory to be chosensuggestedValue
- the suggested (yet invalid) file or directory to be returnedmode
- the required access mode for this fileprotected java.lang.String choose(java.lang.String title, java.lang.String[] values)
RulingInterface
choose
in class RulingInterface
title
- the title (or type) of the value to be chosenvalues
- the list of allowed valuesprotected sam.cipher.Specification[] enterCiphers(java.lang.String title, sam.cipher.Specification[] ciphers, boolean canAddCiphers)
RulingInterface
enterCiphers
in class RulingInterface
title
- the non-null
titleciphers
- the suggested ciphers list or null
if none specifiedcanAddCiphers
- wether the user can add/remove ciphers or simply supply passwords
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |