|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.formaria.editor.langed.LangEdDesktop
public class LangEdDesktop
Copyright (c) Formaria Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
$Revision: 1.17 $
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected java.net.URL |
codeBase
|
protected LangEdPanel |
langEditor
|
protected javax.swing.JMenu |
mainMenu
|
protected javax.swing.JMenuBar |
mainMenuBar
|
protected javax.swing.JToolBar |
toolbar
|
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
LangEdDesktop(java.net.URL _codeBase,
boolean _isPlugin,
java.lang.Object _mainMenu,
javax.swing.JToolBar mainToolbar)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected static javax.swing.JMenuItem |
addMenuItem(java.lang.String name,
java.lang.String command,
javax.swing.ImageIcon img,
char mnemonic,
java.lang.String description,
javax.swing.KeyStroke keystroke,
java.awt.event.ActionListener listener,
javax.swing.JMenu owner)
|
void |
checkSpelling()
Do a spell check |
void |
connectToDatabase()
Connect to the database containing the languges. |
void |
copy()
|
void |
cut()
|
void |
exportFile()
|
java.lang.String |
findKey(java.lang.String text)
Find the key that matches this text |
static java.lang.String[] |
getSelectedLanguages(java.awt.Component parent,
java.lang.Object[] selectedLangs,
boolean export)
|
java.lang.String |
getTargetCode()
|
boolean |
hasSelection()
|
void |
importFile()
|
void |
isStandalone(boolean isS)
|
javax.swing.ImageIcon |
loadImageIcon(java.lang.String filename,
java.lang.String description)
|
void |
newFile()
|
void |
newFile(java.io.File srcFile)
|
void |
newLanguage()
Create a new language |
java.lang.String |
newString()
Add a new 'blank' string |
java.lang.String |
newString(java.lang.String newText)
|
void |
nextComment()
|
void |
openFile()
Open the catattrb.lst file and intialize the resources. |
void |
openFile(java.lang.String fileName)
|
void |
paste()
|
void |
previousComment()
|
void |
runLiveTranslation()
Run in live translation mode |
void |
runMachineTranslation()
Show the machine language editor |
void |
saveFile()
|
void |
scanCurrentProject()
|
void |
setCurrentLang()
|
void |
setDelimiterChar(char c,
boolean isStart)
|
void |
setupSpelling()
Setup the spell checker |
void |
sort0to9()
|
void |
sort9to0()
|
void |
sortA2Z()
|
void |
sortZ2A()
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected LangEdPanel langEditor
protected javax.swing.JToolBar toolbar
protected javax.swing.JMenuBar mainMenuBar
protected javax.swing.JMenu mainMenu
protected java.net.URL codeBase
| Constructor Detail |
|---|
public LangEdDesktop(java.net.URL _codeBase,
boolean _isPlugin,
java.lang.Object _mainMenu,
javax.swing.JToolBar mainToolbar)
| Method Detail |
|---|
protected static javax.swing.JMenuItem addMenuItem(java.lang.String name,
java.lang.String command,
javax.swing.ImageIcon img,
char mnemonic,
java.lang.String description,
javax.swing.KeyStroke keystroke,
java.awt.event.ActionListener listener,
javax.swing.JMenu owner)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void openFile(java.lang.String fileName)
public java.lang.String getTargetCode()
public java.lang.String newString()
public java.lang.String newString(java.lang.String newText)
public void nextComment()
public void previousComment()
public java.lang.String findKey(java.lang.String text)
text - the master string
public void openFile()
public void importFile()
public static java.lang.String[] getSelectedLanguages(java.awt.Component parent,
java.lang.Object[] selectedLangs,
boolean export)
public void exportFile()
public void saveFile()
public void newFile()
public void newFile(java.io.File srcFile)
public void setCurrentLang()
public void setDelimiterChar(char c,
boolean isStart)
public void connectToDatabase()
public void isStandalone(boolean isS)
public javax.swing.ImageIcon loadImageIcon(java.lang.String filename,
java.lang.String description)
public void runMachineTranslation()
public void runLiveTranslation()
public boolean hasSelection()
public void cut()
public void copy()
public void paste()
public void sortA2Z()
public void sortZ2A()
public void sort0to9()
public void sort9to0()
public void newLanguage()
public void checkSpelling()
public void setupSpelling()
public void scanCurrentProject()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||