|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
sabdakosh.Dictionary
public class Dictionary
The class Dictionary represents the front-end for the application i.e., the view of the application.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
javax.swing.JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
java.awt.Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
java.awt.Window.AccessibleAWTWindow |
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
private javax.swing.JButton |
about
The about is button variable that displays information about application and developer when it is clicked. |
private javax.swing.JPanel |
center
The center is the panel variable that represents the center part of the front-end. |
private javax.swing.JLabel |
copyright
The copyright is the label variable for copyright information about the applicaiton. |
private javax.swing.JPanel |
dict
The dict is the panel variable. |
private javax.swing.JLabel |
dict_word
The dict_word is the label variable for text displayed at top of the front-end . |
private javax.swing.JPanel |
english
The english is the panel variable for displaying the result of the english meaning. |
private javax.swing.JTextArea |
english_area
The english_area is the textarea variable for displaying the english meaning. |
private javax.swing.JScrollPane |
english_scroll
The english_scroll is the scrollpane variable. |
private java.lang.String |
input
The input variable represents the actual value entered by the user to be mapped in the xml file. |
private java.lang.String |
input1
The input1 is the variable that takes the value entered by the user at front-end. |
(package private) java.lang.String |
input2
The input2 is the variable that takes the value entered by user as lowercase letters only by changing the value from variable input1 to lowercase. |
private java.lang.String |
input3
The input3 is the variable that takes the token value of the entered word/phrase. |
private java.lang.String |
meaning
The meaning variable represents the value of the english meaning with it's examples which is received after parsing the xml file. |
private javax.swing.JPanel |
nepali
The nepali is the panel variable for displaying the result of the nepali meaning. |
private javax.swing.JTextField |
nepali_area
The nepali_area is the textarea variable for displaying the nepali meaining. |
private java.lang.String |
nepali_mean
The nepali_mean variable represents the value of the nepali meaning which is received after parsing the xml file. |
private javax.swing.JPanel |
north
The north is the north panel of the border layout. |
private javax.swing.JLabel |
note
The note is the label variable for displaying the text at nepali area. |
private javax.swing.JButton |
ok
The ok is the button variable for clicking "OK" button at front-end. |
private javax.swing.JPanel |
opt_panel
The opt_panel is the panel variable. |
private javax.swing.JLabel |
option
The option is the label variable for displaying "Options" text at front-end. |
private javax.swing.JPanel |
quot
The quot is the panel variable. |
private javax.swing.JLabel |
quotation
The quotation is the label variable for displaying quotation at the top of the front-end. |
private static long |
serialVersionUID
|
private javax.swing.JPanel |
south
The south is the south panel of border layout. |
private javax.swing.JButton |
translate
The translate is the button variable that translate the english word into it's corresponding nepali meaning. |
private javax.swing.JLabel |
w_p_label
The w_p_label is the label for displaying word/phrase at front-end. |
private javax.swing.JPanel |
west
The west is the west panel of border layout. |
private javax.swing.JButton |
word
The word is the button variable for displaying help. |
private javax.swing.JTextField |
word_phrase
The word_phrase is the textfield for entering the word whose meaning is to be searched. |
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Dictionary()
Instantiates a new dictionary. |
Method Summary | |
---|---|
private void |
about_translate(java.awt.event.ActionEvent evt)
About_translate is the method that translates and displays the nepali meaning in nepali language . |
private void |
aboutActionPerformed(java.awt.event.ActionEvent evt)
aboutActionPerformed is the method that calls About class and displays information about the developer and application. |
void |
initComponents()
This method initializes the components for the front-end of this application. |
private void |
okActionPerformed(java.awt.event.ActionEvent evt)
okAtionPerformed is the method which is invoked when the user clicks the "OK" button at front-end. |
void |
testsax()
Testsax is the method that creates the SAX parser and loads the xml file to parse for the meaning of the given word. |
private void |
wordActionPerformed(java.awt.event.ActionEvent evt)
wordActionPerformed is the method that calls Htmhandler class and displays the help to the user. |
Methods inherited from class javax.swing.JFrame |
---|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
private static final long serialVersionUID
private javax.swing.JButton about
private javax.swing.JPanel center
private javax.swing.JLabel copyright
private javax.swing.JPanel dict
private javax.swing.JLabel dict_word
private javax.swing.JPanel english
private javax.swing.JTextArea english_area
private javax.swing.JScrollPane english_scroll
private javax.swing.JPanel nepali
private javax.swing.JTextField nepali_area
private javax.swing.JPanel north
private javax.swing.JLabel note
private javax.swing.JButton ok
private javax.swing.JPanel opt_panel
private javax.swing.JLabel option
private javax.swing.JPanel quot
private javax.swing.JLabel quotation
private javax.swing.JPanel south
private javax.swing.JButton translate
private javax.swing.JLabel w_p_label
private javax.swing.JPanel west
private javax.swing.JButton word
private javax.swing.JTextField word_phrase
private java.lang.String input
private java.lang.String input1
java.lang.String input2
private java.lang.String input3
private java.lang.String nepali_mean
private java.lang.String meaning
Constructor Detail |
---|
Dictionary()
Method Detail |
---|
public void testsax()
public void initComponents()
private void about_translate(java.awt.event.ActionEvent evt)
evt
- the evt is the actionevent object passed to about_translate method.private void aboutActionPerformed(java.awt.event.ActionEvent evt)
evt
- the evt is the actionevent object passed to aboutActionPerformed methodprivate void wordActionPerformed(java.awt.event.ActionEvent evt)
evt
- the evt is the actionevent object passed to wordActionPerformed method.private void okActionPerformed(java.awt.event.ActionEvent evt)
evt
- the evt is the actionevent object passed to okActionPerformed method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |