pase.agenda
Class OtherComponent

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by pase.agenda.OtherComponent
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, plugin.IPlugInCallback

public class OtherComponent
extends javax.swing.JPanel
implements plugin.IPlugInCallback

No comment yet

Version:
1.1.5,
Author:
klhuang
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
OtherComponent(plugin.IPlugInCallback callback)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getActionCommand()
           
 plugin.IPlugInCallback getCallBack()
           
 java.lang.String getImageFile()
           
 javax.swing.ImageIcon getImageIcon()
           
 javax.swing.JComponent getJCmp()
           
 javax.swing.JComponent getJComponent()
           
 java.lang.Object getProperty(java.lang.String p_name)
           
 plugin.IPlugInPropertyEditor getPropertyEditor(java.lang.String p_name)
           
 java.lang.String[] getPropertyList()
           
 java.lang.String getTooltip()
           
 java.lang.String getValue()
          Note: This method is used for NewCmpPanel to get the value of the OhterComponent that will be saved to database.
 void runtimeBehavior()
           
 void setBounds(java.awt.Rectangle rect)
           
 void setEnabled(boolean b)
          override the setEnabled method
 void setLocale(java.util.Locale locale)
           
 void setOtherComponentVisible(boolean b)
          set the visibility of OtherComponent by parameter 'b'
 void setProperty(java.lang.String p_name, java.lang.Object p_value)
           
static void setToolTipText(java.awt.Container container, java.lang.String text)
           
 void setToolTipText(java.lang.String text)
           
 void setValue(java.lang.String value)
          Note: This method is used for NewCmpPanel to set the value of the OhterComponent that will be saved to database.
 java.lang.String toString()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OtherComponent

public OtherComponent(plugin.IPlugInCallback callback)
Method Detail

getJCmp

public javax.swing.JComponent getJCmp()

getCallBack

public plugin.IPlugInCallback getCallBack()

setBounds

public void setBounds(java.awt.Rectangle rect)
Overrides:
setBounds in class java.awt.Component

getValue

public java.lang.String getValue()
Note: This method is used for NewCmpPanel to get the value of the OhterComponent that will be saved to database. The current version of this function is a special case that will be fixed in future fixed by klhaung in 2000/2/16 This version use the method defined in IPlugInRunTimePolicy to get the value of the component


setValue

public void setValue(java.lang.String value)
Note: This method is used for NewCmpPanel to set the value of the OhterComponent that will be saved to database. The current version of this function is a special case that will be fixed in future fixed in 2000/2/16 by klhaung This version use the method defined in IPlugInRunTimePolicy to set the value


getActionCommand

public java.lang.String getActionCommand()
Specified by:
getActionCommand in interface plugin.IPlugInCallback

getImageFile

public java.lang.String getImageFile()
Specified by:
getImageFile in interface plugin.IPlugInCallback

getImageIcon

public javax.swing.ImageIcon getImageIcon()
Specified by:
getImageIcon in interface plugin.IPlugInCallback

getJComponent

public javax.swing.JComponent getJComponent()
Specified by:
getJComponent in interface plugin.IPlugInCallback

getPropertyList

public java.lang.String[] getPropertyList()
Specified by:
getPropertyList in interface plugin.IPlugInCallback

getProperty

public java.lang.Object getProperty(java.lang.String p_name)
Specified by:
getProperty in interface plugin.IPlugInCallback

setProperty

public void setProperty(java.lang.String p_name,
                        java.lang.Object p_value)
Specified by:
setProperty in interface plugin.IPlugInCallback

getPropertyEditor

public plugin.IPlugInPropertyEditor getPropertyEditor(java.lang.String p_name)
Specified by:
getPropertyEditor in interface plugin.IPlugInCallback

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

runtimeBehavior

public void runtimeBehavior()

getTooltip

public java.lang.String getTooltip()
Specified by:
getTooltip in interface plugin.IPlugInCallback

toString

public java.lang.String toString()
Overrides:
toString in class java.awt.Component

setEnabled

public void setEnabled(boolean b)
override the setEnabled method

Overrides:
setEnabled in class javax.swing.JComponent

setOtherComponentVisible

public void setOtherComponentVisible(boolean b)
set the visibility of OtherComponent by parameter 'b'

Parameters:
b - a boolean value indicate whether the component will be enabled or disabled

setToolTipText

public void setToolTipText(java.lang.String text)
Overrides:
setToolTipText in class javax.swing.JComponent

setToolTipText

public static void setToolTipText(java.awt.Container container,
                                  java.lang.String text)

setLocale

public void setLocale(java.util.Locale locale)
Overrides:
setLocale in class java.awt.Component