JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table.beans
Class CellSizeEditor

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.klg.jclass.table.beans.TablePropertyEditor
                                |
                                +--com.klg.jclass.table.beans.CellSizeEditor
All Implemented Interfaces:
Accessible, ActionListener, EventListener, FocusListener, ImageObserver, ItemListener, JCResizeCellListener, JCSelectListener, MenuContainer, PropertyEditor, Serializable

public class CellSizeEditor
extends TablePropertyEditor
implements ActionListener, FocusListener, ItemListener, JCResizeCellListener

Editor for cellSize series.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.klg.jclass.table.beans.TablePropertyEditor
TablePropertyEditor.GroupPanel, TablePropertyEditor.RangeValue
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected static String AS_IS
           
protected  JComboBox choiceHeight
           
protected  JComboBox choiceWidth
           
protected static com.klg.jclass.table.beans.EnumString[] EnumCellSize
           
protected  JTextField textHeight
           
protected  JTextField textWidth
           
protected static String VARIABLE
           
 
Fields inherited from class com.klg.jclass.table.beans.TablePropertyEditor
ALL, ALL_CELLS, ALLCELLS, buttonResetAll, choiceColumn, choiceRow, EnumCells, EnumRange, initValue, LABEL, MAXINT, nl, NOVALUE, numberDelimiters, RANGE, SELECT_ALL, SELECT_CELLS, SELECT_COLUMNS, SELECT_NONE, selectionPolicy, SHOW_COLUMNS, support, tableView, textColumn, textRow, updateComponents
 
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
CellSizeEditor()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void afterResizeCell(com.klg.jclass.table.JCResizeCellEvent e)
          Invoked after the row and/or column is resized and all listeners have been notified of the new value through resizeCell and the new values has been set.
 void beforeResizeCell(com.klg.jclass.table.JCResizeCellEvent e)
          Invoked before the row and/or column is resized.
 void focusGained(FocusEvent e)
           
 void focusLost(FocusEvent e)
           
 String getAsText()
          Returns the current property value as a String instance.
 String getJavaInitializationString()
          Returns a fragment of Java code representing an initializer for the current value.
 Object getValue()
          Returns the current value of the property.
protected  void init()
          Initializes the layout of the custom editor.
 void itemStateChanged(ItemEvent e)
           
protected  JComponent makePropertyPanel()
           
 void resizeCell(com.klg.jclass.table.JCResizeCellEvent e)
          Invoked after the mouse is released.
 void setValue(Object value)
          Sets a new property value.
protected  void updatePropertyPanel(com.klg.jclass.table.JCCellRange c)
           
 
Methods inherited from class com.klg.jclass.table.beans.TablePropertyEditor
addPropertyChangeListener, afterSelect, beforeSelect, enable, errorMessageBox, findParent, getCustomEditor, getFirstCell, getInt, getRangeValue, getRangeValue, getStart, getTableView, getTags, init, initComboBox, isPaintable, makeControlPanel, makeSelectionPanel, makeSizeResetPanel, paintValue, removePropertyChangeListener, select, setAsText, setChoice, setSelected, setSelected, setSelectedItem, supportsCustomEditor, toIntValue, toString, updateSelection, updateSelection, updateSize, updateSizePanel, updateTableSize
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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

choiceWidth

protected JComboBox choiceWidth

choiceHeight

protected JComboBox choiceHeight

textWidth

protected JTextField textWidth

textHeight

protected JTextField textHeight

AS_IS

protected static final String AS_IS
See Also:
Constant Field Values

VARIABLE

protected static final String VARIABLE
See Also:
Constant Field Values

EnumCellSize

protected static com.klg.jclass.table.beans.EnumString[] EnumCellSize
Constructor Detail

CellSizeEditor

public CellSizeEditor()
Method Detail

getAsText

public String getAsText()
Returns the current property value as a String instance.

Specified by:
getAsText in interface PropertyEditor

getJavaInitializationString

public String getJavaInitializationString()
Returns a fragment of Java code representing an initializer for the current value.

Specified by:
getJavaInitializationString in interface PropertyEditor

getValue

public Object getValue()
Returns the current value of the property.

Specified by:
getValue in interface PropertyEditor

setValue

public void setValue(Object value)
Sets a new property value.

Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class TablePropertyEditor

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class TablePropertyEditor

focusGained

public void focusGained(FocusEvent e)
Specified by:
focusGained in interface FocusListener
Overrides:
focusGained in class TablePropertyEditor

focusLost

public void focusLost(FocusEvent e)
Specified by:
focusLost in interface FocusListener
Overrides:
focusLost in class TablePropertyEditor

beforeResizeCell

public void beforeResizeCell(com.klg.jclass.table.JCResizeCellEvent e)
Invoked before the row and/or column is resized. We don't use it in this class.

Specified by:
beforeResizeCell in interface JCResizeCellListener
Parameters:
e - The resize cell event
See Also:
JCResizeCellEvent.setCancelled(boolean)

resizeCell

public void resizeCell(com.klg.jclass.table.JCResizeCellEvent e)
Invoked after the mouse is released. The width or height is not updated. We don't use it in this class.

Specified by:
resizeCell in interface JCResizeCellListener
Parameters:
e - The resize cell event
See Also:
JCResizeCellEvent.setCancelled(boolean), JCResizeCellEvent.setNewRowHeight(int), JCResizeCellEvent.setNewColumnWidth(int)

afterResizeCell

public void afterResizeCell(com.klg.jclass.table.JCResizeCellEvent e)
Invoked after the row and/or column is resized and all listeners have been notified of the new value through resizeCell and the new values has been set.

Specified by:
afterResizeCell in interface JCResizeCellListener
Parameters:
e - The resize cell event
See Also:
JCResizeCellListener.resizeCell(com.klg.jclass.table.JCResizeCellEvent), JCResizeCellEvent.isCancelled()

itemStateChanged

public void itemStateChanged(ItemEvent e)
Specified by:
itemStateChanged in interface ItemListener
Overrides:
itemStateChanged in class TablePropertyEditor

init

protected void init()
Description copied from class: TablePropertyEditor
Initializes the layout of the custom editor.

Overrides:
init in class TablePropertyEditor

makePropertyPanel

protected JComponent makePropertyPanel()
Specified by:
makePropertyPanel in class TablePropertyEditor

updatePropertyPanel

protected void updatePropertyPanel(com.klg.jclass.table.JCCellRange c)
Specified by:
updatePropertyPanel in class TablePropertyEditor

Copyright © 2004 Quest Software Inc..
All rights reserved.