JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table.beans
Class StyleEditor

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.StyleEditor
All Implemented Interfaces:
Accessible, ActionListener, EventListener, FocusListener, ImageObserver, ItemListener, JCFontListener, JCSelectListener, MenuContainer, PropertyEditor, Serializable

public class StyleEditor
extends TablePropertyEditor
implements ActionListener, ItemListener, JCFontListener

Editor for appearance 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 BASE_ON_BACKGROUND
           
protected static String BASE_ON_FOREGROUND
           
protected static String BEVEL_BORDER
           
protected  JButton bgButton
           
protected static String BORDER_ETCHED_IN
           
protected static String BORDER_ETCHED_OUT
           
protected static String BORDER_FRAME_IN
           
protected static String BORDER_FRAME_OUT
           
protected static String BORDER_IN
           
protected static String BORDER_NONE
           
protected static String BORDER_OUT
           
protected static String BORDER_PLAIN
           
protected static String BORDER_THIN
           
protected  JButton borderColorBtn
           
protected  JComboBox borderColorModeCB
           
protected static String BORDERSIDE_ALL
           
protected static String BORDERSIDE_BOTTOM
           
protected static String BORDERSIDE_LEFT
           
protected static String BORDERSIDE_NONE
           
protected static String BORDERSIDE_RIGHT
           
protected static String BORDERSIDE_TOP
           
protected  JComboBox borderSides
           
protected  JComboBox borderType
           
protected static String BOTTOM
           
protected static String CENTER
           
protected  JComboBox clipHints
           
protected  JCheckBox editable
           
protected static com.klg.jclass.table.beans.EnumString[] EnumAlignment
           
protected static com.klg.jclass.table.beans.EnumString[] EnumBorderColorMode
           
protected static com.klg.jclass.table.beans.EnumString[] EnumBorderSides
           
protected static com.klg.jclass.table.beans.EnumString[] EnumBorderType
           
protected static com.klg.jclass.table.beans.EnumString[] EnumClipHints
           
protected  JButton fgButton
           
protected  com.klg.jclass.util.swing.JCFontChooserBar fontBar
           
protected  JComboBox horizontalAlignment
           
protected static String LEFT
           
protected static String RIGHT
           
protected  com.klg.jclass.table.beans.PropertyEditorTable sampleTable
           
protected static String SHOW_ALL
           
protected static String SHOW_HORIZONTAL
           
protected static String SHOW_NONE
           
protected static String SHOW_VERTICAL
           
protected static String SOFT_BEVEL_BORDER
           
protected static String TOP
           
protected  JCheckBox traversable
           
protected static String USE_CELL_BORDER_COLOR
           
protected  JComboBox verticalAlignment
           
 
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, textHeight, textRow, textWidth, 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
StyleEditor()
          Constructs StyleEditor editor.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void fontChanged(com.klg.jclass.util.swing.JCFontEvent e)
          Font has been changed.
 void fontChanging(com.klg.jclass.util.swing.JCFontEvent e)
          Font is changing.
 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.
 void itemStateChanged(ItemEvent e)
           
protected  JComponent makePropertyPanel()
           
protected  Color selectColor(boolean foreground, Color color)
           
protected  void setEnabledAll(boolean b)
           
 void setValue(Object value)
          Sets a new property value.
protected  void updatePropertyPanel(com.klg.jclass.table.JCCellRange c)
           
protected  void updateSampleTable(com.klg.jclass.table.JCCellRange range)
           
protected  void updateStyle()
           
 
Methods inherited from class com.klg.jclass.table.beans.TablePropertyEditor
addPropertyChangeListener, afterSelect, beforeSelect, enable, errorMessageBox, findParent, focusGained, focusLost, getCustomEditor, getFirstCell, getInt, getRangeValue, getRangeValue, getStart, getTableView, getTags, init, 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

fontBar

protected com.klg.jclass.util.swing.JCFontChooserBar fontBar

fgButton

protected JButton fgButton

bgButton

protected JButton bgButton

borderColorBtn

protected JButton borderColorBtn

horizontalAlignment

protected JComboBox horizontalAlignment

verticalAlignment

protected JComboBox verticalAlignment

borderSides

protected JComboBox borderSides

borderType

protected JComboBox borderType

borderColorModeCB

protected JComboBox borderColorModeCB

clipHints

protected JComboBox clipHints

editable

protected JCheckBox editable

traversable

protected JCheckBox traversable

sampleTable

protected com.klg.jclass.table.beans.PropertyEditorTable sampleTable

BOTTOM

protected static final String BOTTOM
See Also:
Constant Field Values

CENTER

protected static final String CENTER
See Also:
Constant Field Values

LEFT

protected static final String LEFT
See Also:
Constant Field Values

RIGHT

protected static final String RIGHT
See Also:
Constant Field Values

TOP

protected static final String TOP
See Also:
Constant Field Values

EnumAlignment

protected static com.klg.jclass.table.beans.EnumString[] EnumAlignment

BORDER_ETCHED_IN

protected static final String BORDER_ETCHED_IN
See Also:
Constant Field Values

BORDER_ETCHED_OUT

protected static final String BORDER_ETCHED_OUT
See Also:
Constant Field Values

BORDER_FRAME_IN

protected static final String BORDER_FRAME_IN
See Also:
Constant Field Values

BORDER_FRAME_OUT

protected static final String BORDER_FRAME_OUT
See Also:
Constant Field Values

BORDER_IN

protected static final String BORDER_IN
See Also:
Constant Field Values

BORDER_OUT

protected static final String BORDER_OUT
See Also:
Constant Field Values

BORDER_PLAIN

protected static final String BORDER_PLAIN
See Also:
Constant Field Values

BORDER_NONE

protected static final String BORDER_NONE
See Also:
Constant Field Values

BORDER_THIN

protected static final String BORDER_THIN
See Also:
Constant Field Values

BEVEL_BORDER

protected static final String BEVEL_BORDER
See Also:
Constant Field Values

SOFT_BEVEL_BORDER

protected static final String SOFT_BEVEL_BORDER
See Also:
Constant Field Values

EnumBorderType

protected static com.klg.jclass.table.beans.EnumString[] EnumBorderType

BORDERSIDE_ALL

protected static final String BORDERSIDE_ALL
See Also:
Constant Field Values

BORDERSIDE_BOTTOM

protected static final String BORDERSIDE_BOTTOM
See Also:
Constant Field Values

BORDERSIDE_LEFT

protected static final String BORDERSIDE_LEFT
See Also:
Constant Field Values

BORDERSIDE_NONE

protected static final String BORDERSIDE_NONE
See Also:
Constant Field Values

BORDERSIDE_RIGHT

protected static final String BORDERSIDE_RIGHT
See Also:
Constant Field Values

BORDERSIDE_TOP

protected static final String BORDERSIDE_TOP
See Also:
Constant Field Values

EnumBorderSides

protected static com.klg.jclass.table.beans.EnumString[] EnumBorderSides

BASE_ON_BACKGROUND

protected static final String BASE_ON_BACKGROUND
See Also:
Constant Field Values

BASE_ON_FOREGROUND

protected static final String BASE_ON_FOREGROUND
See Also:
Constant Field Values

USE_CELL_BORDER_COLOR

protected static final String USE_CELL_BORDER_COLOR
See Also:
Constant Field Values

EnumBorderColorMode

protected static com.klg.jclass.table.beans.EnumString[] EnumBorderColorMode

SHOW_NONE

protected static final String SHOW_NONE
See Also:
Constant Field Values

SHOW_HORIZONTAL

protected static final String SHOW_HORIZONTAL
See Also:
Constant Field Values

SHOW_VERTICAL

protected static final String SHOW_VERTICAL
See Also:
Constant Field Values

SHOW_ALL

protected static final String SHOW_ALL
See Also:
Constant Field Values

EnumClipHints

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

StyleEditor

public StyleEditor()
Constructs StyleEditor editor.

Method Detail

setValue

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

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

getValue

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

Specified by:
getValue in interface PropertyEditor

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

actionPerformed

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

itemStateChanged

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

fontChanging

public void fontChanging(com.klg.jclass.util.swing.JCFontEvent e)
Font is changing. Listeners can changed the font and/or underline indication.

Specified by:
fontChanging in interface JCFontListener
Parameters:
e - The event generated by the font changing

fontChanged

public void fontChanged(com.klg.jclass.util.swing.JCFontEvent e)
Font has been changed.

Specified by:
fontChanged in interface JCFontListener
Parameters:
e - The event generated by the changed font

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

updateStyle

protected void updateStyle()

setEnabledAll

protected void setEnabledAll(boolean b)

updateSampleTable

protected void updateSampleTable(com.klg.jclass.table.JCCellRange range)

selectColor

protected Color selectColor(boolean foreground,
                            Color color)

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