|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--org.comedia.db.view.CTableLink
Implements a link between two tables on database schemas.
Usage examples:
CTableBox table1 = new CTableBox(); CTableBox table2 = new CTableBox(); CTableLink link = new CTableLink(); link.setLeftTable(table1); link.setLeftLinkType(CTableLink.NORMAL_LINK); link.setLeftRelation(CTableLink.ONE_RELATION); link.setLeftFieldIndex(0); link.setRightTable(table2); link.setRightLinkType(CTableLink.JOIN_LINK); link.setRightRelation(CTableLink.MANY_RELATION); link.setRightFieldIndex(5); link.setLocation(150, 150); link.setSize(100, 100);
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
static int |
JOIN_LINK
The join link type. |
static int |
MANY_RELATION
The many relation. |
static int |
NORMAL_LINK
The normal link type. |
static int |
ONE_RELATION
The one relation. |
static int |
UNKNOWN_RELATION
The unknown relation. |
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 | |
CTableLink()
Constructs this link with default properties. |
Method Summary | |
boolean |
contains(int x,
int y)
Checks whether this component "contains" the specified point, where x and y are defined to be
relative to the coordinate system of this component. |
void |
focusGained(java.awt.event.FocusEvent e)
Performs event when this table box gets a focus. |
void |
focusLost(java.awt.event.FocusEvent e)
Performs event when this table box lost a focus. |
int |
getLeftFieldIndex()
Gets the related field index of left table box. |
int |
getLeftLinkType()
Gets the related link type of left table box. |
int |
getLeftRelation()
Gets the related relation for left table box. |
CTableBox |
getLeftTable()
Gets the left related table box. |
int |
getRightFieldIndex()
Gets the related field index of right table box. |
int |
getRightLinkType()
Gets the related link type of right table box. |
int |
getRightRelation()
Gets the related relation for right table box. |
CTableBox |
getRightTable()
Gets the right related table box. |
boolean |
isFocusTraversable()
Checks is focus of the links is traversable. |
boolean |
isManagingFocus()
Checks is focus of the links is managable. |
boolean |
isUpdated()
Checks is link updated. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Performs event when mouse is clicked on the component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Performs event when mouse is entered to the component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Performs event when mouse is exited from the component. |
void |
mousePressed(java.awt.event.MouseEvent e)
Performs event when mouse is pressed on the component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Performs event when mouse is released on the component. |
void |
paint(java.awt.Graphics g)
Paints the contents of this link. |
void |
setLeftFieldIndex(int leftFieldIndex)
Sets a new related field index of left table box. |
void |
setLeftLinkType(int leftLinkType)
Sets a new related link type of left table box. |
void |
setLeftRelation(int leftRelation)
Sets a new related relation for left table box. |
void |
setLeftTable(CTableBox leftTable)
Sets a new left related table box. |
void |
setRightFieldIndex(int rightFieldIndex)
Sets a new related field index of right table box. |
void |
setRightLinkType(int rightLinkType)
Sets a new related link type of right table box. |
void |
setRightRelation(int rightRelation)
Sets a new related relation for right table box. |
void |
setRightTable(CTableBox rightTable)
Sets a new right related table box. |
void |
updateShape()
Updates the shape of this link. |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NORMAL_LINK
public static final int JOIN_LINK
public static final int UNKNOWN_RELATION
public static final int ONE_RELATION
public static final int MANY_RELATION
Constructor Detail |
public CTableLink()
Method Detail |
public boolean isFocusTraversable()
isFocusTraversable
in class javax.swing.JComponent
public boolean isManagingFocus()
isManagingFocus
in class javax.swing.JComponent
public boolean isUpdated()
public CTableBox getLeftTable()
public void setLeftTable(CTableBox leftTable)
leftTable
- a new left related table box.public CTableBox getRightTable()
public void setRightTable(CTableBox rightTable)
rightTable
- a new right related table box.public int getLeftFieldIndex()
public void setLeftFieldIndex(int leftFieldIndex)
leftFieldIndex
- a new related field index of left table box.public int getRightFieldIndex()
public void setRightFieldIndex(int rightFieldIndex)
rightFieldIndex
- a new related field index of right table box.public int getLeftLinkType()
public void setLeftLinkType(int leftLinkType)
leftLinkType
- a new related link type of left table box.public int getRightLinkType()
public void setRightLinkType(int rightLinkType)
rightLinkType
- a new related link type of right table box.public int getLeftRelation()
public void setLeftRelation(int leftRelation)
leftRelation
- a new related relation for left table box.public int getRightRelation()
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
e
- an object which described occured event.public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
e
- an object which described occured event.public void setRightRelation(int rightRelation)
rightRelation
- a new related relation for right table box.public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public void updateShape()
public boolean contains(int x, int y)
x
and y
are defined to be
relative to the coordinate system of this component.contains
in class javax.swing.JComponent
x
- the x coordinate of the point.y
- the y coordinate of the point.Component.getComponentAt(int, int)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- an object which described occured event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- an object which described occured event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- an object which described occured event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- an object which described occured event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- an object which described occured event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |