Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class EditcodeEditwordFormatterEditCodeEditor

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 com.ibm.etools.iseries.ui.EditcodeEditwordFormatterEditCodeEditor
All Implemented Interfaces:
ItemListener, ImageObserver, MenuContainer, PropertyEditor, Serializable, EventListener, Accessible

public class EditcodeEditwordFormatterEditCodeEditor
extends JPanel
implements PropertyEditor, ItemListener

Custom property editor for editCode property of EditcodeEditwordFormatter. EditcodeEditwordFormatterEditCodeEditor allows you to edit editCode properties.

See Also:
EditcodeEditwordFormatter, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String Copyright
           
 
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
EditcodeEditwordFormatterEditCodeEditor()
          Constructor.
 
Method Summary
 void addConstrain(Container container, Component component, int grid_x, int grid_y, int grid_width, int grid_height, double weight_x, double weight_y, int fill, int anchor, int top, int left, int bottom, int right, int padx, int pady)
          This method adds a component to a container using GridBagConstraints and GridBag layout manager.
 void addPropertyChangeListener(PropertyChangeListener arg1)
          The addPropertyChangeListener method was generated to support the propertyChange field.
static String Copyright()
          Copyright notice.
 String getAsText()
          When cancel button is pressed, use orignalRecIOMgr.
 Component getCustomEditor()
           
 char getEditCode()
           
protected  JComboBox getEditCodeChoice()
           
 JTable getExampleTable()
          Create the condition JTable
 String getJavaInitializationString()
          The string will be used to init the bean being edited.
 JScrollPane getTableScrollPane()
           
 String[] getTags()
           
 Object getValue()
          Returns the value of the target that is currently being edited to IDE.
 boolean isPaintable()
           
 void itemStateChanged(ItemEvent e)
          ItemEvent will be fired when a choice's selection is changed.
static void main(String[] args)
           
 void paintValue(Graphics gfx, Rectangle box)
          To draw the text in property sheet
 void removePropertyChangeListener(PropertyChangeListener arg1)
          The removePropertyChangeListener method was generated to support the propertyChange field.
 void setAsText(String text)
           
 void setEditCode(char e)
           
 void setValue(Object value)
          IDE call setValue() to pass object value to property editor, the object is then stored in originalEditCode.
 boolean supportsCustomEditor()
           
 
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, 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, 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

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

EditcodeEditwordFormatterEditCodeEditor

public EditcodeEditwordFormatterEditCodeEditor()
Constructor.

Method Detail

addConstrain

public void addConstrain(Container container,
                         Component component,
                         int grid_x,
                         int grid_y,
                         int grid_width,
                         int grid_height,
                         double weight_x,
                         double weight_y,
                         int fill,
                         int anchor,
                         int top,
                         int left,
                         int bottom,
                         int right,
                         int padx,
                         int pady)
This method adds a component to a container using GridBagConstraints and GridBag layout manager.

Parameters:
container - java.awt.Container
component - java.awt.Component
grid_x - int
grid_y - int
grid_width - int
grid_height - int
weight_x - double
weight_y - double
fill - int
anchor - int
top - int
left - int
bottom - int
right - int
padx - int
pady - int

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener arg1)
The addPropertyChangeListener method was generated to support the propertyChange field.

Specified by:
addPropertyChangeListener in interface PropertyEditor
Overrides:
addPropertyChangeListener in class Container

Copyright

public static String Copyright()
Copyright notice.

Returns:
java.lang.String

getAsText

public String getAsText()
When cancel button is pressed, use orignalRecIOMgr. When OK button is pressed, IDE will call getValue() and then setValue() before calling PaintValue();

Specified by:
getAsText in interface PropertyEditor

getCustomEditor

public Component getCustomEditor()
Specified by:
getCustomEditor in interface PropertyEditor

getEditCode

public char getEditCode()
Returns:
com.ibm.ivj.et400.dfu.RecordIOManager

getEditCodeChoice

protected JComboBox getEditCodeChoice()
Returns:
java.awt.Choice

getExampleTable

public JTable getExampleTable()
Create the condition JTable


getJavaInitializationString

public String getJavaInitializationString()
The string will be used to init the bean being edited.

Specified by:
getJavaInitializationString in interface PropertyEditor

getTableScrollPane

public JScrollPane getTableScrollPane()
Returns:
javax.swing.JScrollPane

getTags

public String[] getTags()
Specified by:
getTags in interface PropertyEditor

getValue

public Object getValue()
Returns the value of the target that is currently being edited to IDE. If OK button is pressed, generate classes and return the modified copy to IDE. If Cancel button is pressed, IDE will not call getValue()

Specified by:
getValue in interface PropertyEditor

isPaintable

public boolean isPaintable()
Specified by:
isPaintable in interface PropertyEditor

itemStateChanged

public void itemStateChanged(ItemEvent e)
ItemEvent will be fired when a choice's selection is changed.

Specified by:
itemStateChanged in interface ItemListener

paintValue

public void paintValue(Graphics gfx,
                       Rectangle box)
To draw the text in property sheet

Specified by:
paintValue in interface PropertyEditor

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener arg1)
The removePropertyChangeListener method was generated to support the propertyChange field.

Specified by:
removePropertyChangeListener in interface PropertyEditor
Overrides:
removePropertyChangeListener in class Component

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Throws:
IllegalArgumentException

setEditCode

public void setEditCode(char e)

setValue

public void setValue(Object value)
IDE call setValue() to pass object value to property editor, the object is then stored in originalEditCode. Never update originalEditCode.

Specified by:
setValue in interface PropertyEditor

supportsCustomEditor

public boolean supportsCustomEditor()
Specified by:
supportsCustomEditor in interface PropertyEditor

main

public static void main(String[] args)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.