Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsqldb.util
Class ZaurusTableForm  view ZaurusTableForm download ZaurusTableForm.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.ScrollPane
              extended byorg.hsqldb.util.ZaurusTableForm
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.io.Serializable, java.awt.event.TextListener

public class ZaurusTableForm
extends java.awt.ScrollPane
implements java.awt.event.TextListener, java.awt.event.ItemListener, java.awt.event.ActionListener

Class declaration

Version:
1.0.0

Nested Class Summary
 
Nested classes inherited from class java.awt.ScrollPane
java.awt.ScrollPane.AccessibleAWTScrollPane
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  int aktRowNr
           
(package private)  java.sql.Connection cConn
           
(package private)  java.lang.String[] columns
           
(package private)  short[] columnTypes
           
(package private)  java.sql.DatabaseMetaData dbmeta
           
(package private)  int[][] imColIndex
           
(package private)  java.lang.String[][] importedKeys
           
(package private)  ZaurusComponent[] komponente
           
(package private)  int numberOfResult
           
(package private)  int[] pkColIndex
           
(package private)  java.lang.String[] primaryKeys
           
(package private)  java.sql.PreparedStatement pStmt
           
(package private)  int[][] refColIndex
           
(package private)  java.lang.String[][] refColumns
           
(package private)  java.lang.String[] refTables
           
(package private)  java.lang.Object[][] resultRowPKs
           
(package private)  java.lang.String tableName
           
 
Fields inherited from class java.awt.ScrollPane
SCROLLBARS_ALWAYS, SCROLLBARS_AS_NEEDED, SCROLLBARS_NEVER
 
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
ZaurusTableForm(java.lang.String name, java.sql.Connection con)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method is invoked when an action occurs.
 void cancelChanges()
           
 int deleteRow()
           
private  void disablePKFields()
           
private  void fetchColumns()
           
private  void fetchImportedKeys()
           
private  void fetchPrimaryKeys()
           
private  void fillZChoice(ZaurusChoice zc, java.lang.String tab, java.lang.String col)
           
private  java.lang.String generatePKWhere()
           
private  java.lang.String generateWhere(java.lang.String[] words, boolean allWords, boolean ignoreCase, boolean noMatchWhole)
           
private  int getColIndex(java.lang.String name)
           
private  int getColIndex(java.lang.String colName, java.lang.String tabName)
           
private  int getConstraintIndex(int colIndex)
           
 java.lang.String getPrimaryKeysString()
           
private  void initGUI()
           
 void insertNewRow()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
          This method is called when an item's state is changed.
 boolean nextRow()
           
 boolean prevRow()
           
 boolean saveChanges()
           
 boolean saveNewRow()
           
 int searchRows(java.lang.String[] words, boolean allWords, boolean ignoreCase, boolean noMatchWhole)
           
private  void showAktRow()
           
 void textValueChanged(java.awt.event.TextEvent e)
          This method is called when the text being monitored changes.
 
Methods inherited from class java.awt.ScrollPane
addImpl, addNotify, doLayout, eventTypeEnabled, getAccessibleContext, getHAdjustable, getHScrollbarHeight, getScrollbarDisplayPolicy, getScrollPosition, getVAdjustable, getViewportSize, getVScrollbarWidth, isWheelScrollingEnabled, layout, paramString, printComponents, removeNotify, setLayout, setScrollPosition, setScrollPosition, setWheelScrollingEnabled
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusDownCycle, update, 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, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cConn

java.sql.Connection cConn

dbmeta

java.sql.DatabaseMetaData dbmeta

tableName

java.lang.String tableName

komponente

ZaurusComponent[] komponente

columns

java.lang.String[] columns

columnTypes

short[] columnTypes

primaryKeys

java.lang.String[] primaryKeys

pkColIndex

int[] pkColIndex

importedKeys

java.lang.String[][] importedKeys

imColIndex

int[][] imColIndex

refTables

java.lang.String[] refTables

refColumns

java.lang.String[][] refColumns

refColIndex

int[][] refColIndex

resultRowPKs

java.lang.Object[][] resultRowPKs

numberOfResult

int numberOfResult

pStmt

java.sql.PreparedStatement pStmt

aktRowNr

int aktRowNr
Constructor Detail

ZaurusTableForm

public ZaurusTableForm(java.lang.String name,
                       java.sql.Connection con)
Method Detail

cancelChanges

public void cancelChanges()

deleteRow

public int deleteRow()

getPrimaryKeysString

public java.lang.String getPrimaryKeysString()

insertNewRow

public void insertNewRow()

nextRow

public boolean nextRow()

prevRow

public boolean prevRow()

saveChanges

public boolean saveChanges()

saveNewRow

public boolean saveNewRow()

searchRows

public int searchRows(java.lang.String[] words,
                      boolean allWords,
                      boolean ignoreCase,
                      boolean noMatchWhole)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

textValueChanged

public void textValueChanged(java.awt.event.TextEvent e)
Description copied from interface: java.awt.event.TextListener
This method is called when the text being monitored changes.

Specified by:
textValueChanged in interface java.awt.event.TextListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Description copied from interface: java.awt.event.ItemListener
This method is called when an item's state is changed.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener

disablePKFields

private void disablePKFields()

fillZChoice

private void fillZChoice(ZaurusChoice zc,
                         java.lang.String tab,
                         java.lang.String col)

fetchColumns

private void fetchColumns()

fetchImportedKeys

private void fetchImportedKeys()

fetchPrimaryKeys

private void fetchPrimaryKeys()

generatePKWhere

private java.lang.String generatePKWhere()

generateWhere

private java.lang.String generateWhere(java.lang.String[] words,
                                       boolean allWords,
                                       boolean ignoreCase,
                                       boolean noMatchWhole)

getColIndex

private int getColIndex(java.lang.String name)

getColIndex

private int getColIndex(java.lang.String colName,
                        java.lang.String tabName)

getConstraintIndex

private int getConstraintIndex(int colIndex)

initGUI

private void initGUI()

showAktRow

private void showAktRow()