|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.thdl.tib.input.Jskad
A simple Tibetan text editor. Jskad editors lack most of the functionality of a word-processor, but they do provide multiple keyboard input methods, as well as conversion routines to go back and forth between Extended Wylie and TibetanMachineWeb.
Jskad embeds DuffPane
, which is the editing
window where the keyboard logic and most functionality is housed.
Depending on the object passed to the constructor, a Jskad object can be used in either an application or an applet.
Nested Class Summary | |
private class |
Jskad.RTFFilter
|
private class |
Jskad.TXTFilter
|
Field Summary | |
org.thdl.tib.input.DuffPane |
dp
The text editing window which this Jskad object embeds. |
private static String |
enableKeypressStatusProp
the name of the property a developer should set to see low-level info on how keypresses in "Tibetan" input mode are being interpreted |
private JFileChooser |
fileChooser
|
String |
fileName
The filename, if any, associated with this instance of Jskad. |
private JComboBox |
fontFamilies
|
private int |
fontSize
|
private JComboBox |
fontSizes
|
boolean |
hasChanged
Has the document been saved since it was last changed? |
private static org.thdl.tib.input.JskadKeyboardManager |
keybdMgr
the middleman that keeps code regarding Tibetan keyboards clean |
private static int |
numberOfTibsRTFOpen
|
private Object |
parentObject
|
private FileFilter |
rtfFilter
|
private org.thdl.util.StatusBar |
statusBar
the status bar for this frame |
private FileFilter |
txtFilter
|
private static int |
x_size
|
private static int |
y_size
|
Fields inherited from class javax.swing.JPanel |
|
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.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
private |
Jskad()
Do not use this JPanel constructor. |
private |
Jskad(boolean isDB)
Do not use this JPanel constructor. |
private |
Jskad(LayoutManager lm)
Do not use this JPanel constructor. |
private |
Jskad(LayoutManager lm,
boolean isDB)
Do not use this JPanel constructor. |
|
Jskad(Object parent)
|
Method Summary | |
void |
changedUpdate(DocumentEvent de)
Required for implementations of DocumentListener. |
private boolean |
checkSave()
|
private void |
copySelection()
|
private void |
cutSelection()
|
void |
disableRoman()
Disables typing of Roman (non-Tibetan) text. |
void |
enableRoman()
Enables typing of Roman (non-Tibetan) text along with Tibetan. |
private void |
getPreferences()
|
private String |
getSave(String f_name)
|
private String |
getSaveAs()
|
private void |
importWylie()
|
void |
insertUpdate(DocumentEvent de)
Required for implementations of DocumentListener. |
static void |
main(String[] args)
Runs Jskad. |
void |
makeDependent()
Allows use of Jskad as dependent JFrame. |
private void |
newFile()
|
private void |
openFile()
|
private void |
pasteSelection()
|
void |
removeUpdate(DocumentEvent de)
Required for implementations of DocumentListener. |
private void |
saveAsFile()
|
private void |
saveFile()
|
private static void |
savePreferencesAction()
Saves user preferences to disk if possible. |
void |
setContent(String wylie)
Fills the editing pane with content. |
private void |
toTibetan()
|
private void |
toWylie()
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String enableKeypressStatusProp
private static final org.thdl.tib.input.JskadKeyboardManager keybdMgr
private JComboBox fontFamilies
private JComboBox fontSizes
private JFileChooser fileChooser
private FileFilter rtfFilter
private FileFilter txtFilter
private int fontSize
private Object parentObject
private static int numberOfTibsRTFOpen
private static int x_size
private static int y_size
public org.thdl.tib.input.DuffPane dp
public boolean hasChanged
public String fileName
private org.thdl.util.StatusBar statusBar
Constructor Detail |
private Jskad()
private Jskad(boolean isDB)
private Jskad(LayoutManager lm)
private Jskad(LayoutManager lm, boolean isDB)
public Jskad(Object parent)
parent
- the object that embeds this instance of Jskad.
Supported objects include JFrames and JApplets. If the parent
is a JApplet then the File menu is omitted from the menu bar.Method Detail |
private static void savePreferencesAction()
private void getPreferences()
private void newFile()
private void openFile()
private void saveFile()
private void saveAsFile()
private boolean checkSave()
private String getSave(String f_name)
private String getSaveAs()
private void cutSelection()
private void copySelection()
private void pasteSelection()
private void toTibetan()
private void toWylie()
private void importWylie()
public void makeDependent()
public void setContent(String wylie)
wylie
- the string of wylie you want to
put in the editing panepublic void enableRoman()
public void disableRoman()
public void changedUpdate(DocumentEvent de)
changedUpdate
in interface DocumentListener
public void insertUpdate(DocumentEvent de)
insertUpdate
in interface DocumentListener
de
- a DocumentEventpublic void removeUpdate(DocumentEvent de)
removeUpdate
in interface DocumentListener
de
- a DocumentEventpublic static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |