public class FcmdView extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) GralUserAction |
actionFind
Action for Key F3 for view command.
|
(package private) GralUserAction |
actionOnSetInvisible |
(package private) GralUserAction |
actionOpenView
Action for Key F3 for view command.
|
(package private) GralUserAction |
actionQuickView
Action for Key crl-Q for quick view command.
|
(package private) GralUserAction |
actionSave |
(package private) GralUserAction |
actionSaveTextAsISO8859_1_unix |
(package private) GralUserAction |
actionSaveTextAsUTF8unix |
(package private) GralUserAction |
actionSaveTextAsWindows |
(package private) GralUserAction |
actionSetEditable
Action for Key F3 for view command.
|
(package private) GralUserAction |
actionSetHexView
Action for Key F3 for view command.
|
(package private) GralUserAction |
actionSetTextViewISO8859_1
Action for Key F3 for view command.
|
(package private) GralUserAction |
actionSetTextViewUTF8
Action for Key F3 for view command.
|
private static java.nio.charset.Charset |
ascii7 |
(package private) boolean |
bEditable |
private GralButton |
btnCase |
private GralButton |
btnFind |
private GralButton |
btnQuickview |
private GralButton |
btnWholeword |
(package private) boolean |
bVisible |
private int |
cursorPos |
private java.nio.charset.Charset |
encodingContent |
private static byte[] |
endl_0a |
private static byte[] |
endl_0d0a |
(package private) FileRemote |
file |
private char |
format
The current choiced view format.
|
private StringFormatter |
formatterHex
Instance to prepare the text especially for hex view.
|
private static java.nio.charset.Charset |
iso8859_1 |
protected Fcmd |
main |
(package private) int |
nrQuickview |
private java.nio.ByteBuffer |
tmpReadTransmissionBuffer
A buffer to get bytes from the file using the java.nio.Channel mechanism.
|
private byte[] |
uContent
The gotten bytes from bytebuffer.
|
(package private) GralTextFieldUser_ifc |
userKeys |
private static java.nio.charset.Charset |
utf8 |
private GralTextBox |
widgContent
The widget to show content.
|
private GralTextField |
widgFindText |
private GralTextBox |
widgQuickView |
private GralTextField |
widgShowInfo |
private GralWindow_ifc |
windView
The window of this functionallity.
|
private int |
zContent
Number of read bytes.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
buildWindowView()
Builds the content of the confirm-delete window.
|
(package private) void |
closeQuickView() |
(package private) void |
detectEncoding() |
(package private) void |
openQuickView(FileRemote src) |
(package private) void |
presentContent() |
(package private) void |
presentContentHex() |
(package private) void |
presentContentText(java.nio.charset.Charset charset) |
void |
quickView()
This routine will be called whenever a file is selected newly, it checks quickview.
|
(package private) void |
saveTextAs(java.nio.charset.Charset encoding,
byte[] lineEnd) |
(package private) void |
syncContentFromWidg() |
(package private) void |
syncTextFromWidg(java.nio.charset.Charset charset) |
(package private) void |
view(FileRemote XXXsrc)
Reads the current (last selected) file in the binary content buffer,
detects its encoding, shows it.
|
private GralWindow_ifc windView
private GralTextBox widgContent
private GralTextField widgFindText
private GralTextField widgShowInfo
private GralButton btnFind
private GralButton btnWholeword
private GralButton btnCase
private GralButton btnQuickview
boolean bVisible
boolean bEditable
int nrQuickview
private GralTextBox widgQuickView
FileRemote file
private final java.nio.ByteBuffer tmpReadTransmissionBuffer
private int zContent
private final byte[] uContent
private java.nio.charset.Charset encodingContent
private char format
private int cursorPos
private static java.nio.charset.Charset ascii7
private static java.nio.charset.Charset utf8
private static java.nio.charset.Charset iso8859_1
private static byte[] endl_0a
private static byte[] endl_0d0a
private final StringFormatter formatterHex
GralUserAction actionQuickView
GralUserAction actionFind
GralUserAction actionOpenView
GralUserAction actionSetTextViewUTF8
GralUserAction actionSetHexView
GralUserAction actionSetTextViewISO8859_1
GralUserAction actionSetEditable
GralUserAction actionSave
GralUserAction actionSaveTextAsUTF8unix
GralUserAction actionSaveTextAsWindows
GralUserAction actionSaveTextAsISO8859_1_unix
GralUserAction actionOnSetInvisible
GralTextFieldUser_ifc userKeys
void buildWindowView()
void view(FileRemote XXXsrc)
src
- The path which is selected as source. It may be a directory or a file.public void quickView()
void detectEncoding()
void presentContent() throws java.io.IOException
java.io.IOException
void presentContentHex() throws java.io.IOException
java.io.IOException
void presentContentText(java.nio.charset.Charset charset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
void syncContentFromWidg()
void syncTextFromWidg(java.nio.charset.Charset charset)
void saveTextAs(java.nio.charset.Charset encoding, byte[] lineEnd)
void openQuickView(FileRemote src)
void closeQuickView()